Statistics
| Branch: | Tag: | Revision:

one / share / doc / xsd / host.xsd @ f66e022b

History | View | Annotate | Download (4.62 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://opennebula.org/XMLSchema" elementFormDefault="qualified" targetNamespace="http://opennebula.org/XMLSchema">
3
  <xs:element name="HOST">
4
    <xs:complexType>
5
      <xs:sequence>
6
        <xs:element name="ID" type="xs:integer"/>
7
        <xs:element name="NAME" type="xs:string"/>
8
        <!-- STATE values
9
        
10
          INIT                 = 0  Initial state for enabled hosts
11
          MONITORING_MONITORED = 1  Monitoring the host (from monitored)
12
          MONITORED            = 2  The host has been successfully monitored
13
          ERROR                = 3  An error ocurrer while monitoring the host
14
          DISABLED             = 4  The host is disabled 
15
          MONITORING_ERROR     = 5  Monitoring the host (from error)
16
          MONITORING_INIT      = 6  Monitoring the host (from init)
17
          MONITORING_DISABLED  = 7  Monitoring the host (from disabled)
18
          OFFLINE              = 8  The host is totally offline
19
        -->
20
        <xs:element name="STATE" type="xs:integer"/>
21
        <xs:element name="IM_MAD" type="xs:string"/>
22
        <xs:element name="VM_MAD" type="xs:string"/>
23
        <xs:element name="LAST_MON_TIME" type="xs:integer"/>
24
        <xs:element name="CLUSTER_ID" type="xs:integer"/>
25
        <xs:element name="CLUSTER" type="xs:string"/>
26
        <xs:element name="HOST_SHARE">
27
          <xs:complexType>
28
            <xs:sequence>
29
              <xs:element name="DISK_USAGE" type="xs:integer"/>
30
              <xs:element name="MEM_USAGE" type="xs:integer"/>
31
              <!-- ^^ KB, Usage of MEMORY calculated by ONE as the summatory MEMORY requested by all VMs running in the host   -->
32
              <xs:element name="CPU_USAGE" type="xs:integer"/>
33
              <!-- ^^ Percentage, Usage of CPU calculated by ONE as the summatory CPU requested by all VMs running in the host   -->
34
              <xs:element name="TOTAL_MEM" type="xs:integer"/>
35
              <xs:element name="TOTAL_CPU" type="xs:integer"/>
36
              <xs:element name="MAX_DISK" type="xs:integer"/>
37
              <xs:element name="MAX_MEM" type="xs:integer"/>
38
              <!-- ^^ KB, Total memory in the host   -->
39
              <xs:element name="MAX_CPU" type="xs:integer"/>
40
              <!-- ^^ Percentage, Total CPU in the host (# cores * 100)  -->
41
              <xs:element name="FREE_DISK" type="xs:integer"/>
42
              <xs:element name="FREE_MEM" type="xs:integer"/>
43
              <!-- ^^ KB, Free MEMORY returned by the probes   -->
44
              <xs:element name="FREE_CPU" type="xs:integer"/>
45
              <!-- ^^ Percentage, Free CPU as returned by the probes   -->
46
              <xs:element name="USED_DISK" type="xs:integer"/>
47
              <xs:element name="USED_MEM" type="xs:integer"/>
48
              <!-- ^^ KB, Memory used by all host processes (including VMs) over a total of MAX_MEM   -->
49
              <xs:element name="USED_CPU" type="xs:integer"/>
50
              <!-- ^^ Percentage of CPU used by all host processes (including VMs) over a total of # cores * 100   -->
51

    
52

    
53
              <xs:element name="RUNNING_VMS" type="xs:integer"/>
54
              <xs:element name="DATASTORES">
55
                <xs:complexType>
56
                  <xs:sequence>
57
                    <xs:element name="DS" minOccurs="0" maxOccurs="unbounded">
58
                      <xs:complexType>
59
                        <xs:all>
60
                          <xs:element name="ID" type="xs:integer"/>
61
                          <xs:element name="FREE_MB" type="xs:integer"/>
62
                          <xs:element name="TOTAL_MB" type="xs:integer"/>
63
                          <xs:element name="USED_MB" type="xs:integer"/>
64
                        </xs:all>
65
                      </xs:complexType>
66
                    </xs:element>
67
                  </xs:sequence>
68
                </xs:complexType>
69
              </xs:element>
70
              <xs:element name="PCI_DEVICES">
71
                <xs:complexType>
72
                  <xs:sequence>
73
                    <xs:element name="PCI" type="xs:anyType" minOccurs="0" maxOccurs="unbounded"/>
74
                  </xs:sequence>
75
                </xs:complexType>
76
              </xs:element>
77
            </xs:sequence>
78
          </xs:complexType>
79
        </xs:element>
80
        <xs:element name="VMS">
81
              <xs:complexType>
82
                <xs:sequence>
83
                  <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
84
                </xs:sequence>
85
              </xs:complexType>
86
        </xs:element>
87
        <xs:element name="TEMPLATE" type="xs:anyType"/>
88
      </xs:sequence>
89
    </xs:complexType>
90
  </xs:element>
91
</xs:schema>