TranslatorCollection 部分描述了如何将在前一部分中提取的已解析和已处理的数据源记录转换为 CA Business Service Insight 事件。
接口模式为“online”(联机)时,CA Business Service Insight 事件具有包含以下字段的统一结构:
接口模式为“offline”(脱机)时,对字段数目或其名称没有任何限制。
XML 结构:
<TranslatorCollection>
<Translator TranslatorName="events" OnDuplication = "ignore">
<TranslatorFields>
<TranslatorField Name="ResourceId" SourceType="table"
SourceName="ResourcesTranslateTable" Iskey="yes"/>
<TranslatorField Name="EventTypeId" SourceType="constant"
ConstantValue="1002" Iskey="yes"/>
<TranslatorField Name="Timestamp" SourceType="field"
SourceName="timestamp" Iskey="yes"/>
<TranslatorField Name="Value" SourceType="table"
SourceName="valueUpDownTranslateTable" Iskey="yes"/>
< TranslatorField Name="Value" SourceType ="field"
SourceName ="nodeName" Iskey="yes"/>
< TranslatorField Name="Value" SourceType ="constant"
Type="integer" ConstantValue="1000" Iskey="yes"/>
< TranslatorField Name="Value" SourceType ="field"
SourceName ="timestamp" TimeShift="-3600"
TimeShiftFieldName="createDate" Iskey="yes"/>
< TranslatorField Name="Value" SourceType ="lookup"
SourceName ="ServiceTable" LookupValue="word"
Iskey="yes"/>
</TranslatorFields>
</Translator>
</TranslatorCollection>
Field:此字段的值取自输入格式中的字段。 SourceName 属性包含字段名称。
Table:此字段的值取自转换表。 SourceName 属性包含表名。
lookup:此字段的值取自转换表。 SourceName 属性包含表名。 要转换的值取自 LookupValue 属性,而不是输入格式。
LookupValue:字段的值为常量,其值在 ConstantValue 属性中。
(请参阅“事件单一性”)
| 版权所有 © 2012 CA。 保留所有权利。 | 就该主题发送电子邮件至 CA Technologies |