serviceMetrics.xsd 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. # Project: Magyar Online Számla Rendszer serviceMetrics XML séma
  4. # Author: NAV Informatikai Intézet
  5. # Version: v3.0 2020/07/31
  6. -->
  7. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.nav.gov.hu/OSA/3.0/metrics" xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns:base="http://schemas.nav.gov.hu/OSA/3.0/base" targetNamespace="http://schemas.nav.gov.hu/OSA/3.0/metrics" elementFormDefault="qualified" attributeFormDefault="unqualified">
  8. <xs:import namespace="http://schemas.nav.gov.hu/NTCA/1.0/common"/>
  9. <xs:import namespace="http://schemas.nav.gov.hu/OSA/3.0/base"/>
  10. <xs:simpleType name="LanguageType">
  11. <xs:annotation>
  12. <xs:documentation xml:lang="hu">Nyelv megnevezés típus</xs:documentation>
  13. <xs:documentation xml:lang="en">Language naming type</xs:documentation>
  14. </xs:annotation>
  15. <xs:restriction base="common:AtomicStringType2">
  16. <xs:enumeration value="HU">
  17. <xs:annotation>
  18. <xs:documentation xml:lang="hu">Magyar nyelv</xs:documentation>
  19. <xs:documentation xml:lang="en">Hungarian language</xs:documentation>
  20. </xs:annotation>
  21. </xs:enumeration>
  22. <xs:enumeration value="EN">
  23. <xs:annotation>
  24. <xs:documentation xml:lang="hu">Angol nyelv</xs:documentation>
  25. <xs:documentation xml:lang="en">English language</xs:documentation>
  26. </xs:annotation>
  27. </xs:enumeration>
  28. <xs:enumeration value="DE">
  29. <xs:annotation>
  30. <xs:documentation xml:lang="hu">Német nyelv</xs:documentation>
  31. <xs:documentation xml:lang="en">German language</xs:documentation>
  32. </xs:annotation>
  33. </xs:enumeration>
  34. </xs:restriction>
  35. </xs:simpleType>
  36. <xs:simpleType name="MetricTypeType">
  37. <xs:annotation>
  38. <xs:documentation xml:lang="hu">Metrika típusának leírója</xs:documentation>
  39. <xs:documentation xml:lang="en">Metric's descriptor type</xs:documentation>
  40. </xs:annotation>
  41. <xs:restriction base="common:AtomicStringType15">
  42. <xs:enumeration value="COUNTER">
  43. <xs:annotation>
  44. <xs:documentation xml:lang="hu">Növekmény típusú metrika</xs:documentation>
  45. <xs:documentation xml:lang="en">Incremental type metric</xs:documentation>
  46. </xs:annotation>
  47. </xs:enumeration>
  48. <xs:enumeration value="GAUGE">
  49. <xs:annotation>
  50. <xs:documentation xml:lang="hu">Pillanatkép típusú metrika</xs:documentation>
  51. <xs:documentation xml:lang="en">Snapshot type metric</xs:documentation>
  52. </xs:annotation>
  53. </xs:enumeration>
  54. <xs:enumeration value="HISTOGRAM">
  55. <xs:annotation>
  56. <xs:documentation xml:lang="hu">Kvantilis típusú, eloszlást mérő metrika</xs:documentation>
  57. <xs:documentation xml:lang="en">Quantile type, dispersion sampler metric</xs:documentation>
  58. </xs:annotation>
  59. </xs:enumeration>
  60. <xs:enumeration value="SUMMARY">
  61. <xs:annotation>
  62. <xs:documentation xml:lang="hu">Összegző érték típusú metrika</xs:documentation>
  63. <xs:documentation xml:lang="en">Sum value type metric</xs:documentation>
  64. </xs:annotation>
  65. </xs:enumeration>
  66. </xs:restriction>
  67. </xs:simpleType>
  68. <xs:complexType name="MetricDefinitionType">
  69. <xs:annotation>
  70. <xs:documentation xml:lang="hu">Metrika definíció típus</xs:documentation>
  71. <xs:documentation xml:lang="en">Metric definition type</xs:documentation>
  72. </xs:annotation>
  73. <xs:sequence>
  74. <xs:element name="metricName" type="common:SimpleText200NotBlankType">
  75. <xs:annotation>
  76. <xs:documentation xml:lang="hu">Metrika neve</xs:documentation>
  77. <xs:documentation xml:lang="en">Metric's name</xs:documentation>
  78. </xs:annotation>
  79. </xs:element>
  80. <xs:element name="metricType" type="MetricTypeType">
  81. <xs:annotation>
  82. <xs:documentation xml:lang="hu">Metrika típusa</xs:documentation>
  83. <xs:documentation xml:lang="hu">Metric's type</xs:documentation>
  84. </xs:annotation>
  85. </xs:element>
  86. <xs:element name="metricDescription" type="MetricDescriptionType" minOccurs="3" maxOccurs="3">
  87. <xs:annotation>
  88. <xs:documentation xml:lang="hu">Metrika leírása</xs:documentation>
  89. <xs:documentation xml:lang="en">Metric's description</xs:documentation>
  90. </xs:annotation>
  91. </xs:element>
  92. </xs:sequence>
  93. </xs:complexType>
  94. <xs:complexType name="MetricDescriptionType">
  95. <xs:annotation>
  96. <xs:documentation xml:lang="hu">Metrika leírás típus</xs:documentation>
  97. <xs:documentation xml:lang="en">Metric description type</xs:documentation>
  98. </xs:annotation>
  99. <xs:sequence>
  100. <xs:element name="language" type="LanguageType">
  101. <xs:annotation>
  102. <xs:documentation xml:lang="hu">Nyelv megnevezés</xs:documentation>
  103. <xs:documentation xml:lang="en">Language naming</xs:documentation>
  104. </xs:annotation>
  105. </xs:element>
  106. <xs:element name="localizedDescription" type="common:SimpleText512NotBlankType">
  107. <xs:annotation>
  108. <xs:documentation xml:lang="hu">Lokalizált leírás</xs:documentation>
  109. <xs:documentation xml:lang="en">Localized description</xs:documentation>
  110. </xs:annotation>
  111. </xs:element>
  112. </xs:sequence>
  113. </xs:complexType>
  114. <xs:complexType name="MetricType">
  115. <xs:annotation>
  116. <xs:documentation xml:lang="hu">Metrika típus</xs:documentation>
  117. <xs:documentation xml:lang="en">Metric data type</xs:documentation>
  118. </xs:annotation>
  119. <xs:sequence>
  120. <xs:element name="metricDefinition" type="MetricDefinitionType">
  121. <xs:annotation>
  122. <xs:documentation xml:lang="hu">Metrika definíció</xs:documentation>
  123. <xs:documentation xml:lang="en">Metric definition</xs:documentation>
  124. </xs:annotation>
  125. </xs:element>
  126. <xs:element name="metricValues" type="MetricValueType" minOccurs="0" maxOccurs="60">
  127. <xs:annotation>
  128. <xs:documentation xml:lang="hu">Metrika értékek</xs:documentation>
  129. <xs:documentation xml:lang="en">Metric values</xs:documentation>
  130. </xs:annotation>
  131. </xs:element>
  132. </xs:sequence>
  133. </xs:complexType>
  134. <xs:complexType name="MetricValueType">
  135. <xs:annotation>
  136. <xs:documentation xml:lang="hu">Metrika érték típus</xs:documentation>
  137. <xs:documentation xml:lang="en">Metric value type</xs:documentation>
  138. </xs:annotation>
  139. <xs:sequence>
  140. <xs:element name="value" type="common:GenericDecimalType">
  141. <xs:annotation>
  142. <xs:documentation xml:lang="hu">Metrika értéke</xs:documentation>
  143. <xs:documentation xml:lang="en">Metric's value</xs:documentation>
  144. </xs:annotation>
  145. </xs:element>
  146. <xs:element name="timestamp" type="base:InvoiceTimestampType">
  147. <xs:annotation>
  148. <xs:documentation xml:lang="hu">Metrika értékének időpontja UTC időben</xs:documentation>
  149. <xs:documentation xml:lang="en">Time of metric value in UTC time</xs:documentation>
  150. </xs:annotation>
  151. </xs:element>
  152. </xs:sequence>
  153. </xs:complexType>
  154. <xs:complexType name="QueryServiceMetricsListResponseType">
  155. <xs:annotation>
  156. <xs:documentation xml:lang="hu">A GET /queryServiceMetrics/list REST operáció válasz típusa</xs:documentation>
  157. <xs:documentation xml:lang="en">Response type of the GET /queryServiceMetrics/list REST operation</xs:documentation>
  158. </xs:annotation>
  159. <xs:sequence>
  160. <xs:element name="metricDefinition" type="MetricDefinitionType" minOccurs="0" maxOccurs="unbounded">
  161. <xs:annotation>
  162. <xs:documentation xml:lang="hu">Metrika definíciói</xs:documentation>
  163. <xs:documentation xml:lang="en">Metric definitions</xs:documentation>
  164. </xs:annotation>
  165. </xs:element>
  166. </xs:sequence>
  167. </xs:complexType>
  168. <xs:complexType name="QueryServiceMetricsResponseType">
  169. <xs:annotation>
  170. <xs:documentation xml:lang="hu">A GET /queryServiceMetrics REST operáció válasz típusa</xs:documentation>
  171. <xs:documentation xml:lang="en">Response type of the GET /queryServiceMetrics REST operation</xs:documentation>
  172. </xs:annotation>
  173. <xs:sequence>
  174. <xs:element name="result" type="common:BasicResultType">
  175. <xs:annotation>
  176. <xs:documentation xml:lang="hu">Alap válaszeredmény adatok</xs:documentation>
  177. <xs:documentation xml:lang="en">Basic result data</xs:documentation>
  178. </xs:annotation>
  179. </xs:element>
  180. <xs:element name="metricsLastUpdateTime" type="base:InvoiceTimestampType" minOccurs="0">
  181. <xs:annotation>
  182. <xs:documentation xml:lang="hu">A metrikák utolsó frissítésének időpontja UTC időben</xs:documentation>
  183. <xs:documentation xml:lang="en">Last update time of metrics in UTC time</xs:documentation>
  184. </xs:annotation>
  185. </xs:element>
  186. <xs:element name="metric" type="MetricType" minOccurs="0" maxOccurs="unbounded">
  187. <xs:annotation>
  188. <xs:documentation xml:lang="hu">Metrika adatai</xs:documentation>
  189. <xs:documentation xml:lang="en">Metric data</xs:documentation>
  190. </xs:annotation>
  191. </xs:element>
  192. </xs:sequence>
  193. </xs:complexType>
  194. <xs:element name="QueryServiceMetricsListResponse">
  195. <xs:annotation>
  196. <xs:documentation xml:lang="hu">A GET /queryServiceMetrics/list REST operáció válaszának root elementje</xs:documentation>
  197. <xs:documentation xml:lang="en">Response root element of the GET /queryServiceMetrics/list REST operation</xs:documentation>
  198. </xs:annotation>
  199. <xs:complexType>
  200. <xs:complexContent>
  201. <xs:extension base="QueryServiceMetricsListResponseType"/>
  202. </xs:complexContent>
  203. </xs:complexType>
  204. </xs:element>
  205. <xs:element name="QueryServiceMetricsResponse">
  206. <xs:annotation>
  207. <xs:documentation xml:lang="hu">A GET /queryServiceMetrics REST operáció válaszának root elementje</xs:documentation>
  208. <xs:documentation xml:lang="en">Response root element of the GET /queryServiceMetrics REST operation</xs:documentation>
  209. </xs:annotation>
  210. <xs:complexType>
  211. <xs:complexContent>
  212. <xs:extension base="QueryServiceMetricsResponseType"/>
  213. </xs:complexContent>
  214. </xs:complexType>
  215. </xs:element>
  216. </xs:schema>