ExtensionDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. ExtensionDataSource
- com.
Implements
public final class ExtensionDataSource
implements 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
Constructor | Description |
---|---|
ExtensionDataSource() |
Creates an instance of Extension |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
extensionName()
Get the extension |
Object |
extensionSettings()
Get the extension |
static
Extension |
fromJson(JsonReader jsonReader)
Reads an instance of Extension |
List<String> |
inputDataSources()
Get the input |
String |
name()
Get the name property: A friendly name for the data source. |
List<Known |
streams()
Get the streams property: List of streams that this data source will be sent to. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Extension |
withExtensionName(String extensionName)
Set the extension |
Extension |
withExtensionSettings(Object extensionSettings)
Set the extension |
Extension |
withInputDataSources(List<String> inputDataSources)
Set the input |
Extension |
withName(String name)
Set the name property: A friendly name for the data source. |
Extension |
withStreams(List<KnownExtensionDataSourceStreams> streams)
Set the streams property: List of streams that this data source will be sent to. |
Methods inherited from java.lang.Object
Constructor Details
ExtensionDataSource
public ExtensionDataSource()
Creates an instance of ExtensionDataSource class.
Method Details
extensionName
public String extensionName()
Get the extensionName property: The name of the VM extension.
Returns:
extensionSettings
public Object extensionSettings()
Get the extensionSettings property: The extension settings. The format is specific for particular extension.
Returns:
fromJson
public static ExtensionDataSource fromJson(JsonReader jsonReader)
Reads an instance of ExtensionDataSource from the JsonReader.
Parameters:
Returns:
Throws:
inputDataSources
public List
Get the inputDataSources property: The list of data sources this extension needs data from.
Returns:
name
public String 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:
streams
public List
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:
toJson
validate
public void validate()
Validates the instance.
withExtensionName
public ExtensionDataSource withExtensionName(String extensionName)
Set the extensionName property: The name of the VM extension.
Parameters:
Returns:
withExtensionSettings
public ExtensionDataSource withExtensionSettings(Object extensionSettings)
Set the extensionSettings property: The extension settings. The format is specific for particular extension.
Parameters:
Returns:
withInputDataSources
public ExtensionDataSource withInputDataSources(List
Set the inputDataSources property: The list of data sources this extension needs data from.
Parameters:
Returns:
withName
public ExtensionDataSource withName(String name)
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:
Returns:
withStreams
public ExtensionDataSource withStreams(List
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:
Returns:
Applies to
Azure SDK for Java