MetricBoundaryCondition Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. MetricBoundaryCondition
- com.
public final class MetricBoundaryCondition
Defines the boundary conditions for the anomaly (abnormal data points) to be included in the alert.
Constructor Summary
Constructor | Description |
---|---|
MetricBoundaryCondition() |
Creates a new instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getCompanionMetricId()
Gets the id of the companion metric. |
Boundary |
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. |
Boundary |
getMeasureType()
Gets the measure type that detector should use for measuring data-points. |
Double |
getUpperBoundary()
Gets the upper boundary. |
Metric |
setBoundary(BoundaryDirection direction, Double lowerBoundary, Double upperBoundary)
Sets the boundary. |
Metric |
setCompanionMetricId(String companionMetricId)
Sets the companion metric id. |
Metric |
setCompanionMetricId(String companionMetricId, boolean alertIfMissing)
Sets the companion metric id. |
Metric |
setMeasureType(BoundaryMeasureType measureType)
Sets the measure type that detector should use for measuring data-points. |
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. |
Methods inherited from java.lang.Object
Constructor Details
MetricBoundaryCondition
public MetricBoundaryCondition()
Creates a new instance of MetricBoundaryCondition.
Method Details
getCompanionMetricId
public String getCompanionMetricId()
Gets the id of the companion metric. When the companion-metric is set for a metric, the abnormal data points detected in the original metric will be included in the alert only if data points values of corresponding series in companion-metric are not within the boundary.
Returns:
getDirection
public BoundaryDirection getDirection()
Gets the boundary direction.
Returns:
getLowerBoundary
getMeasureType
public BoundaryMeasureType getMeasureType()
Gets the measure type that detector should use for measuring data-points.
Returns:
getUpperBoundary
setBoundary
public MetricBoundaryCondition setBoundary(BoundaryDirection direction, Double lowerBoundary, Double upperBoundary)
Sets the boundary.
Parameters:
lowerBoundary
and upperBoundary
must be specified
when the direction is BOTH. The lowerBoundary
must be specified for LOWER, similarly upperBoundary
must set specified for UPPER.
Returns:
setCompanionMetricId
public MetricBoundaryCondition setCompanionMetricId(String companionMetricId)
Sets the companion metric id. When the companion-metric is set for a metric, an anomaly detected in the original metric will be included in the alert only if data points values of corresponding series in companion-metric are not within the boundary.
Parameters:
Returns:
setCompanionMetricId
public MetricBoundaryCondition setCompanionMetricId(String companionMetricId, boolean alertIfMissing)
Sets the companion metric id. When the companion-metric is set for a metric, an anomaly detected in the original metric series will be included in the alert only if data points values of corresponding series in companion-metric are not within the boundary.
Parameters:
Returns:
setMeasureType
public MetricBoundaryCondition setMeasureType(BoundaryMeasureType measureType)
Sets the measure type that detector should use for measuring data-points.
Parameters:
Returns:
shouldAlertIfDataPointMissing
public 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.
Returns:
Applies to
Azure SDK for Java