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

      public String extensionName()
      Get the extensionName property: The name of the VM extension.
      Returns:
      the extensionName value.
    • 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.
    • extensionSettings

      public Object extensionSettings()
      Get the extensionSettings property: The extension settings. The format is specific for particular extension.
      Returns:
      the extensionSettings value.
    • 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.
    • inputDataSources

      public List<String> inputDataSources()
      Get the inputDataSources property: The list of data sources this extension needs data from.
      Returns:
      the inputDataSources value.
    • withInputDataSources

      public ExtensionDataSource withInputDataSources(List<String> 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ExtensionDataSource>
      Throws:
      IOException
    • fromJson

      public static ExtensionDataSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.