次の方法で共有


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.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.PerfCounterDataSourceTypeConverter))]
public class PerfCounterDataSource : Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPerfCounterDataSource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.PerfCounterDataSourceTypeConverter))>]
type PerfCounterDataSource = class
    interface IPerfCounterDataSource
    interface IJsonSerializable
Public Class PerfCounterDataSource
Implements IPerfCounterDataSource
Inheritance
PerfCounterDataSource
Attributes
Implements

Constructors

PerfCounterDataSource()

Creates an new PerfCounterDataSource instance.

Properties

CounterSpecifier

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.

SamplingFrequencyInSecond

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

Stream

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.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PerfCounterDataSource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PerfCounterDataSource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IPerfCounterDataSource.

FromJsonString(String)

Creates a new instance of PerfCounterDataSource, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of PerfCounterDataSource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to