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 Summary
Constructors Constructor Description DataSourcesSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ExtensionDataSource>extensions()Get the extensions property: The list of Azure VM extension data source configurations.List<PerfCounterDataSource>performanceCounters()Get the performanceCounters property: The list of performance counter data source configurations.List<SyslogDataSource>syslog()Get the syslog property: The list of Syslog data source configurations.voidvalidate()Validates the instance.List<WindowsEventLogDataSource>windowsEventLogs()Get the windowsEventLogs property: The list of Windows Event Log data source configurations.DataSourcesSpecwithExtensions(List<ExtensionDataSource> extensions)Set the extensions property: The list of Azure VM extension data source configurations.DataSourcesSpecwithPerformanceCounters(List<PerfCounterDataSource> performanceCounters)Set the performanceCounters property: The list of performance counter data source configurations.DataSourcesSpecwithSyslog(List<SyslogDataSource> syslog)Set the syslog property: The list of Syslog data source configurations.DataSourcesSpecwithWindowsEventLogs(List<WindowsEventLogDataSource> windowsEventLogs)Set the windowsEventLogs property: The list of Windows Event Log data source configurations.
-
-
-
Method Detail
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-