Class ManagementEventAggregationCondition
- java.lang.Object
-
- com.microsoft.azure.management.monitor.ManagementEventAggregationCondition
-
public class ManagementEventAggregationCondition extends Object
How the data that is collected should be combined over time.
-
-
Constructor Summary
Constructors Constructor Description ManagementEventAggregationCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionOperatoroperator()Get the condition operator.Doublethreshold()Get the threshold value that activates the alert.org.joda.time.PeriodwindowSize()Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.ManagementEventAggregationConditionwithOperator(ConditionOperator operator)Set the condition operator.ManagementEventAggregationConditionwithThreshold(Double threshold)Set the threshold value that activates the alert.ManagementEventAggregationConditionwithWindowSize(org.joda.time.Period windowSize)Set the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
-
-
-
Method Detail
-
operator
public ConditionOperator operator()
Get the condition operator. Possible values include: 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.- Returns:
- the operator value
-
withOperator
public ManagementEventAggregationCondition withOperator(ConditionOperator operator)
Set the condition operator. Possible values include: 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.- Parameters:
operator- the operator value to set- Returns:
- the ManagementEventAggregationCondition object itself.
-
threshold
public Double threshold()
Get the threshold value that activates the alert.- Returns:
- the threshold value
-
withThreshold
public ManagementEventAggregationCondition withThreshold(Double threshold)
Set the threshold value that activates the alert.- Parameters:
threshold- the threshold value to set- Returns:
- the ManagementEventAggregationCondition object itself.
-
windowSize
public org.joda.time.Period windowSize()
Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.- Returns:
- the windowSize value
-
withWindowSize
public ManagementEventAggregationCondition withWindowSize(org.joda.time.Period windowSize)
Set the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.- Parameters:
windowSize- the windowSize value to set- Returns:
- the ManagementEventAggregationCondition object itself.
-
-