Class Schedule
java.lang.Object
com.microsoft.azure.management.monitor.Schedule
Defines how often to run the search and the time interval.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get frequency (in minutes) at which rule condition should be evaluated.int
Get time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).withFrequencyInMinutes
(int frequencyInMinutes) Set frequency (in minutes) at which rule condition should be evaluated.withTimeWindowInMinutes
(int timeWindowInMinutes) Set time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
-
Constructor Details
-
Schedule
public Schedule()
-
-
Method Details
-
frequencyInMinutes
public int frequencyInMinutes()Get frequency (in minutes) at which rule condition should be evaluated.- Returns:
- the frequencyInMinutes value
-
withFrequencyInMinutes
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
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.
-