公共基本事件结构
公共基本事件是事件的公共结构。它定义事件的公共字段、这些字段可以使用的值以及这些值的确切含义。
公共基本事件包含若干结构元素。这些元素包括:
- 公共头信息
- 组件标识(源和报告器)
- 情况信息
- 消息数据
- 扩展的数据
- 上下文数据
- 关联的事件和关联引擎
下表显示公共基本事件中所有字段及其问题确定事件用法要求的总结。
字段名 | 日志事件 | 基本规范 |
---|---|---|
版本 | 必需 | 必需 |
creationTime | 必需 | 必需 |
严重性 | 必需 | 可选 |
Msg | 必需 | 可选 |
sourceComponentId* | 必需 | 必需 |
sourceComponentId.location | 必需 | 必需 |
sourceComponentId.locationType | 必需 | 必需 |
sourceComponentId.component | 必需 | 必需 |
sourceComponentId.subComponent | 必需 | 必需 |
sourceComponentId.componentIdType | 必需 | 必需 |
sourceComponentId.componentType | 必需 | 必需 |
sourceComponentId.application | 建议 | 可选 |
sourceComponentId.instanceId | 建议 | 可选 |
sourceComponentId.processId | 建议 | 可选 |
sourceComponentId.threadId | 建议 | 可选 |
sourceComponentId.executionEnvironment | 可选 | 可选 |
situation* | 必需 | 必需 |
situation.categoryName | 必需 | 必需 |
situation.situationType* | 必需 | 必需 |
situation.situationType.reasoningScope | 必需 | 必需 |
situation.situationType.(特定情况类型元素) | 必需 | 必需 |
msgDataElement* | 建议 | 可选 |
msgDataElement .msgId | 建议 | 可选 |
msgDataElement .msgIdType | 建议 | 可选 |
msgDataElement .msgCatalogId | 建议 | 可选 |
msgDataElement .msgCatalogTokens | 建议 | 可选 |
msgDataElement .msgCatalog | 建议 | 可选 |
msgDataElement .msgCatalogType | 建议 | 可选 |
msgDataElement .msgLocale | 建议 | 可选 |
extensionName | 建议 | 可选 |
localInstanceId | 可选 | 可选 |
globalInstanceId | 可选 | 可选 |
priority | 不鼓励 | 可选 |
repeatCount | 可选 | 可选 |
elapsedTime | 可选 | 可选 |
sequenceNumber | 可选 | 可选 |
reporterComponentId* | 可选 | 可选 |
reporterComponentId.location | 必需 (2) | 必需 (2) |
reporterComponentId.locationType | 必需 (2) | 必需 (2) |
reporterComponentId.component | 必需 (2) | 必需 (2) |
reporterComponentId.subComponent | 必需 (2) | 必需 (2) |
reporterComponentId.componentIdType | 必需 (2) | 必需 (2) |
reporterComponentId.componentType | 必需 (2) | 必需 (2) |
reporterComponentId.instanceId | 可选 | 可选 |
reporterComponentId.processId | 可选 | 可选 |
reporterComponentId.threadId | 可选 | 可选 |
reporterComponentId.application | 可选 | 可选 |
reporterComponentId.executionEnvironment | 可选 | 可选 |
extendedDataElements* | 注释 3 | 可选 |
contextDataElements* | 注释 4 | 可选 |
associatedEvents* | 注释 5 | 可选 |
- 后跟星号 (*) 的项是由子元素和属性组成的元素。那些元素中的字段直接跟着父元素名称在表中列出。
- 某些元素是可选的,但包括这些元素时,它们包括必需的子元素和属性。例如,reporterComponentId 元素具有 ComponentIdentification 类型。ComponentIdentification 中的组件属性是必需的。因此,reporterComponentId.component 属性是必需的,但仅当包括 reporterComponentId 父元素时才会如此。
- 可以多次包括 extendedDataElements 元素以提供扩展的数据信息。请参阅“扩展的数据”部分,以获取关于必需和建议的扩展的数据元素值的更多信息。
- 可以多次包括 contextDataElements 元素以提供上下文数据信息。
- 可以多次包括 associatedEvents 元素以提供相关性数据。建议不要将此元素用作问题确定数据的发生器,并且不推荐使用此元素。