statistics_show.xsd
Команда просмотра статистику.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<!-- systemType -->
<xs:simpleType name="systemType">
<xs:restriction base="xs:string">
<xs:enumeration value="ecss10.common"/>
<xs:enumeration value="ecss10.ssw"/>
<xs:enumeration value="ecss10.cc"/>
<xs:enumeration value="ecss10.tc"/>
</xs:restriction>
</xs:simpleType>
<!-- statisticTypeType -->
<xs:simpleType name="statisticTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="counter"/>
<xs:enumeration value="gauge"/>
<xs:enumeration value="meter"/>
<xs:enumeration value="histogram"/>
</xs:restriction>
</xs:simpleType>
<!-- statisticsValueType -->
<xs:complexType name="statisticsValueType">
<xs:attribute name="time" type="xs:string"/> <!--YY/MM/DD HH:MM:SS-->
<xs:attribute name="value" type="xs:int"/>
<xs:attribute name="n" type="xs:int"/>
<xs:attribute name="min" type="xs:int" use="optional"/>
<xs:attribute name="max" type="xs:int" use="optional"/>
<xs:attribute name="avg" type="xs:double" use="optional"/>
</xs:complexType>
<!-- statisticsInType -->
<xs:complexType name="statisticsInType">
<xs:attribute name="from" type="xs:string"/> <!--YY/MM/DD HH:MM:SS-->
<xs:attribute name="to" type="xs:string"/> <!--YY/MM/DD HH:MM:SS-->
<xs:attribute name="system" type="systemType"/>
<xs:attribute name="subsystem" type="xs:string" use="optional"/>
<xs:attribute name="statistic" type="xs:string" use="optional"/>
<xs:attribute name="type" type="statisticTypeType" use="optional"/>
<xs:attribute name="variable_part_1" type="xs:string" use="optional"/>
<xs:attribute name="variable_part_2" type="xs:string" use="optional"/>
<xs:attribute name="measure_type" type="statisticIntervalType" use="optional"/>
</xs:complexType>
<!-- statisticsOutType -->
<xs:complexType name="statisticsOutType">
<xs:sequence>
<xs:element name="value" minOccurs="0" maxOccurs="unbounded" type="statisticsValueType"/>
</xs:sequence>
<xs:attribute name="system" type="systemType"/>
<xs:attribute name="subsystem" type="xs:string"/>
<xs:attribute name="statistic" type="xs:string"/>
<xs:attribute name="type" type="statisticTypeType"/>
<xs:attribute name="measure_type" type="xs:string" use="optional"/>
<xs:attribute name="sum" type="xs:float" use="optional"/>
<xs:attribute name="variable_part_1" type="xs:string" use="optional"/>
<xs:attribute name="variable_part_2" type="xs:string" use="optional"/>
</xs:complexType>
<!-- statisticIntervalType -->
<xs:simpleType name="statisticIntervalType">
<xs:restriction base="xs:string">
<xs:enumeration value="realtime"/>
<xs:enumeration value="intrahour"/>
<xs:enumeration value="hour"/>
<xs:enumeration value="day"/>
<xs:enumeration value="week"/>
<xs:enumeration value="month"/>
<xs:enumeration value="auto"/>
</xs:restriction>
</xs:simpleType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:sequence>
<xs:element name="request">
<xs:complexType>
<xs:sequence>
<xs:element name="statistics" maxOccurs="unbounded" type="statisticsInType"/>
</xs:sequence>
<xs:attribute name="domain" type="xs:string"/>
<xs:attribute name="measure_type" type="statisticIntervalType"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:sequence>
<xs:element name="response">
<xs:complexType>
<xs:sequence>
<xs:element name="statistics" minOccurs="0" maxOccurs="unbounded" type="statisticsOutType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
XML
Ответ:
200