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