PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/integrations/opennms-vmware/src/main/resources/xsds/vmware-cim-datacollection.xsd

https://github.com/ajakubo1/opennms
XML Schema | 158 lines | 152 code | 6 blank | 0 comment | 0 complexity | c1b6720cb92d04265662164e6f7b51fa MD5 | raw file
  1<?xml version="1.0"?>
  2<schema xmlns="http://www.w3.org/2001/XMLSchema"
  3        xmlns:ns="http://xmlns.opennms.org/xsd/config/vmware-cim-datacollection"
  4		  targetNamespace="http://xmlns.opennms.org/xsd/config/vmware-cim-datacollection"
  5		  elementFormDefault="qualified">
  6
  7	<annotation>
  8		<documentation>
  9			XML Schema for the vmware-cim-datacollection configuration file
 10		</documentation>
 11	</annotation>
 12
 13  <element name="rrd">
 14    <annotation>
 15      <documentation>RRD parms</documentation>
 16    </annotation>
 17
 18    <complexType>
 19      <sequence>
 20        <element maxOccurs="unbounded" minOccurs="1" name="rra">
 21          <annotation>
 22            <documentation>Round Robin Archive definitions</documentation>
 23          </annotation>
 24
 25          <simpleType>
 26            <restriction base="string">
 27              <pattern value="RRA:(AVERAGE|MIN|MAX|LAST):.*"/>
 28            </restriction>
 29          </simpleType>
 30        </element>
 31      </sequence>
 32
 33      <attribute name="step" type="int" use="required">
 34        <annotation>
 35          <documentation>step size for the RRD</documentation>
 36        </annotation>
 37      </attribute>
 38    </complexType>
 39  </element>
 40
 41	<element name="vmware-cim-datacollection-config">
 42		<complexType>
 43			<sequence>
 44				<!-- Nsclient data collection element -->
 45				<element ref="ns:vmware-cim-collection" maxOccurs="unbounded"/>
 46			</sequence>
 47			<attribute name="rrdRepository" type="string" use="required"/>
 48			<!-- full path to the RRD repository for collected Nsclient data -->
 49		</complexType>
 50	</element>
 51	<element name="vmware-cim-collection">
 52		<annotation>
 53			<documentation>A grouping of VMware related RRD parms and performance counter groups</documentation>
 54		</annotation>
 55		<complexType>
 56			<sequence>
 57				<element ref="ns:rrd"/>
 58				<element ref="ns:vmware-cim-groups"/>
 59			</sequence>
 60			<attribute name="name" type="string" use="required"/>
 61			<!-- collector name -->
 62		</complexType>
 63	</element>
 64	<element name="vmware-cim-groups">
 65		<annotation>
 66			<documentation>VMware Cim object groups</documentation>
 67		</annotation>
 68		<complexType>
 69			<sequence>
 70				<element ref="ns:vmware-cim-group" maxOccurs="unbounded">
 71					<annotation>
 72						<documentation>
 73							A VMware Cim Object Group
 74						</documentation>
 75					</annotation>
 76				</element>
 77			</sequence>
 78		</complexType>
 79	</element>
 80	<element name="vmware-cim-group">
 81		<annotation>
 82			<documentation>An VMware Cim Object Group</documentation>
 83		</annotation>
 84		<complexType>
 85			<sequence>
 86				<element ref="ns:attrib" minOccurs="0" maxOccurs="unbounded">
 87					<annotation>
 88						<documentation>
 89							An VMware Cim Object
 90						</documentation>
 91					</annotation>
 92				</element>
 93			</sequence>
 94            <attribute name="cimClass" type="string" use="required">
 95                <annotation>
 96                    <documentation>
 97                        The name of the Cmi class to query
 98                    </documentation>
 99                </annotation>
100            </attribute>
101            <attribute name="name" type="string" use="required">
102                <annotation>
103                    <documentation>
104                        The name of this group, for user id purposes
105                    </documentation>
106                </annotation>
107            </attribute>
108            <attribute name="key" type="string" use="required">
109                <annotation>
110                    <documentation>
111                        The attibute with name Key will be checked against Value
112                    </documentation>
113                </annotation>
114            </attribute>
115            <attribute name="value" type="string" use="required">
116                <annotation>
117                    <documentation>
118                        The attibute with name Key will be checked against Value
119                    </documentation>
120                </annotation>
121            </attribute>
122            <attribute name="instance" type="string" use="required">
123                <annotation>
124                    <documentation>
125                        The instance attribute of this group
126                    </documentation>
127                </annotation>
128            </attribute>
129            <attribute name="resourceType" type="string" use="required">
130                <annotation>
131                    <documentation>
132                        Specifies the name of the resource type that pertains to the attributes
133                        in this group. For scalar attributes (those occurring once per node,
134                        such as available system memory) this should be "node".  For
135                        multi-instanced attributes, this should be the name of a custom
136                        resource type declared in datacollection-config.xml.
137                    </documentation>
138                </annotation>
139            </attribute>
140		</complexType>
141	</element>
142	<element name="attrib">
143		<annotation>
144			<documentation>An Attribute Object</documentation>
145		</annotation>
146		<complexType>
147			<attribute name="name" type="string" use="required"/>
148			<attribute name="alias" type="string" use="required"/>			
149			<attribute name="type" use="required">
150				<simpleType>
151					<restriction base="string">
152						<pattern value="([Cc](ounter|OUNTER)|[Gg](auge|AUGE)|[Ss](tring|TRING))"/>
153					</restriction>
154				</simpleType>
155			</attribute>
156		</complexType>
157	</element>
158</schema>