IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Developing monitor models > What are monitor models? > Monitor XML schema definition (monitor.xsd) > XML schema (monitor.xsd) description

ContextType

ContextType is an abstract complex type that holds the common elements for both monitoring contexts and KPI contexts.

Elements

Name Min-max Description
trigger 0 - n The triggers that the context generates.
inboundEvent 0 - n The events that the context is interested in.
outboundEvent 0 - n The events that the context might generate.
description 0 - 1 (Optional) A description of the context.

Attributes

Name Required or optional Type Description
displayName Optional String The name to display in the Monitor Model editor and Business Monitor dashboards.

If a displayName is not provided, the ID attribute is used.

id Required String The unique identifier of the context. Because ContextType has an ID, all of its attributes will have a default context of this ID for references in expressions. All child elements that do not have an ID attribute will also have this ID as the default context for references in expressions.
eventSequenceIDPath Optional String The path to an event attribute that indicates a sequencing order for inbound events. The path expression specified at the context level is used for all contained and descendant inbound events, unless a value has been provided for an inbound event to specifically override this value.
creationTimePath Optional String The path to an event attribute that indicates the creation time of the event. The Monitor server uses this attribute as the current date and time, for example to determine the stop and start times of a stopwatch. By default, the value used at run time is the path to the Common Base Event creationTime attribute, which contains the time at which the event is created, in UTC. The path expression specified at the context level is used for all contained and descendant inbound events, unless a value has been provided for an inbound event to specifically override this value.
globalInstanceIDPath Optional String The path to an event attribute that indicates the global instance ID. This ID is used to relate the problem determination message to a specific event when there is an error at run time, for example in the WebSphere Application Server log. By default, the value used at run time is the path to the Common Base Event globalInstanceId, which is an automatically generated identifier to uniquely identify the event. The path expression specified at the context level is used for all contained and descendant inbound events, unless a value has been provided for an inbound event to specifically override this value.

Restrictions

None

Schema definition

<xsd:complexType name="ContextType" >
    <xsd:complexContent>
        <xsd:extension base="mon:NamedElementType">
            <xsd:choice minOccurs="0" maxOccurs="unbounded">
                <xsd:element name="trigger" type="mon:TriggerType"/>
                <xsd:element name="inboundEvent" 
                    type="mon:InboundEventType"/>
                <xsd:element name="outboundEvent" 
                     type="mon:OutboundEventType"/>
            </xsd:choice>
            <xsd:attribute name="eventSequenceIDPath" type="xsd:string" 
                           use="optional"/>
            <xsd:attribute name="creationTimePath" type="xsd:string" 
                           use="optional"/>
            <xsd:attribute name="globalInstanceIDPath" type="xsd:string" 
                           use="optional"/>
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>

XML schema (monitor.xsd) description