PerfCounterDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. PerfCounterDataSource
- com.
Implements
public final class PerfCounterDataSource
implements JsonSerializable<PerfCounterDataSource>
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.
Constructor Summary
Constructor | Description |
---|---|
PerfCounterDataSource() |
Creates an instance of Perf |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
counterSpecifiers()
Get the counter |
static
Perf |
fromJson(JsonReader jsonReader)
Reads an instance of Perf |
String |
name()
Get the name property: A friendly name for the data source. |
Integer |
samplingFrequencyInSeconds()
Get the sampling |
List<Known |
streams()
Get the streams property: List of streams that this data source will be sent to. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Perf |
withCounterSpecifiers(List<String> counterSpecifiers)
Set the counter |
Perf |
withName(String name)
Set the name property: A friendly name for the data source. |
Perf |
withSamplingFrequencyInSeconds(Integer samplingFrequencyInSeconds)
Set the sampling |
Perf |
withStreams(List<KnownPerfCounterDataSourceStreams> streams)
Set the streams property: List of streams that this data source will be sent to. |
Methods inherited from java.lang.Object
Constructor Details
PerfCounterDataSource
public PerfCounterDataSource()
Creates an instance of PerfCounterDataSource class.
Method Details
counterSpecifiers
public List
Get the counterSpecifiers property: 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'.
Returns:
fromJson
public static PerfCounterDataSource fromJson(JsonReader jsonReader)
Reads an instance of PerfCounterDataSource from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: 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:
samplingFrequencyInSeconds
public Integer samplingFrequencyInSeconds()
Get the samplingFrequencyInSeconds property: The number of seconds between consecutive counter measurements (samples).
Returns:
streams
public List
Get the streams property: 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.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCounterSpecifiers
public PerfCounterDataSource withCounterSpecifiers(List
Set the counterSpecifiers property: 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'.
Parameters:
Returns:
withName
public PerfCounterDataSource withName(String name)
Set the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.
Parameters:
Returns:
withSamplingFrequencyInSeconds
public PerfCounterDataSource withSamplingFrequencyInSeconds(Integer samplingFrequencyInSeconds)
Set the samplingFrequencyInSeconds property: The number of seconds between consecutive counter measurements (samples).
Parameters:
Returns:
withStreams
public PerfCounterDataSource withStreams(List
Set the streams property: 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.
Parameters:
Returns:
Applies to
Azure SDK for Java