public static interface ScaleRule.UpdateDefinitionStages.WithCondition
| Modifier and Type | Method and Description |
|---|---|
ScaleRule.UpdateDefinitionStages.WithScaleAction |
withCondition(TimeAggregationType timeAggregation,
ComparisonOperationType condition,
double threshold)
Sets the condition to monitor for the current metric alert.
|
ScaleRule.UpdateDefinitionStages.WithScaleAction withCondition(TimeAggregationType timeAggregation, ComparisonOperationType condition, double threshold)
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./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/