Compartir a través de


ControlSampleTimes method of the CIM_MetricService class

Specifies when metrics are gathered for a metric service.

Syntax

uint32 ControlSampleTimes(
  [in] datetime StartSampleTime,
  [in] datetime PreferredSampleInterval,
  [in] boolean  RestartGathering
);

Parameters

StartSampleTime [in]

The point in time to start metric sampling.

PreferredSampleInterval [in]

The preferred sample interval time for periodic data gathering.

RestartGathering [in]

true to request that metric gathering is restarted for the metric service; otherwise, false.

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