この XML 文書は、WebSphere Application Server アプリケーションによって 生成された Common Base Event インスタンスの例です。
<CommonBaseEvent creationTime="2004-09-18T04:03:28.484Z" globalInstanceId="myhost:1095479647062:1899" msg="WSVR0024I: Server server1 stopped" severity="10" version="1.0.1"> ... several extendedDataElements for WebSphere Application Server internal use only ... <sourceComponentId component="com.ibm.ws.runtime.component.ServerCollaborator" componentIdType="Unknown" executionEnvironment="Windows 2000[x86]#5.0" instanceId="myhost¥myhost¥server1" location="myhost" locationType="Hostname" processId="1095479647062" subComponent="Unknown" threadId="Alarm : 0" componentType="http://www.ibm.com/namespaces/autonomic/WebSphereApplicationServer"/> <msgDataElement msgLocale="en_US"> <msgCatalogTokens value="server1"/> <msgId>WSVR0024I< /msgId> <msgCatalogId>WSVR0024I< /msgCatalogId> <msgCatalog>com.ibm.ws.runtime.runtime< /msgCatalog> </msgDataElement> <situation categoryName="ReportSituation"> <situationType xsi:type="ReportSituation" reasoningScope="EXTERNAL" reportCategory="LOG"/> </situation> </CommonBaseEvent>XML の多くの extendedDataElement エレメントが WebSphere Application Server で使用されますが、これらのエレメントは変更される可能性があるため、アプリケーションでは使用しません。
CommonBaseEvent エレメントは Common Base Event インスタンスを定義します。 このエレメントには、すべての Common Base Event に共通の属性セットがあります。 このセットには、Common Base Event インスタンスのタイプまたはクラス、作成時刻、重大度 および優先順位を定義する extensionName 属性が含まれます。
CommonBaseEvent エレメント内には、状態についてより詳細に指定するエレメントがネストされています。最初のエレメントは、状態エレメントです。 この分類は標準化されています。
CommonBaseEvent エレメントはまた、 sourceComponentId および (オプションで) reporterComponentId エレメントも含みます。 sourceComponentId エレメントは状態が発生した場所を示し、reporterComponentId は状態が検出された場所を示します。 sourceComponentId および reporterComponentId エレメントが同じ場合、reporterComponentId エレメントは省略されます。
sourceComponentId および reporterComponentId エレメント両方の属性は同じです。 これらはコンポーネントのタイプ、名前、オペレーティング・システムおよびネットワーク・ロケーションを示します。 これらの属性の内容は、Common Base Event が作成されたときにアクティブな IT リソースのスタックの垂直相関を提供します。
また、CommonBaseEvent エレメントに含まれるものに、 状態が発生したコンテキストを示す contextDataElements エレメントがあります。 このコンテキストは、同じ作業の一部である Common Base Event インスタンスと関連しています。 この相関は、特定のコンテキスト・タイプのインスタンスが同じ抽出レベル、例えば、ビジネス・レベル、アプリケーション・レベル、またはミドルウェア・レベルのイベントを関連付けるため、水平相関 と呼ばれます。
拡張データ・エレメントには、状態を記述するために使用される追加情報が含まれています。 この例では、Common Base Event インスタンスおよび一部のアプリケーション・データを生成した Java 2 Platform, Enterprise Edition (J2EE) コンポーネントを 記述する拡張データ・エレメントが、WebSphere Application Server によって追加されています。