summaryrefslogtreecommitdiffstats
path: root/schemas/report-configuration.xsd
blob: 7aca20991e09031c9d8402b5d27ccafefb5949f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">

  <xs:annotation>
    <xs:documentation>
      statistical report configuration schema for bcfg2
      Joey Hagedorn, Argonne National Laboratory
    </xs:documentation>
  </xs:annotation>

  <xs:element name="Reports">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="Report">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="1" maxOccurs="unbounded" name="Delivery">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="1" maxOccurs="unbounded" name="Destination">
                      <xs:complexType>
                        <xs:attribute name="address" type="xs:string" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="mechanism" 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" 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>
            <xs:attribute name="name" type="xs:string" use="required" />
            <xs:attribute name="good" type="xs:string" use="optional" />
            <xs:attribute name="modified" type="xs:string" use="optional" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>