大网数据广告活动
Hyper-V与虚拟化

CIM_BaseMetricValue class

· 52CE 我爱测

Represents the instance value of a metric.

Represents the instance value of a metric.

Syntax

[Abstract, Version("2.19.0"), UMLPackagePath("CIM::Metrics::BaseMetric"), AMENDMENT]
class CIM_BaseMetricValue : CIM_ManagedElement
{
  string   InstanceID;
  string   MetricDefinitionId;
  string   MeasuredElementName;
  datetime TimeStamp;
  datetime Duration;
  string   MetricValue;
  string   BreakdownDimension;
  string   BreakdownValue;
  boolean  Volatile;
};

Members

The CIM_BaseMetricValue class has these types of members:

Properties

The CIM_BaseMetricValue class has these properties.

BreakdownDimension

Data type: string

Access type: Read-only

The dimension for which this set of metric values is broken down based on BreakdownDimensions property of the associated CIM_BaseMetricDefinition object.

BreakdownValue

Data type: string

Access type: Read-only

The value of the BreakdownDimension property defined for this instance value. For example, if BreakdownDimension contains "TransactionName", this property could name the actual transaction to which this particular metric value applies.

Duration

Data type: datetime

Access type: Read-only

Qualifiers: ModelCorrespondence ("CIM_BaseMetricDefinition.TimeScope", "CIM_BaseMetricValue.TimeStamp")

The time duration over which this metric value is valid. This property should not exist for time stamps that only apply to a point in time, but should be defined for values that are considered valid for a certain time period (ex. sampling). If the Duration property exists and is non-Null, the TimeStamp value should be the end of the interval.

InstanceID

Data type: string

Access type: Read-only

Qualifiers: Key, Override ("InstanceID")

Uniquely identifies an instance of this class within the scope of the containing namespace.

Important:

In order to ensure uniqueness within the namespace, the value of the InstanceID property should be constructed in the following pattern: OrgID:LocalID

OrgID must include a copyrighted, trademarked or otherwise unique name that is owned by the business entity that defines the InstanceID, or be a registered ID that is assigned by a recognized global authority. This pattern is similar to the structure of schema class names. In addition, to ensure uniqueness, the first colon in InstanceID must be between the OrgID andLocalID. Therefore the OrgID must not contain a colon (':').

LocalID is chosen by the business entity and should not be re-used to identify different underlying real-world elements.

If the above pattern is not used, the defining entity must assure that the resultant InstanceID value is not re-used across any InstanceID properties that are produced by this provider or other providers for this namespace.

For Distributed Management Task Force (DMTF) defined instances, the pattern must be used with the OrgID set to CIM.

MeasuredElementName

Data type: string

Access type: Read-only

A descriptive name for the element that is measure by the metric.

This property is required if the metric definition is not associated with a CIM_ManagedElement object, and may be used in other cases to provide supplemental information. This allows metrics to be captured independent of any CIM_ManagedElement object.

If there are multiple CIM_ManagedElement objects associated with the metric value, then you can choose one of the managed elements to create the supplemental information for the metric. The property is not meant to be used as a foreign key to query the measured element. Instead, the association to the CIM_ManagedElement should be used.

MetricDefinitionId

Data type: string

Access type: Read-only

Qualifiers: Required, ModelCorrespondence ("CIM_BaseMetricDefinition.Id")

The key of the CIM_BaseMetricDefinition instance that is associated with this instance value.

MetricValue

Data type: string

Access type: Read-only

Qualifiers: Required

A string representation of the metric value. The original data type of the metric value is specified in the associated CIM_BaseMetricDefinition object.

TimeStamp

Data type: datetime

Access type: Read-only

Qualifiers: ModelCorrespondence ("CIM_BaseMetricDefinition.TimeScope", "CIM_BaseMetricValue.Duration")

The time when the value of a metric instance is computed. This is different from the time when the instance is created. If the Volatile property is true, this value changes whenever a new measurement snapshot is taken.

A management application may establish a time series of metric data by retrieving the instances of CIM_BaseMetricValue and sorting them according to their TimeStamp value.

Volatile

Data type: boolean

Access type: Read-only

True if the TimeStamp value changes whenever the value of the metric instance changes. False if this object must remain unchanged and a new object created for the new TimeStamp value.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Namespace Root\virtualization\v2
MOF WindowsVirtualization.V2.mof
DLL Vmms.exe

See also

CIM_ManagedElement

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。