Class WindowsEventLogDataSource

java.lang.Object
com.azure.resourcemanager.monitor.models.WindowsEventLogDataSource
All Implemented Interfaces:
com.azure.json.JsonSerializable<WindowsEventLogDataSource>

public final class WindowsEventLogDataSource extends Object implements com.azure.json.JsonSerializable<WindowsEventLogDataSource>
Definition of which Windows Event Log events will be collected and how they will be collected. Only collected from Windows machines.
  • Constructor Details

    • WindowsEventLogDataSource

      public WindowsEventLogDataSource()
      Creates an instance of WindowsEventLogDataSource 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 WindowsEventLogDataSource object itself.
    • xPathQueries

      public List<String> xPathQueries()
      Get the xPathQueries property: A list of Windows Event Log queries in XPATH format.
      Returns:
      the xPathQueries value.
    • withXPathQueries

      public WindowsEventLogDataSource withXPathQueries(List<String> xPathQueries)
      Set the xPathQueries property: A list of Windows Event Log queries in XPATH format.
      Parameters:
      xPathQueries - the xPathQueries value to set.
      Returns:
      the WindowsEventLogDataSource 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 WindowsEventLogDataSource 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 WindowsEventLogDataSource 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<WindowsEventLogDataSource>
      Throws:
      IOException
    • fromJson

      public static WindowsEventLogDataSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WindowsEventLogDataSource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WindowsEventLogDataSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the WindowsEventLogDataSource.