Class ExtensionDataSource
java.lang.Object
com.azure.resourcemanager.monitor.models.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.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.voidvalidate()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.
-
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.
-