diff options
author | Joey Hagedorn <hagedorn@mcs.anl.gov> | 2005-06-23 19:36:38 +0000 |
---|---|---|
committer | Joey Hagedorn <hagedorn@mcs.anl.gov> | 2005-06-23 19:36:38 +0000 |
commit | 197bf2e061cb534018bbc72d3e60a05465a12987 (patch) | |
tree | 369888cfea3b2e410bd9624ef1b535ab9428376c /schemas/report-configuration.xsd | |
parent | f92624f0e0ba69807c7bf2e0b29cf6c501439668 (diff) | |
download | bcfg2-197bf2e061cb534018bbc72d3e60a05465a12987.tar.gz bcfg2-197bf2e061cb534018bbc72d3e60a05465a12987.tar.bz2 bcfg2-197bf2e061cb534018bbc72d3e60a05465a12987.zip |
modified schema to be much more specific
(Logical change 1.239)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@997 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'schemas/report-configuration.xsd')
-rw-r--r-- | schemas/report-configuration.xsd | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/schemas/report-configuration.xsd b/schemas/report-configuration.xsd index ef4d0686e..cc92315bc 100644 --- a/schemas/report-configuration.xsd +++ b/schemas/report-configuration.xsd @@ -1,12 +1,12 @@ <?xml version="1.0"?> -<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en"> - <xsd:annotation> - <xsd:documentation> + <xs:annotation> + <xs:documentation> statistical report configuration schema for bcfg2 Joey Hagedorn, Argonne National Laboratory - </xsd:documentation> - </xsd:annotation> + </xs:documentation> + </xs:annotation> <xs:element name="Reports"> <xs:complexType> @@ -23,13 +23,30 @@ </xs:complexType> </xs:element> </xs:sequence> - <xs:attribute name="mechanism" type="xs:string" use="required" /> - <xs:attribute name="type" type="xs:string" use="optional" /> + <xs:attribute name="mechanism" type="xs:string" use="required"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value="mail"/> + <xs:enumeration value="rss"/> + <xs:enumeration value="www"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="type" type="xs:string" use="optional"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value="nodes-individual"/> + <xs:enumeration value="nodes-digest"/> + <xs:enumeration value="stats-overview"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> </xs:complexType> </xs:element> <xs:element minOccurs="1" maxOccurs="unbounded" name="Machine"> <xs:complexType> <xs:attribute name="name" type="xs:string" use="required" /> + <!-- this can be a regular expression defined at http://docs.python.org/lib/re-syntax.html--> </xs:complexType> </xs:element> </xs:sequence> @@ -41,4 +58,4 @@ </xs:sequence> </xs:complexType> </xs:element> -</xs:schema> +</xs:schema>
\ No newline at end of file |