Oracle® Enterprise Manager Microsoft Systems Center Operations Manager (SCOM) Event Connectorユーザーズ・ガイド for Enterprise Manager Cloud Control 13c リリース3 F21012-01 |
|
前 |
次 |
テンプレートは、Enterprise ManagerイベントのXML書式をエンドポイント・アプリケーションのWebサービスに必要なXML書式に変換します。テンプレートをカスタマイズするには、データのマップ方法を把握するために両方の書式を理解する必要があります。この付録では、Enterprise Managerからのイベント情報が格納されるXMLドキュメントの書式に関する詳細情報を提供します。
スキーマ・ファイルにはXML文書の構造を定義します。EMEvent.xsd
スキーマ・ファイルには、イベント・データの主要な構造を定義します。このファイルには、他のスキーマ・ファイルからの構成情報もインポートします。次の各項では、EMEvent
XML書式を定義するスキーマ・ファイルの情報を提供します。
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlns.oracle.com/sysman/connector" targetNamespace="http://xmlns.oracle.com/sysman/connector" elementFormDefault="qualified" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc"> <xsd:annotation> <xsd:appinfo> <jaxb:globalBindings> <xjc:simple /> </jaxb:globalBindings> </xsd:appinfo> </xsd:annotation> <xsd:include schemaLocation="connectorCommon.xsd"/> <xsd:element name="EMEvent" type="EMEventType" /> <xsd:complexType name="EMEventType"> <xsd:sequence> <xsd:element name="ConnectorGUID" type="xsd:string"/> <xsd:element name="ExternalEventID" type="xsd:string" minOccurs="0"/> <xsd:element name="NotificationRuleOwner" type="xsd:string"/> <xsd:element name="NotificationRuleName" type="xsd:string"/> <xsd:element name="ConnectorVariable" type="VariableType" minOccurs="0" maxOccurs="50"/> <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="50"/> <xsd:element name="SystemAttributes" type="EventSystemAttributesType"/> <xsd:element name="EventClassSpecificAttributes"> <xsd:complexType> <xsd:sequence> <xsd:choice minOccurs="0" maxOccurs="200"> <xsd:element name="StringAttribute" type="StringValueType"/> <xsd:element name="NumberAttribute" type="StringValueType"/> <xsd:element name="RawAttribute" type="StringValueType"/> <xsd:element name="DateAttribute" type="DateValueType"/> </xsd:choice> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="EventContextAttributes"> <xsd:complexType> <xsd:sequence> <xsd:choice minOccurs="0" maxOccurs="200"> <xsd:element name="StringAttribute" type="StringValueType"/> <xsd:element name="NumberAttribute" type="StringValueType"/> </xsd:choice> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="EventSystemAttributesType"> <xsd:sequence> <xsd:element name="EventClass" type="xsd:string"/> <xsd:element name="EventID" type="xsd:string"/> <xsd:element name="SequenceID" type="xsd:string"/> <xsd:element name="OccurredDate" type="xsd:dateTime" minOccurs="0"/> <xsd:element name="ReportedDate" type="xsd:dateTime"/> <xsd:element name="DisplayTZ" type="xsd:string"/> <xsd:element name="EventName" type="xsd:string"/> <xsd:element name="Severity" type="xsd:string"/> <xsd:element name="SeverityCode" type="xsd:string"/> <xsd:element name="SourceInfo" type="SourceInfoType"/> <xsd:element name="Message" type="xsd:string" minOccurs="0"/> <xsd:element name="ActionMessage" type="xsd:string" minOccurs="0"/> <xsd:element name="EventURL" type="xsd:string"/> <xsd:element name="AutoClose" type="xsd:boolean"/> <xsd:element name="EventCategory" type="xsd:string" minOccurs="0" maxOccurs="50"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="StringValueType"> <xsd:sequence> <xsd:element name="Name" type="xsd:string"/> <xsd:element name="Value" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="DateValueType"> <xsd:sequence> <xsd:element name="Name" type="xsd:string"/> <xsd:element name="Value" type="xsd:dateTime"/> </xsd:sequence> </xsd:complexType> </xsd:schema>
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlns.oracle.com/sysman/connector" targetNamespace="http://xmlns.oracle.com/sysman/connector" elementFormDefault="qualified"> <xsd:include schemaLocation="externalEvent.xsd"/> <xsd:complexType name="SourceInfoType"> <xsd:annotation> <xsd:documentation> This section defines a complext type for Source Information. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="SourceObjInfo" type="SourceObjInfoType" minOccurs="0"> <xsd:annotation> <xsd:documentation> This element defines the data structure for the source object, the EM subsystem or component, that raises an EM event or an incident. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="TargetInfo" type="TargetInfoType" minOccurs="0"> <xsd:annotation> <xsd:documentation> The element defines the data structure for an EM target as related to the connector framework. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="SourceObjInfoType"> <xsd:annotation> <xsd:documentation> This section defines a complex type for Source Object Information. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="ObjID" type="xsd:string"> <xsd:annotation> <xsd:documentation> The unique ID to identify the source object. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="ObjName" type="xsd:string"> <xsd:annotation> <xsd:documentation> The name of the source object. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="ObjOwner" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> The owner of the source object. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="SourceObjType" type="xsd:string"> <xsd:annotation> <xsd:documentation> The type of the source object. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="SourceObjSubType" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> The subtype of the source object. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="TargetInfoType"> <xsd:annotation> <xsd:documentation> This section defines a complex type for target information. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="TargetGUID" type="xsd:string"> <xsd:annotation> <xsd:documentation> A unique GUID for the target. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="TargetName" type="xsd:string"> <xsd:annotation> <xsd:documentation> Name of the target. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="TargetType" type="xsd:string"> <xsd:annotation> <xsd:documentation> Type of the target. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="TargetTypeLabel" type="xsd:string"> <xsd:annotation> <xsd:documentation> The display label of the target type. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="TargetURL" type="xsd:string"> <xsd:annotation> <xsd:documentation> The URL of the target. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="TargetProperty" type="PropertyType" minOccurs="0" maxOccurs="50"> <xsd:annotation> <xsd:documentation> An optional list of properties for the target. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="PropertyType"> <xsd:annotation> <xsd:documentation> This section defines a complex type for a property attribute. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="Name" type="xsd:string"> <xsd:annotation> <xsd:documentation> A string name defining a property attribute. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="Value" type="xsd:string" nillable="true"> <xsd:annotation> <xsd:documentation> A non-null string value. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="VariableType"> <xsd:annotation> <xsd:documentation> This section defines a complex type for a general variable. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="VariableName" type="StringStrictT32"> <xsd:annotation> <xsd:documentation> Name of the variable. It has to be a string containing 1 or upto 32 upper case or lower case letters or numbers. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="VariableValue" type="StringT2048"> <xsd:annotation> <xsd:documentation> Value of the variable. It has to be a string containing 1 or upto 2048 characters. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="GetAlertsResponse"> <xsd:annotation> <xsd:documentation> This section defines a complex type for responses to a getAlerts request. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="Alert" minOccurs="0" maxOccurs="200"> <xsd:annotation> <xsd:documentation> The individual alerts contained in the response. A response may have upto 200 alerts. </xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element ref="ExternalEvent"> <xsd:annotation> <xsd:documentation> Details of the external event in the alert, as defined in ExternalEvent.xsd. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="InstanceVariable" type="VariableType" minOccurs="0" maxOccurs="50"> <xsd:annotation> <xsd:documentation> A list of instance variables for the alert. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ConnectorVariablesType"> <xsd:annotation> <xsd:documentation> This section defines a complex type for connector variables. An element of type ConnectorVariablesType may have up to 50 connector variables, as defined next. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="ConnectorVariable" type="VariableType" minOccurs="0" maxOccurs="50"> <xsd:annotation> <xsd:documentation> A connector varialbe as a name/value pair. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:simpleType name="StringT64"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 64 bytes. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="64"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringT128"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 128 bytes. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="128"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringT256"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 256 bytes. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="256"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringT512"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 512 bytes. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="512"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringT2048"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 2048 bytes. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="2048"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringStrictT16"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 16 bytes. The String can only contain lower or upper case letters, numbers, and the underscore characters. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="16"/> <xsd:pattern value="([a-zA-Z0-9_])*"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringStrictT32"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 32 bytes. The String can only contain lower or upper case letters, numbers, and the underscore characters. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="32"/> <xsd:pattern value="([a-zA-Z0-9_])*"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringStrictT64"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 64 bytes. The String can only contain lower or upper case letters, numbers, and the underscore characters. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="64"/> <xsd:pattern value="([a-zA-Z0-9_])*"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringStrictT128"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 128 bytes. The String can only contain lower or upper case letters, numbers, and the underscore characters. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="128"/> <xsd:pattern value="([a-zA-Z0-9_])*"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="StringStrictT256"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 256 bytes. The String can only contain lower or upper case letters, numbers, and the underscore characters. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="256"/> <xsd:pattern value="([a-zA-Z0-9_])*"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="VersionT"> <xsd:annotation> <xsd:documentation> This section defines a simple type for a String with maximum length of 20 bytes. The String can only contain numbers and the period characters. </xsd:documentation> </xsd:annotation> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="20"/> <xsd:pattern value="([0-9.])*"/> </xsd:restriction> </xsd:simpleType> </xsd:schema>
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlns.oracle.com/sysman/connector" targetNamespace="http://xmlns.oracle.com/sysman/connector" elementFormDefault="qualified"> <xsd:element name="ExternalEvent"> <xsd:annotation> <xsd:documentation> This section defines the attribute requirement of an extenral event for the connector framework to process it. </xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="SystemAttributes" type="ExternalEventSystemAttributesType"> <xsd:annotation> <xsd:documentation> Attributes to capture general information about the external event system. These attributes are system-specific, with all events from the same external system sharing the same system attributes. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="EventClassAttributes" type="ExternalEventClassAttributesType"> <xsd:annotation> <xsd:documentation> Attributes to capture specific information required for the event as defined in the event class. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:complexType name="ExternalEventSystemAttributesType"> <xsd:annotation> <xsd:documentation> This section defines a complext type for system attributes required for all external events. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="eventName" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> Name of the event. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="category" type="xsd:string" minOccurs="0" maxOccurs="50"> <xsd:annotation> <xsd:documentation> The event category to which the event belongs. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="targetName" type="xsd:string"> <xsd:annotation> <xsd:documentation> Name of the target on which event was generated. It refers to an entity in external systems simillar to an EM target. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="targetType" type="xsd:string"> <xsd:annotation> <xsd:documentation> The type of the target. Target types defined for event connectors are used. See connectorDeploy.xsd. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="occurrenceDate" type="xsd:dateTime"> <xsd:annotation> <xsd:documentation> Date when the event occured. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="detectedDate" type="xsd:dateTime"> <xsd:annotation> <xsd:documentation> Date when the event was last detected. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="autoClose" type="xsd:boolean"> <xsd:annotation> <xsd:documentation> A flag indicating if an event is auto closed by the system, or it has to be manually closed by users. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="message" type="xsd:string"> <xsd:annotation> <xsd:documentation> A description of the event. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="severity" type="xsd:string"> <xsd:annotation> <xsd:documentation> Severity level of the event. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ExternalEventClassAttributesType"> <xsd:annotation> <xsd:documentation> This section defines a complext type for class specific attributes required for all external events in the class. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="external_event_id" type="xsd:string"> <xsd:annotation> <xsd:documentation> ID used in external system to identify the event. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="external_rule_id" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> Optional rule ID that delivered the event in the external system. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="external_host" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> Optional host information from extrernal system where event was generated. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="external_source" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> Optional source information from the external system. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="external_severity" type="xsd:string"> <xsd:annotation> <xsd:documentation> Severity level of the event on external system. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="external_status" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> Status of the event on extenral system. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="custom_field1" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> An optional field. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="custom_field2" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> An optional field. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="custom_field3" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> An optional field. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="custom_field4" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> An optional field. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="custom_field5" type="xsd:string" minOccurs="0"> <xsd:annotation> <xsd:documentation> An optional field. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema>