Class ExtensionDataSource
java.lang.Object
com.azure.resourcemanager.monitor.models.ExtensionDataSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExtensionDataSource>
public final class ExtensionDataSource
extends Object
implements com.azure.json.JsonSerializable<ExtensionDataSource>
Definition of which data will be collected from a separate VM extension that integrates with the Azure Monitor Agent.
Collected from either Windows and Linux machines, depending on which extension is defined.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the extensionName property: The name of the VM extension.Get the extensionSettings property: The extension settings.static ExtensionDataSource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ExtensionDataSource from the JsonReader.Get the inputDataSources property: The list of data sources this extension needs data from.name()
Get the name property: A friendly name for the data source.streams()
Get the streams property: List of streams that this data source will be sent to.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withExtensionName
(String extensionName) Set the extensionName property: The name of the VM extension.withExtensionSettings
(Object extensionSettings) Set the extensionSettings property: The extension settings.withInputDataSources
(List<String> inputDataSources) Set the inputDataSources property: The list of data sources this extension needs data from.Set the name property: A friendly name for the data source.withStreams
(List<KnownExtensionDataSourceStreams> streams) Set the streams property: List of streams that this data source will be sent to.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
-
ExtensionDataSource
public ExtensionDataSource()Creates an instance of ExtensionDataSource class.
-
-
Method Details
-
streams
Get the streams property: List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.- Returns:
- the streams value.
-
withStreams
Set the streams property: List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.- Parameters:
streams
- the streams value to set.- Returns:
- the ExtensionDataSource object itself.
-
extensionName
Get the extensionName property: The name of the VM extension.- Returns:
- the extensionName value.
-
withExtensionName
Set the extensionName property: The name of the VM extension.- Parameters:
extensionName
- the extensionName value to set.- Returns:
- the ExtensionDataSource object itself.
-
extensionSettings
Get the extensionSettings property: The extension settings. The format is specific for particular extension.- Returns:
- the extensionSettings value.
-
withExtensionSettings
Set the extensionSettings property: The extension settings. The format is specific for particular extension.- Parameters:
extensionSettings
- the extensionSettings value to set.- Returns:
- the ExtensionDataSource object itself.
-
inputDataSources
Get the inputDataSources property: The list of data sources this extension needs data from.- Returns:
- the inputDataSources value.
-
withInputDataSources
Set the inputDataSources property: The list of data sources this extension needs data from.- Parameters:
inputDataSources
- the inputDataSources value to set.- Returns:
- the ExtensionDataSource object itself.
-
name
Get the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.- Returns:
- the name value.
-
withName
Set the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.- Parameters:
name
- the name value to set.- Returns:
- the ExtensionDataSource 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<ExtensionDataSource>
- Throws:
IOException
-
fromJson
Reads an instance of ExtensionDataSource from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ExtensionDataSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the ExtensionDataSource.
-