MeasureType 确定要在立方体中用作度量方式的度量、计数器或秒表。MeasureType 还确定可对度量、计数器或秒表使用的函数。这些函数按 AggregationType 进行枚举。
- 元素
| Name |
最小最大出现次数 |
Description |
| description |
0 - 1 |
用户提供的度量方式描述。 |
- 属性
| Name |
必需或可选 |
类型 |
Description |
| source |
必需 |
String |
metric、counter 或 stopwatch 是 measure 的数据源。 |
| trackingKey |
可选 |
String |
可与度量方式关联以检索监控期间收集的实际值并将值返回到 WebSphere® Business
Modeler 的附加字符串。 |
| aggregationType |
必需 |
AggregationType |
AggregationType 中定义的其中一个有效聚集类型。 |
| id |
必需 |
String |
元素的唯一标识。 |
| displayName |
可选 |
String |
将显示在监控模型编辑器和 Business Monitor 仪表板中的名称。如果未提供 displayName,将使用 id 属性。 |
- 限制
- id 属性不得为 InstancesCount,这是保留的标识。
- 源属性必须指向关联监控上下文中的有效度量。
- 如果源引用的度量的类型为整数或小数,那么 aggregationType 必须是值 avg、count、max、min 或 sum 中的一个。
- 如果源引用的度量的类型为日期、日期时间或时间,那么 aggregationType 必须是值 count、max 或 min 中的一个。
- 如果源引用的度量的类型为持续时间,那么 aggregationType 必须是值 avg、count、max、min 或 sum 中的一个。
- 如果源引用的度量的类型为布尔值或字符串,那么 aggregationType 必须是 count。
- 模式定义
<xsd:complexType name="MeasureType" >
<xsd:complexContent>
<xsd:extension base="mon:NamedElementType">
<xsd:attribute name="source" type="xsd:string"
type="xsd:anyType"/>
<xsd:attribute name="aggregationType"
type="mon:AggregationType" use="required"/>
<xsd:attribute name="trackingKey" type="xsd:string"
use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>