Class RuleDefinition

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

public final class RuleDefinition extends Object implements com.azure.json.JsonSerializable<RuleDefinition>
Rule definition parameters.
  • Constructor Details

    • RuleDefinition

      public RuleDefinition()
      Creates an instance of RuleDefinition class.
  • Method Details

    • query

      public String query()
      Get the query property: Summary rule query.
      Returns:
      the query value.
    • withQuery

      public RuleDefinition withQuery(String query)
      Set the query property: Summary rule query.
      Parameters:
      query - the query value to set.
      Returns:
      the RuleDefinition object itself.
    • binSize

      public Integer binSize()
      Get the binSize property: Scheduled window in minutes. Allowed values: 20, 30, 60, 120, 180, 360, 720, 1440.
      Returns:
      the binSize value.
    • withBinSize

      public RuleDefinition withBinSize(Integer binSize)
      Set the binSize property: Scheduled window in minutes. Allowed values: 20, 30, 60, 120, 180, 360, 720, 1440.
      Parameters:
      binSize - the binSize value to set.
      Returns:
      the RuleDefinition object itself.
    • binDelay

      public Integer binDelay()
      Get the binDelay property: The minimum delay in seconds before bin processing.
      Returns:
      the binDelay value.
    • withBinDelay

      public RuleDefinition withBinDelay(Integer binDelay)
      Set the binDelay property: The minimum delay in seconds before bin processing.
      Parameters:
      binDelay - the binDelay value to set.
      Returns:
      the RuleDefinition object itself.
    • binStartTime

      public OffsetDateTime binStartTime()
      Get the binStartTime property: The start time (UTC) when Summary rule execution starts.
      Returns:
      the binStartTime value.
    • withBinStartTime

      public RuleDefinition withBinStartTime(OffsetDateTime binStartTime)
      Set the binStartTime property: The start time (UTC) when Summary rule execution starts.
      Parameters:
      binStartTime - the binStartTime value to set.
      Returns:
      the RuleDefinition object itself.
    • timeSelector

      public TimeSelectorEnum timeSelector()
      Get the timeSelector property: The time cursor used in Summary rules bins processing, e.g. TimeGenerated.
      Returns:
      the timeSelector value.
    • withTimeSelector

      public RuleDefinition withTimeSelector(TimeSelectorEnum timeSelector)
      Set the timeSelector property: The time cursor used in Summary rules bins processing, e.g. TimeGenerated.
      Parameters:
      timeSelector - the timeSelector value to set.
      Returns:
      the RuleDefinition object itself.
    • destinationTable

      public String destinationTable()
      Get the destinationTable property: The destination table used for the Summary rule results.
      Returns:
      the destinationTable value.
    • withDestinationTable

      public RuleDefinition withDestinationTable(String destinationTable)
      Set the destinationTable property: The destination table used for the Summary rule results.
      Parameters:
      destinationTable - the destinationTable value to set.
      Returns:
      the RuleDefinition object itself.
    • toJson

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

      public static RuleDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RuleDefinition from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RuleDefinition 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 RuleDefinition.