Partager via


GetCounterSamplesAtTime method of the MSFT_ServerManagerTasks class

Retrieves the performance counter samples logged by a Data Collector Set at the specified time stamps.

Syntax

uint32 GetCounterSamplesAtTime(
  [in]  string                               CollectorName,
  [in]  string                               CounterPaths[],
  [in]  datetime                             Timestamps[],
  [in]  uint32                               BatchSize,
  [out] MSFT_ServerPerformanceCounterSamples cmdletOutput[]
);

Parameters

CollectorName [in]

The name of the Data Collector Set in Performance Logs & Alerts.

CounterPaths [in]

The list of performance counters to query in the performance log file.

Timestamps [in]

The list of timestamps to filter the performance counter samples.

BatchSize [in]

The batch size to use for streaming data back to the client.

cmdletOutput [out]

An array of embedded instances of MSFT_ServerPerformanceCounterSamples that represent the selected performance counter samples.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Windows\ServerManager
MOF
MgmtProvider.mof
DLL
MgmtProvider.dll

See also

MSFT_ServerManagerTasks

MSFT_ServerPerformanceCounterSamples