Оператор видит только свои очереди. Подписка на список очередей для оператора. Оператор с правами супервизора видит все очереди.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

    <xs:include schemaLocation="monitor.xsd"/>

    <!-- event -->
    <xs:element name="event">
        <xs:complexType>
            <xs:complexContent>
                <xs:extension base="baseEventType">
                    <xs:choice>
                        <xs:element name="full" type="fullType"/>
                        <xs:element name="partial" type="partialType"/>
                    </xs:choice>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>

    <!-- resultFullType -->
    <xs:complexType name="fullType">
        <xs:sequence>
            <xs:element name="queue" type="queueType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <!-- resultPartialType -->
    <xs:complexType name="partialType">
        <xs:sequence>
            <xs:element name="action" type="actionType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <!-- actionType -->
    <xs:complexType name="actionType">
        <xs:sequence>
            <xs:element name="queue" type="queueType" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="type" type="actionTypeContent" use="required"/>
    </xs:complexType>

    <!-- queueType -->
    <xs:complexType name="queueType">
        <xs:attribute name="queue_id" type="xs:string" use="required"/>
        <xs:attribute name="member" type="xs:boolean" use="required"/>
    </xs:complexType>

    <!-- actionTypeContent -->
    <xs:simpleType name="actionTypeContent">
        <xs:restriction base="xs:string">
            <xs:enumeration value="added"/>
            <xs:enumeration value="removed"/>
            <xs:enumeration value="changed"/>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>

XML

Примеры:

full:

<?xml version="1.0"?>
<event name="queue_list_event" timestamp="1970/01/01 07:00:00">
<full>
    <queue queue_id="queue2" member="false"/>
    <queue queue_id="queue1" member="false"/>
</full>
</event>

CODE

partial:

<?xml version="1.0"?>
<event name="queue_list_event" timestamp="1970/01/01 07:00:00">
<partial>
    <action type="added">
        <queue queue_id="queue3" member="false"/>
    </action>
    <action type="removed">
        <queue queue_id="queue4" member="false"/>
    </action>
    <action type="changed">
        <queue queue_id="queue5" member="true"/>
    </action>
</partial>
</event>
CODE