Class DataCollectionRuleDataSources
java.lang.Object
com.azure.resourcemanager.monitor.models.DataSourcesSpec
com.azure.resourcemanager.monitor.models.DataCollectionRuleDataSources
- All Implemented Interfaces:
com.azure.json.JsonSerializable<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
ConstructorsConstructorDescriptionCreates an instance of DataCollectionRuleDataSources class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataCollectionRuleDataSources from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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 DataSourcesSpec
extensions, iisLogs, logFiles, performanceCounters, syslog, windowsEventLogsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataSourcesSpec>- Overrides:
toJsonin classDataSourcesSpec- Throws:
IOException
-
fromJson
public static DataCollectionRuleDataSources fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataCollectionRuleDataSources from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DataCollectionRuleDataSources if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DataCollectionRuleDataSources.
-