summaryrefslogtreecommitdiffstats
path: root/xml/api/node-history-2.12.rng
blob: 9628000ecb27978e521e86414ec01ebea2fc3be2 (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
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">

    <start>
        <ref name="node-history-list" />
    </start>

    <define name="node-history-list">
        <element name="node_history">
            <zeroOrMore>
                <ref name="element-node-history" />
            </zeroOrMore>
        </element>
    </define>

    <define name="element-node-history">
        <element name="node">
            <attribute name="name"> <text /> </attribute>
            <zeroOrMore>
                <ref name="element-resource-history" />
            </zeroOrMore>
        </element>
    </define>

    <define name="element-resource-history">
        <element name="resource_history">
            <attribute name="id"> <text /> </attribute>
            <attribute name="orphan"> <data type="boolean" /> </attribute>
            <optional>
                <group>
                    <attribute name="migration-threshold"> <data type="nonNegativeInteger" /> </attribute>
                    <optional>
                        <attribute name="fail-count"> <text /> </attribute>
                    </optional>
                    <optional>
                        <attribute name="last-failure"> <text /> </attribute>
                    </optional>
                </group>
            </optional>
            <zeroOrMore>
                <ref name="element-operation-history" />
            </zeroOrMore>
        </element>
    </define>

    <define name="element-operation-history">
        <element name="operation_history">
            <attribute name="call"> <text /> </attribute>
            <attribute name="task"> <text /> </attribute>
            <optional>
                <attribute name="interval"> <text /> </attribute>
            </optional>
            <optional>
                <attribute name="last-rc-change"> <text /> </attribute>
            </optional>
            <optional>
                <attribute name="last-run"> <text /> </attribute>
            </optional>
            <optional>
                <attribute name="exec-time"> <text /> </attribute>
            </optional>
            <optional>
                <attribute name="queue-time"> <text /> </attribute>
            </optional>
            <attribute name="rc"> <data type="integer" /> </attribute>
            <attribute name="rc_text"> <text /> </attribute>
        </element>
    </define>
</grammar>