Share via


PerfCounterDataSource Class

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 class PerfCounterDataSource : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.PerfCounterDataSource>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.PerfCounterDataSource>
type PerfCounterDataSource = class
    interface IJsonModel<PerfCounterDataSource>
    interface IPersistableModel<PerfCounterDataSource>
Public Class PerfCounterDataSource
Implements IJsonModel(Of PerfCounterDataSource), IPersistableModel(Of PerfCounterDataSource)
Inheritance
PerfCounterDataSource
Implements

Constructors

PerfCounterDataSource()

Initializes a new instance of PerfCounterDataSource.

Properties

CounterSpecifiers

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

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

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

Streams

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.

Explicit Interface Implementations

IJsonModel<PerfCounterDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<PerfCounterDataSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PerfCounterDataSource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PerfCounterDataSource>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<PerfCounterDataSource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to