java.lang.Object
com.azure.resourcemanager.monitor.models.Schedule

public final class Schedule extends Object
Defines how often to run the search and the time interval.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the frequencyInMinutes property: frequency (in minutes) at which rule condition should be evaluated.
    int
    Get the timeWindowInMinutes property: Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
    void
    Validates the instance.
    withFrequencyInMinutes(int frequencyInMinutes)
    Set the frequencyInMinutes property: frequency (in minutes) at which rule condition should be evaluated.
    withTimeWindowInMinutes(int timeWindowInMinutes)
    Set the timeWindowInMinutes property: Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Schedule

      public Schedule()
  • Method Details

    • frequencyInMinutes

      public int frequencyInMinutes()
      Get the frequencyInMinutes property: frequency (in minutes) at which rule condition should be evaluated.
      Returns:
      the frequencyInMinutes value.
    • withFrequencyInMinutes

      public Schedule withFrequencyInMinutes(int frequencyInMinutes)
      Set the frequencyInMinutes property: frequency (in minutes) at which rule condition should be evaluated.
      Parameters:
      frequencyInMinutes - the frequencyInMinutes value to set.
      Returns:
      the Schedule object itself.
    • timeWindowInMinutes

      public int timeWindowInMinutes()
      Get the timeWindowInMinutes property: Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
      Returns:
      the timeWindowInMinutes value.
    • withTimeWindowInMinutes

      public Schedule withTimeWindowInMinutes(int timeWindowInMinutes)
      Set the timeWindowInMinutes property: Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
      Parameters:
      timeWindowInMinutes - the timeWindowInMinutes value to set.
      Returns:
      the Schedule object itself.
    • validate

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