Событие со статистикой очереди в режиме реального времени.

<?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"/>

    <xs:simpleType name="LimitType">
        <xs:union>
            <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger"/>
            </xs:simpleType>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="unbounded"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:union>
    </xs:simpleType>

    <xs:complexType name="QueueRealtimeStatisticsEventType">
        <xs:attribute name="queue_id" type="xs:string"/>
        <xs:attribute name="waiting_conversations_limit" type="LimitType"/>
        <xs:attribute name="waiting_conversations_c" type="xs:integer"/>
        <xs:attribute name="distributed_conversations_c" type="xs:integer"/>
    </xs:complexType>

    <xs:element name="event">
        <xs:complexType>
            <xs:complexContent>
                <xs:extension base="baseEventType">
                    <xs:sequence>
                        <xs:element name="queue_realtime_statistics" type="QueueRealtimeStatisticsEventType"/>
                    </xs:sequence>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>

</xs:schema>
XML