Class PerfCounterDataSource


  • public final class PerfCounterDataSource
    extends Object
    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 Detail

      • PerfCounterDataSource

        public PerfCounterDataSource()
    • Method Detail

      • streams

        public List<KnownPerfCounterDataSourceStreams> streams()
        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:
        the streams value.
      • withStreams

        public PerfCounterDataSource withStreams​(List<KnownPerfCounterDataSourceStreams> streams)
        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:
        streams - the streams value to set.
        Returns:
        the PerfCounterDataSource object itself.
      • samplingFrequencyInSeconds

        public Integer samplingFrequencyInSeconds()
        Get the samplingFrequencyInSeconds property: The number of seconds between consecutive counter measurements (samples).
        Returns:
        the samplingFrequencyInSeconds value.
      • withSamplingFrequencyInSeconds

        public PerfCounterDataSource withSamplingFrequencyInSeconds​(Integer samplingFrequencyInSeconds)
        Set the samplingFrequencyInSeconds property: The number of seconds between consecutive counter measurements (samples).
        Parameters:
        samplingFrequencyInSeconds - the samplingFrequencyInSeconds value to set.
        Returns:
        the PerfCounterDataSource object itself.
      • counterSpecifiers

        public List<String> counterSpecifiers()
        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:
        the counterSpecifiers value.
      • withCounterSpecifiers

        public PerfCounterDataSource withCounterSpecifiers​(List<String> counterSpecifiers)
        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:
        counterSpecifiers - the counterSpecifiers value to set.
        Returns:
        the PerfCounterDataSource object itself.
      • 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:
        the name value.
      • 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:
        name - the name value to set.
        Returns:
        the PerfCounterDataSource object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.