public final class MetricBoundaryCondition extends Object
Constructor and Description |
---|
MetricBoundaryCondition() |
Modifier and Type | Method and Description |
---|---|
String |
getCompanionMetricId()
Gets the id of the companion metric.
|
BoundaryDirection |
getDirection()
Gets the boundary direction.
|
Double |
getLowerBoundary()
Gets the lower boundary, if the detected abnormal data point
is below this value then it will be included in the alert.
|
Double |
getUpperBoundary()
Gets the upper boundary.
|
MetricBoundaryCondition |
setBothBoundary(double lower,
double upper)
Sets both upper and lower boundary.
|
MetricBoundaryCondition |
setCompanionMetricId(String companionMetricId)
Sets the companion metric id.
|
MetricBoundaryCondition |
setCompanionMetricId(String companionMetricId,
boolean alertIfMissing)
Sets the companion metric id.
|
MetricBoundaryCondition |
setSingleBoundary(SingleBoundaryDirection direction,
double boundaryValue)
Sets either upper or lower boundary.
|
boolean |
shouldAlertIfDataPointMissing()
True if alert will be triggered when the companion-metric data-points are out
of boundary but the corresponding data-point is missing for the original metric.
|
public BoundaryDirection getDirection()
public Double getLowerBoundary()
BoundaryDirection.LOWER
or BoundaryDirection.BOTH
.public Double getUpperBoundary()
BoundaryDirection.UPPER
or BoundaryDirection.BOTH
.public String getCompanionMetricId()
public MetricBoundaryCondition setSingleBoundary(SingleBoundaryDirection direction, double boundaryValue)
direction
- The boundary direction.boundaryValue
- The boundary value.public MetricBoundaryCondition setBothBoundary(double lower, double upper)
lower
- The lower boundary value.upper
- The upper boundary value.public MetricBoundaryCondition setCompanionMetricId(String companionMetricId)
companionMetricId
- The companion metric id.public boolean shouldAlertIfDataPointMissing()
public MetricBoundaryCondition setCompanionMetricId(String companionMetricId, boolean alertIfMissing)
companionMetricId
- The companion metric id.alertIfMissing
- Indicate whether or not alert should be triggered when
the companion-metric data-points are out of boundary but the corresponding data-point
is missing for the original metric.Copyright © 2021 Microsoft Corporation. All rights reserved.