Interface ScaleRule.UpdateDefinitionStages.WithCondition
-
- All Known Subinterfaces:
ScaleRule.UpdateDefinition
- Enclosing interface:
- ScaleRule.UpdateDefinitionStages
public static interface ScaleRule.UpdateDefinitionStages.WithConditionThe stage of the definition which specifies metric alert condition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScaleRule.UpdateDefinitionStages.WithScaleActionwithCondition(TimeAggregationType timeAggregation, ComparisonOperationType condition, double threshold)Sets the condition to monitor for the current metric alert.
-
-
-
Method Detail
-
withCondition
ScaleRule.UpdateDefinitionStages.WithScaleAction withCondition(TimeAggregationType timeAggregation, ComparisonOperationType condition, double threshold)
Sets the condition to monitor for the current metric alert.- Parameters:
condition- the operator that is used to compare the metric data and the threshold. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.timeAggregation- the time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count'.threshold- the threshold of the metric that triggers the scale action.- Returns:
- the next stage of the definition.
-
-