Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Команда для подписки на событие.

Шаблон HTTP-запроса:

http://host:port/<domain>/service/cc/arm/monitor

XSD-схема XML-запроса/ответа:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!-- baseEventType-->
    <xs:complexType name="baseEventType" abstract="true">
        <xs:attribute name="name" type="xs:string" use="required"/>
        <xs:attribute name="entity" type="xs:string" use="optional"/>
        <xs:attribute name="timestamp" type="xs:string" use="optional"/>
    </xs:complexType>
    <!-- monitorEventType-->
    <xs:complexType name="monitorEventType">
        <xs:complexContent>
            <xs:extension base="baseEventType"/>
        </xs:complexContent>
    </xs:complexType>
    <!-- startType -->
    <xs:complexType name="startType">
        <xs:sequence>
            <xs:element name="event" type="monitorEventType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <!-- stopType -->
    <xs:complexType name="stopType">
        <xs:sequence>
            <xs:element name="event" type="monitorEventType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <!-- monitor -->
    <xs:element name="monitor">
        <xs:complexType>
            <xs:all>
                <xs:element name="start" type="startType" minOccurs="0"/>
                <xs:element name="stop" type="stopType" minOccurs="0"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
</xs:schema>

Ответы:

200
404 - Подписка на несуществующее событие

  • Нет меток
Написать комментарий...