Class DataCollectionRuleDataSources
java.lang.Object
com.azure.resourcemanager.monitor.models.DataSourcesSpec
com.azure.resourcemanager.monitor.models.DataCollectionRuleDataSources
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
ConstructorsConstructorDescriptionCreates an instance of DataCollectionRuleDataSources class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.withExtensions(List<ExtensionDataSource> extensions) Set the extensions property: The list of Azure VM extension data source configurations.withIisLogs(List<IisLogsDataSource> iisLogs) Set the iisLogs property: The list of IIS logs source configurations.withLogFiles(List<LogFilesDataSource> logFiles) Set the logFiles property: The list of Log files source configurations.withPerformanceCounters(List<PerfCounterDataSource> performanceCounters) Set the performanceCounters property: The list of performance counter data source configurations.withSyslog(List<SyslogDataSource> syslog) Set the syslog property: The list of Syslog data source configurations.withWindowsEventLogs(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, iisLogs, logFiles, performanceCounters, syslog, windowsEventLogs
-
Constructor Details
-
DataCollectionRuleDataSources
public DataCollectionRuleDataSources()Creates an instance of DataCollectionRuleDataSources class.
-
-
Method Details
-
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
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
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.
-
withLogFiles
Set the logFiles property: The list of Log files source configurations.- Overrides:
withLogFilesin classDataSourcesSpec- Parameters:
logFiles- the logFiles value to set.- Returns:
- the DataSourcesSpec object itself.
-
withIisLogs
Set the iisLogs property: The list of IIS logs source configurations.- Overrides:
withIisLogsin classDataSourcesSpec- Parameters:
iisLogs- the iisLogs 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.
-