Class DataSourcesSpec

java.lang.Object
com.azure.resourcemanager.monitor.models.DataSourcesSpec
Direct Known Subclasses:
DataCollectionRuleDataSources

public class DataSourcesSpec extends Object
Specification of data sources that will be collected.
  • Constructor Details

    • DataSourcesSpec

      public DataSourcesSpec()
      Creates an instance of DataSourcesSpec class.
  • Method Details

    • performanceCounters

      public List<PerfCounterDataSource> performanceCounters()
      Get the performanceCounters property: The list of performance counter data source configurations.
      Returns:
      the performanceCounters value.
    • withPerformanceCounters

      public DataSourcesSpec withPerformanceCounters(List<PerfCounterDataSource> performanceCounters)
      Set the performanceCounters property: The list of performance counter data source configurations.
      Parameters:
      performanceCounters - the performanceCounters value to set.
      Returns:
      the DataSourcesSpec object itself.
    • windowsEventLogs

      public List<WindowsEventLogDataSource> windowsEventLogs()
      Get the windowsEventLogs property: The list of Windows Event Log data source configurations.
      Returns:
      the windowsEventLogs value.
    • withWindowsEventLogs

      public DataSourcesSpec withWindowsEventLogs(List<WindowsEventLogDataSource> windowsEventLogs)
      Set the windowsEventLogs property: The list of Windows Event Log data source configurations.
      Parameters:
      windowsEventLogs - the windowsEventLogs value to set.
      Returns:
      the DataSourcesSpec object itself.
    • syslog

      public List<SyslogDataSource> syslog()
      Get the syslog property: The list of Syslog data source configurations.
      Returns:
      the syslog value.
    • withSyslog

      public DataSourcesSpec withSyslog(List<SyslogDataSource> syslog)
      Set the syslog property: The list of Syslog data source configurations.
      Parameters:
      syslog - the syslog value to set.
      Returns:
      the DataSourcesSpec object itself.
    • extensions

      public List<ExtensionDataSource> extensions()
      Get the extensions property: The list of Azure VM extension data source configurations.
      Returns:
      the extensions value.
    • withExtensions

      public DataSourcesSpec withExtensions(List<ExtensionDataSource> extensions)
      Set the extensions property: The list of Azure VM extension data source configurations.
      Parameters:
      extensions - the extensions value to set.
      Returns:
      the DataSourcesSpec object itself.
    • logFiles

      public List<LogFilesDataSource> logFiles()
      Get the logFiles property: The list of Log files source configurations.
      Returns:
      the logFiles value.
    • withLogFiles

      public DataSourcesSpec withLogFiles(List<LogFilesDataSource> logFiles)
      Set the logFiles property: The list of Log files source configurations.
      Parameters:
      logFiles - the logFiles value to set.
      Returns:
      the DataSourcesSpec object itself.
    • iisLogs

      public List<IisLogsDataSource> iisLogs()
      Get the iisLogs property: The list of IIS logs source configurations.
      Returns:
      the iisLogs value.
    • withIisLogs

      public DataSourcesSpec withIisLogs(List<IisLogsDataSource> iisLogs)
      Set the iisLogs property: The list of IIS logs source configurations.
      Parameters:
      iisLogs - the iisLogs value to set.
      Returns:
      the DataSourcesSpec object itself.
    • validate

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