ParentT - the stage of the parent Metric Alert definition to return to after attaching this definitionpublic static interface MetricAlertCondition.DefinitionStages.WithCriteriaOperator<ParentT>
| Modifier and Type | Method and Description |
|---|---|
MetricAlertCondition.DefinitionStages.WithConditionAttach<ParentT> |
withCondition(MetricAlertRuleTimeAggregation timeAggregation,
MetricAlertRuleCondition condition,
double threshold)
Sets the condition to monitor for the current metric alert.
|
MetricAlertCondition.DefinitionStages.WithConditionAttach<ParentT> withCondition(MetricAlertRuleTimeAggregation timeAggregation, MetricAlertRuleCondition condition, double threshold)
condition - the criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.timeAggregation - the criteria time aggregation types. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total'.threshold - the criteria threshold value that activates the alert./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/