Поделиться через


ShowMetrics method of the CIM_MetricService class

Indicates whether metric collection is enabled for the specified managed elements, and indicates the metrics that are available for collection for each managed element.

Syntax

uint32 ShowMetrics(
  [in]  CIM_ManagedElement       REF Subject,
  [in]  CIM_BaseMetricDefinition REF Definition,
  [out] CIM_ManagedElement       REF ManagedElements[],
  [out] CIM_BaseMetricDefinition REF DefinitionList[],
  [out] string                       MetricNames[],
  [out] uint16                       MetricCollectionEnabled[]
);

Parameters

Subject [in]

A reference to the managed element for which metrics are being collected.

Definition [in]

A reference to the metric definition that defines the metrics used to filter the results that are returned in the ManagedElements array. The ManagedElementsarray will return the managed elements for which the metrics indicated in the Definition property are available for collection.

ManagedElements [out]

If this method returns successfully, this parameter contains an array of references to the managed elements for which metric collection is available for the metric defined in the Definition parameter.

DefinitionList [out]

If this method returns successfully, this parameter contains an array of references to the metric definitions for the metrics that are available for collection for the managed element specified by the Subject parameter.

MetricNames [out]

If this method returns successfully, this parameter contains an array that contains the metric names for each metric definition in the DefinitionList array.

MetricCollectionEnabled [out]

If this method returns successfully, this parameter contains an array that indicates whether metric collection is enabled for each managed element in the ManagedElements array.

Enable (2)

Disable (3)

Reserved (4)

DMTF Reserved

5 32767

Vendor Reserved

32768 65535

Return value

The possible return values are:

Success (0)

Not Supported (1)

Failed (2)

Method Reserved (3 32767)

Vendor Specific (32768 65535)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

CIM_MetricService