Dynamic alert schema definition (situation_event.xsd)

Dynamic alerts generate situation event XML files that contain the KPI information that triggered the alert. The XML format is defined by the situation_event.xsd schema definition.

The complete schema is provided on this page.

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified"
	attributeFormDefault="qualified"
	targetNamespace="http://www.ibm.com/xmlns/prod/websphere/monitoring/6.2.0/situation_event"
	xmlns:situation_event="http://www.ibm.com/xmlns/prod/websphere/monitoring/6.2.0/situation_event"
	xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

	<xsd:element name="situationEvent" type="situation_event:SituationEventType" />

	<xsd:complexType name="SituationEventType">
		<xsd:sequence>
			<xsd:element maxOccurs="1" minOccurs="0" name="description"
				type="xsd:string" />
			<xsd:element maxOccurs="1" minOccurs="1" name="monitorModel"
				type="situation_event:MonitorModelType" />
		</xsd:sequence>
		<xsd:attribute name="businessSituationName" type="xsd:string"
			use="required" />
		<xsd:attribute name="businessSituationTimestamp" type="xsd:dateTime"
			use="required" />
	</xsd:complexType>

	<xsd:complexType name="MonitorModelType">
		<xsd:sequence>
			<xsd:element maxOccurs="unbounded" minOccurs="1" name="kpi"
				type="situation_event:KPIType" />
		</xsd:sequence>
		<xsd:attribute name="id" type="xsd:string" use="required" />
		<xsd:attribute name="displayName" type="xsd:string" use="optional" />
		<xsd:attribute name="version" type="xsd:string" use="required" />
	</xsd:complexType>

	<xsd:complexType name="KPIType">
		<xsd:sequence>
			<xsd:element maxOccurs="1" minOccurs="0" name="description"
				type="xsd:string" />
			<xsd:element maxOccurs="1" minOccurs="0" name="kpiValue"
				type="situation_event:ValueType" />
			<xsd:element maxOccurs="1" minOccurs="0" name="target"
				type="situation_event:ValueType" />
			<xsd:element maxOccurs="unbounded" minOccurs="0" name="range"
				type="situation_event:KPIRangeType" />
			<xsd:element maxOccurs="unbounded" minOccurs="0"
				name="predictionModel" type="situation_event:PredictionModelType" />
		</xsd:sequence>
		<xsd:attribute name="id" type="xsd:string" use="required" />
		<xsd:attribute name="displayName" type="xsd:string" use="required" />
		<xsd:attribute name="type" type="situation_event:KPIDataType"
			use="required" />
		<xsd:attribute name="rangeType" type="situation_event:RangeTypeType"
			use="optional" />
	</xsd:complexType>

	<xsd:complexType name="ValueType">
		<xsd:attribute name="value" type="xsd:decimal" use="required" />
		<xsd:attribute name="formattedValue" type="xsd:string"
			use="required" />
	</xsd:complexType>

	<xsd:complexType name="KPIRangeType">
		<xsd:sequence>
			<xsd:element maxOccurs="1" minOccurs="1" name="startValue"
				type="situation_event:ValueType" />
			<xsd:element maxOccurs="1" minOccurs="1" name="endValue"
				type="situation_event:ValueType" />
		</xsd:sequence>
		<xsd:attribute name="id" type="xsd:string" use="required" />
		<xsd:attribute name="displayName" type="xsd:string" use="required" />
	</xsd:complexType>

	<xsd:simpleType name="KPIDataType">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="decimal" />
			<xsd:enumeration value="duration" />
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="RangeTypeType">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="actualValue" />
			<xsd:enumeration value="percentage" />
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:complexType name="PredictionModelType">
		<xsd:sequence>
			<xsd:element maxOccurs="unbounded" minOccurs="1" name="prediction"
				type="situation_event:PredictionType" />
		</xsd:sequence>
		<xsd:attribute name="id" type="xsd:string" use="required" />
		<xsd:attribute name="displayName" type="xsd:string" use="required" />
	</xsd:complexType>

	<xsd:complexType name="PredictionType">
		<xsd:attribute name="gmtTimestamp" type="xsd:dateTime"
			use="required" />
		<xsd:attribute name="gmtTimestampFormatted" type="xsd:string"
			use="required" />
		<xsd:attribute name="localTimestampFormatted" type="xsd:string"
			use="required" />
		<xsd:attribute name="value" type="xsd:decimal" use="required" />
		<xsd:attribute name="formattedValue" type="xsd:string"
			use="required" />
		<xsd:attribute name="triggeringPrediction" type="xsd:boolean"
			use="optional" />
	</xsd:complexType>

</xsd:schema>