Class ExtensionDataSource


  • public final class ExtensionDataSource
    extends Object
    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 Detail

      • ExtensionDataSource

        public ExtensionDataSource()
    • Method Detail

      • streams

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

        public ExtensionDataSource withStreams​(List<KnownExtensionDataSourceStreams> 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.
      • 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.