MetricBoundaryCondition Class

Definition

The ValueCondition.

public class MetricBoundaryCondition
type MetricBoundaryCondition = class
Public Class MetricBoundaryCondition
Inheritance
MetricBoundaryCondition

Constructors

MetricBoundaryCondition(BoundaryDirection)

Initializes a new instance of the MetricBoundaryCondition class.

Properties

CompanionMetricId

If set, this MetricBoundaryCondition will make use of the value of another metric, specified by this ID, when checking boundaries. A data point of the companion metric with same dimensions and same timestamp will be used instead and, if out of range, the current data point can be included in an alert. You can set the property ShouldAlertIfDataPointMissing to tell the service what to do when the data point in the companion metric is missing.

Direction

Sets the boundaries that delimit the expected value range of a MetricBoundaryCondition. Data points out of this range can be included in an alert. If Down or Both, LowerBound is required. If Up or Both, UpperBound is required.

LowerBound

The minimum value of the boundary where a data point is allowed to be. If below this value, the point can be included in an alert. Must be set if Direction is Down or Both.

MeasureType

Specifies which measure should be used when checking boundaries. Defaults to Value.

ShouldAlertIfDataPointMissing

This property can be used when CompanionMetricId is defined to tell the service what to do when the data point in the companion metric is missing. If true, the current point can still be included in an alert when the data point in the companion metric is missing. If false, the current point won't be included. Defaults to false.

UpperBound

The maximum value of the boundary where a data point is allowed to be. If above this value, the point can be included in an alert. Must be set if Direction is Up or Both.

Applies to