다음을 통해 공유


MetricAlertCondition Interface

Implements

public interface MetricAlertCondition
extends HasInnerModel<MetricCriteria>, HasParent<MetricAlert>

An immutable client-side representation of an Azure metric dynamic alert criteria.

Method Summary

Modifier and Type Method and Description
abstract MetricAlertRuleCondition condition()

Get the criteria operator.

abstract Collection<MetricDimension> dimensions()

Get list of dimension conditions.

abstract String metricName()

Get name of the metric signal.

abstract String metricNamespace()

Get namespace of the metric.

abstract String name()

Get name of the criteria.

abstract double threshold()

Get the criteria threshold value that activates the alert.

abstract MetricAlertRuleTimeAggregation timeAggregation()

Get the criteria time aggregation types.

Method Details

condition

public abstract MetricAlertRuleCondition condition()

Get the criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.

Returns:

the operator value

dimensions

public abstract Collection dimensions()

Get list of dimension conditions.

Returns:

the dimensions value

metricName

public abstract String metricName()

Get name of the metric signal.

Returns:

the metricName value

metricNamespace

public abstract String metricNamespace()

Get namespace of the metric.

Returns:

the metricNamespace value

name

public abstract String name()

Get name of the criteria.

Returns:

the name value

threshold

public abstract double threshold()

Get the criteria threshold value that activates the alert.

Returns:

the threshold value

timeAggregation

public abstract MetricAlertRuleTimeAggregation timeAggregation()

Get the criteria time aggregation types. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total'.

Returns:

the timeAggregation value

Applies to