Class Schedule
- java.lang.Object
-
- com.microsoft.azure.management.monitor.Schedule
-
public class Schedule extends Object
Defines how often to run the search and the time interval.
-
-
Constructor Summary
Constructors Constructor Description Schedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfrequencyInMinutes()Get frequency (in minutes) at which rule condition should be evaluated.inttimeWindowInMinutes()Get time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).SchedulewithFrequencyInMinutes(int frequencyInMinutes)Set frequency (in minutes) at which rule condition should be evaluated.SchedulewithTimeWindowInMinutes(int timeWindowInMinutes)Set time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
-
-
-
Method Detail
-
frequencyInMinutes
public int frequencyInMinutes()
Get frequency (in minutes) at which rule condition should be evaluated.- Returns:
- the frequencyInMinutes value
-
withFrequencyInMinutes
public Schedule withFrequencyInMinutes(int frequencyInMinutes)
Set 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 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 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.
-
-