Class DataSourcesSpec
java.lang.Object
com.azure.resourcemanager.monitor.models.DataSourcesSpec
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataSourcesSpec>
- Direct Known Subclasses:
DataCollectionRuleDataSources
public class DataSourcesSpec
extends Object
implements com.azure.json.JsonSerializable<DataSourcesSpec>
Specification of data sources that will be collected.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the extensions property: The list of Azure VM extension data source configurations.static DataSourcesSpec
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DataSourcesSpec from the JsonReader.iisLogs()
Get the iisLogs property: The list of IIS logs source configurations.logFiles()
Get the logFiles property: The list of Log files source configurations.Get the performanceCounters property: The list of performance counter data source configurations.syslog()
Get the syslog property: The list of Syslog data source configurations.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the windowsEventLogs property: The list of Windows Event Log data source configurations.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 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
-
DataSourcesSpec
public DataSourcesSpec()Creates an instance of DataSourcesSpec class.
-
-
Method Details
-
performanceCounters
Get the performanceCounters property: The list of performance counter data source configurations.- Returns:
- the performanceCounters value.
-
withPerformanceCounters
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
Get the windowsEventLogs property: The list of Windows Event Log data source configurations.- Returns:
- the windowsEventLogs value.
-
withWindowsEventLogs
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
Get the syslog property: The list of Syslog data source configurations.- Returns:
- the syslog value.
-
withSyslog
Set the syslog property: The list of Syslog data source configurations.- Parameters:
syslog
- the syslog value to set.- Returns:
- the DataSourcesSpec object itself.
-
extensions
Get the extensions property: The list of Azure VM extension data source configurations.- Returns:
- the extensions value.
-
withExtensions
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.
-
logFiles
Get the logFiles property: The list of Log files source configurations.- Returns:
- the logFiles value.
-
withLogFiles
Set the logFiles property: The list of Log files source configurations.- Parameters:
logFiles
- the logFiles value to set.- Returns:
- the DataSourcesSpec object itself.
-
iisLogs
Get the iisLogs property: The list of IIS logs source configurations.- Returns:
- the iisLogs value.
-
withIisLogs
Set the iisLogs property: The list of IIS logs source configurations.- Parameters:
iisLogs
- the iisLogs value to set.- Returns:
- the DataSourcesSpec object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DataSourcesSpec>
- Throws:
IOException
-
fromJson
Reads an instance of DataSourcesSpec from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DataSourcesSpec 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 DataSourcesSpec.
-