Routing schema file
The base IBM® Intelligent Operations Center routing schema file contains elements for the properties that are common to all data sources. Update the routing schema file to also include the properties that are unique to the data sources. The updated schema file is used to route data to KPIs. The updated schema file can also be used when applications are created that process records that are routed to integration topics.
Base routing schema file
XML messages that
are routed to KPIs are based on the following IOC-routing-v1.6.xsd base
routing schema file. The IOC-routing-v1.6.xsd file
is included in the sample monitor models.
<complexType>
<all>
<!-- * Minimal properties */ -->
<element name="DATASOURCEID" type="integer" minOccurs="1" maxOccurs="1" />
<element name="OBJECTID" type="integer" minOccurs="1" maxOccurs="1" />
<element name="STARTDATETIME" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="ENDDATETIME" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="LASTUPDATETIME" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="ASSESSMENTDATETIME" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="TIMEZONEOFFSET" type="integer" minOccurs="1" maxOccurs="1" />
<element name="LOCATION" type="string" minOccurs="1" maxOccurs="1" />
<element name="NAME" type="string" minOccurs="1" maxOccurs="1" />
<!-- * Key/Full properties */ -->
</all>
</complexType>
Sample modified routing schema file
To make
the base routing schema file work for ioc_sample_monitor_models,
the IOC-routing-v1.6.xsd base routing schema
file must be modified to match the following example. Depending on
how the data source is configured, all the following key and full
properties might, or might not, be included in the routed XML message.
<complexType>
<all>
<!-- * Minimal properties */ -->
<element name="DATASOURCEID" type="integer" minOccurs="1" maxOccurs="1" />
<element name="OBJECTID" type="integer" minOccurs="1" maxOccurs="1" />
<element name="STARTDATETIME" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="ENDDATETIME" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="LASTUPDATETIME" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="ASSESSMENTDATETIME" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="TIMEZONEOFFSET" type="integer" minOccurs="1" maxOccurs="1" />
<element name="LOCATION" type="string" minOccurs="1" maxOccurs="1" />
<element name="NAME" type="string" minOccurs="1" maxOccurs="1" />
<!-- * Key/Full properties */ -->
<element name="SUPPLY" type="string" minOccurs="0" maxOccurs="1" />
<element name="DEMAND" type="string" minOccurs="0" maxOccurs="1" />
<element name="REVENUE" type="string" minOccurs="0" maxOccurs="1" />
<element name="PROJECTED_REVENUE" type="string" minOccurs="0" maxOccurs="1" />
<element name="BUDGET" type="string" minOccurs="0" maxOccurs="1" />
<element name="EXPENSES" type="string" minOccurs="0" maxOccurs="1" />
<element name="AIRPORT" type="string" minOccurs="0" maxOccurs="1" />
<element name="DELAYS" type="string" minOccurs="0" maxOccurs="1" />
<element name="INCIDENT_NUMBER" type="string" minOccurs="1" maxOccurs="1" />
<element name="STATION" type="string" minOccurs="0" maxOccurs="1" />
<element name="SOURCE" type="string" minOccurs="0" maxOccurs="1" />
<element name="DISCHARGE" type="string" minOccurs="0" maxOccurs="1" />
<element name="PRECINCT" type="string" minOccurs="0" maxOccurs="1" />
<element name="PROBLEM" type="string" minOccurs="0" maxOccurs="1" />
<element name="SEVERITY" type="string" minOccurs="0" maxOccurs="1" />
<element name="LEAKAGE" type="string" minOccurs="0" maxOccurs="1" />
<element name="LEVEL" type="string" minOccurs="0" maxOccurs="1" />
<element name="PH" type="string" minOccurs="0" maxOccurs="1" />
<element name="TURBIDITY" type="string" minOccurs="0" maxOccurs="1" />
<element name="DEPARTMENT" type="string" minOccurs="0" maxOccurs="1" />
</all>
</complexType>