Class DataCollectionRuleDataSources
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.DataSourcesSpec
-
- com.azure.resourcemanager.monitor.models.DataCollectionRuleDataSources
-
public final class DataCollectionRuleDataSources extends DataSourcesSpec
The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
-
-
Constructor Summary
Constructors Constructor Description DataCollectionRuleDataSources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates the instance.DataCollectionRuleDataSourceswithExtensions(List<ExtensionDataSource> extensions)Set the extensions property: The list of Azure VM extension data source configurations.DataCollectionRuleDataSourceswithPerformanceCounters(List<PerfCounterDataSource> performanceCounters)Set the performanceCounters property: The list of performance counter data source configurations.DataCollectionRuleDataSourceswithSyslog(List<SyslogDataSource> syslog)Set the syslog property: The list of Syslog data source configurations.DataCollectionRuleDataSourceswithWindowsEventLogs(List<WindowsEventLogDataSource> windowsEventLogs)Set the windowsEventLogs property: The list of Windows Event Log data source configurations.-
Methods inherited from class com.azure.resourcemanager.monitor.models.DataSourcesSpec
extensions, performanceCounters, syslog, windowsEventLogs
-
-
-
-
Method Detail
-
withPerformanceCounters
public DataCollectionRuleDataSources withPerformanceCounters(List<PerfCounterDataSource> performanceCounters)
Set the performanceCounters property: The list of performance counter data source configurations.- Overrides:
withPerformanceCountersin classDataSourcesSpec- Parameters:
performanceCounters- the performanceCounters value to set.- Returns:
- the DataSourcesSpec object itself.
-
withWindowsEventLogs
public DataCollectionRuleDataSources withWindowsEventLogs(List<WindowsEventLogDataSource> windowsEventLogs)
Set the windowsEventLogs property: The list of Windows Event Log data source configurations.- Overrides:
withWindowsEventLogsin classDataSourcesSpec- Parameters:
windowsEventLogs- the windowsEventLogs value to set.- Returns:
- the DataSourcesSpec object itself.
-
withSyslog
public DataCollectionRuleDataSources withSyslog(List<SyslogDataSource> syslog)
Set the syslog property: The list of Syslog data source configurations.- Overrides:
withSyslogin classDataSourcesSpec- Parameters:
syslog- the syslog value to set.- Returns:
- the DataSourcesSpec object itself.
-
withExtensions
public DataCollectionRuleDataSources withExtensions(List<ExtensionDataSource> extensions)
Set the extensions property: The list of Azure VM extension data source configurations.- Overrides:
withExtensionsin classDataSourcesSpec- Parameters:
extensions- the extensions value to set.- Returns:
- the DataSourcesSpec object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classDataSourcesSpec- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-