Share via


GetCounterSamplesInTimeRange method of the MSFT_ServerManagerTasks class

Retrieves the performance counter samples logged by a Data Collector Set in a particular time range.

Syntax

uint32 GetCounterSamplesInTimeRange(
  [in]  string                               CollectorName,
  [in]  string                               CounterPaths[],
  [in]  datetime                             StartTime,
  [in]  datetime                             EndTime,
  [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.

StartTime [in]

The start boundary of the time range.

EndTime [in]

The end boundary of the time range.

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