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.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
withPerformanceCounters
in 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:
withWindowsEventLogs
in 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:
withSyslog
in 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:
withExtensions
in 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:
withLogFiles
in 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:
withIisLogs
in classDataSourcesSpec
- Parameters:
iisLogs
- the iisLogs value to set.- Returns:
- the DataSourcesSpec object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classDataSourcesSpec
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DataSourcesSpec>
- Overrides:
toJson
in 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.
-