Language

ArmMonitorModelFactory.PerfCounterDataSource Method

Definition

Definition of which performance counters will be collected and how they will be collected by this data collection rule. Collected from both Windows and Linux machines where the counter is present.

public static Azure.ResourceManager.Monitor.Models.PerfCounterDataSource PerfCounterDataSource(System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.PerfCounterDataSourceStream> streams = default, int? samplingFrequencyInSeconds = default, System.Collections.Generic.IEnumerable<string> counterSpecifiers = default, string transformKql = default, string name = default);
static member PerfCounterDataSource : seq<Azure.ResourceManager.Monitor.Models.PerfCounterDataSourceStream> * Nullable<int> * seq<string> * string * string -> Azure.ResourceManager.Monitor.Models.PerfCounterDataSource
Public Shared Function PerfCounterDataSource (Optional streams As IEnumerable(Of PerfCounterDataSourceStream) = Nothing, Optional samplingFrequencyInSeconds As Nullable(Of Integer) = Nothing, Optional counterSpecifiers As IEnumerable(Of String) = Nothing, Optional transformKql As String = Nothing, Optional name As String = Nothing) As PerfCounterDataSource

Parameters

streams
IEnumerable<PerfCounterDataSourceStream>

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.

samplingFrequencyInSeconds
Nullable<Int32>

The number of seconds between consecutive counter measurements (samples).

counterSpecifiers
IEnumerable<String>

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'.

transformKql
String

The KQL query to transform the data source. This is a deprecated property and will be removed in future versions.

name
String

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

Returns

A new PerfCounterDataSource instance for mocking.

Applies to