public final class MetricCriteria extends MultiMetricCriteria
| Constructor and Description |
|---|
MetricCriteria() |
| Modifier and Type | Method and Description |
|---|---|
Operator |
operator()
Get the operator property: the criteria operator.
|
double |
threshold()
Get the threshold property: the criteria threshold value that activates the alert.
|
void |
validate()
Validates the instance.
|
MetricCriteria |
withOperator(Operator operator)
Set the operator property: the criteria operator.
|
MetricCriteria |
withThreshold(double threshold)
Set the threshold property: the criteria threshold value that activates the alert.
|
additionalProperties, dimensions, metricName, metricNamespace, name, skipMetricValidation, timeAggregation, withAdditionalProperties, withDimensions, withMetricName, withMetricNamespace, withName, withSkipMetricValidation, withTimeAggregationpublic Operator operator()
public MetricCriteria withOperator(Operator operator)
operator - the operator value to set.public double threshold()
public MetricCriteria withThreshold(double threshold)
threshold - the threshold value to set.public void validate()
validate in class MultiMetricCriteriaIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.