Msvm_MetricDefForME class

Defines the association between an Msvm_BaseMetricDefinition and a CIM_ManagedElement to define metrics for the latter. The metrics definition is given context by the ManagedElement, which is why the definition is dependent on the element.

The following syntax is simplified Managed Object Format (MOF) code, and it includes all of the inherited properties.

Syntax

[Association, Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_MetricDefForME : CIM_MetricDefForME
{
  CIM_ManagedElement       REF Antecedent;
  CIM_BaseMetricDefinition REF Dependent;
  uint16                       MetricCollectionEnabled = 2;
};

Members

The Msvm_MetricDefForME class has these types of members:

Properties

The Msvm_MetricDefForME class has these properties.

Antecedent

Data type: CIM_ManagedElement

Access type: Read-only

A reference to an instance of the CIM_ManagedElement class that represents the managed element that can have metrics of the type defined by Dependent applied to it. This property is inherited from CIM_Dependency.

Dependent

Data type: CIM_BaseMetricDefinition

Access type: Read-only

A reference to an instance of the CIM_BaseMetricDefinition class that represents the metric definition that the Antecedent can have applied to it. This property is inherited from CIM_Dependency.

MetricCollectionEnabled

Data type: uint16

Access type: Read-only

Indicates whether the metric defined by Dependent is being collected for the Antecedent. This will be one of the following values.

Value Meaning
Enabled
2
The metric is being collected.
Disabled
3
The metric is not being collected.
Reserved
4
PartiallyEnabled
32768
The metric is being collected for some, but not all, devices.

Requirements

Requirement Value
Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe