Partilhar via


PSPerfCounterDataSource Class

Definition

Wraps the PerfCounterDataSource class.

public class PSPerfCounterDataSource
type PSPerfCounterDataSource = class
Public Class PSPerfCounterDataSource
Inheritance
PSPerfCounterDataSource

Constructors

PSPerfCounterDataSource()

Initializes a new instance of the PSExtensionDataSource class.

PSPerfCounterDataSource(PerfCounterDataSource)

Initializes a new instance of the PSExtensionDataSource class.

Properties

CounterSpecifiers

Gets or sets a list of specifier names of the performance counters you want to collect. Use a wildcard (*) to collect a counter for all instances. To get a list of performance counters on Windows, run the command 'typeperf'.

Name

Gets or sets a friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.

SamplingFrequencyInSeconds

Gets or sets the number of seconds between consecutive counter measurements (samples).

ScheduledTransferPeriod

Gets or sets the interval between data uploads (scheduled transfers), rounded up to the nearest minute. Possible values include: 'PT1M', 'PT5M', 'PT15M', 'PT30M', 'PT60M'

Streams

Gets or sets list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.

Applies to