Partilhar via


ExtensionDataSource Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.ExtensionDataSource

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 ExtensionDataSource class.

Method Summary

Modifier and Type Method and Description
String extensionName()

Get the extensionName property: The name of the VM extension.

Object extensionSettings()

Get the extensionSettings property: The extension settings.

static ExtensionDataSource fromJson(JsonReader jsonReader)

Reads an instance of ExtensionDataSource from the JsonReader.

List<String> inputDataSources()

Get the inputDataSources property: The list of data sources this extension needs data from.

String name()

Get the name property: A friendly name for the data source.

List<KnownExtensionDataSourceStreams> streams()

Get the streams property: List of streams that this data source will be sent to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExtensionDataSource withExtensionName(String extensionName)

Set the extensionName property: The name of the VM extension.

ExtensionDataSource withExtensionSettings(Object extensionSettings)

Set the extensionSettings property: The extension settings.

ExtensionDataSource withInputDataSources(List<String> inputDataSources)

Set the inputDataSources property: The list of data sources this extension needs data from.

ExtensionDataSource withName(String name)

Set the name property: A friendly name for the data source.

ExtensionDataSource 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:

the extensionName value.

extensionSettings

public Object extensionSettings()

Get the extensionSettings property: The extension settings. The format is specific for particular extension.

Returns:

the extensionSettings value.

fromJson

public static ExtensionDataSource fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

inputDataSources

public List inputDataSources()

Get the inputDataSources property: The list of data sources this extension needs data from.

Returns:

the inputDataSources value.

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:

the name value.

streams

public List 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExtensionName

public ExtensionDataSource withExtensionName(String extensionName)

Set the extensionName property: The name of the VM extension.

Parameters:

extensionName - the extensionName value to set.

Returns:

the ExtensionDataSource object itself.

withExtensionSettings

public ExtensionDataSource withExtensionSettings(Object extensionSettings)

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.

withInputDataSources

public ExtensionDataSource withInputDataSources(List inputDataSources)

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.

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:

name - the name value to set.

Returns:

the ExtensionDataSource object itself.

withStreams

public ExtensionDataSource withStreams(List streams)

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.

Applies to