public final class DynamicMetricCriteria extends MultiMetricCriteria
| Constructor and Description |
|---|
DynamicMetricCriteria() |
| Modifier and Type | Method and Description |
|---|---|
DynamicThresholdSensitivity |
alertSensitivity()
Get the alertSensitivity property: The extent of deviation required to trigger an alert.
|
DynamicThresholdFailingPeriods |
failingPeriods()
Get the failingPeriods property: The minimum number of violations required within the selected lookback time
window required to raise an alert.
|
OffsetDateTime |
ignoreDataBefore()
Get the ignoreDataBefore property: Use this option to set the date from which to start learning the metric
historical data and calculate the dynamic thresholds (in ISO8601 format).
|
DynamicThresholdOperator |
operator()
Get the operator property: The operator used to compare the metric value against the threshold.
|
void |
validate()
Validates the instance.
|
DynamicMetricCriteria |
withAlertSensitivity(DynamicThresholdSensitivity alertSensitivity)
Set the alertSensitivity property: The extent of deviation required to trigger an alert.
|
DynamicMetricCriteria |
withFailingPeriods(DynamicThresholdFailingPeriods failingPeriods)
Set the failingPeriods property: The minimum number of violations required within the selected lookback time
window required to raise an alert.
|
DynamicMetricCriteria |
withIgnoreDataBefore(OffsetDateTime ignoreDataBefore)
Set the ignoreDataBefore property: Use this option to set the date from which to start learning the metric
historical data and calculate the dynamic thresholds (in ISO8601 format).
|
DynamicMetricCriteria |
withOperator(DynamicThresholdOperator operator)
Set the operator property: The operator used to compare the metric value against the threshold.
|
additionalProperties, dimensions, metricName, metricNamespace, name, skipMetricValidation, timeAggregation, withAdditionalProperties, withDimensions, withMetricName, withMetricNamespace, withName, withSkipMetricValidation, withTimeAggregationpublic DynamicThresholdOperator operator()
public DynamicMetricCriteria withOperator(DynamicThresholdOperator operator)
operator - the operator value to set.public DynamicThresholdSensitivity alertSensitivity()
public DynamicMetricCriteria withAlertSensitivity(DynamicThresholdSensitivity alertSensitivity)
alertSensitivity - the alertSensitivity value to set.public DynamicThresholdFailingPeriods failingPeriods()
public DynamicMetricCriteria withFailingPeriods(DynamicThresholdFailingPeriods failingPeriods)
failingPeriods - the failingPeriods value to set.public OffsetDateTime ignoreDataBefore()
public DynamicMetricCriteria withIgnoreDataBefore(OffsetDateTime ignoreDataBefore)
ignoreDataBefore - the ignoreDataBefore value to set.public void validate()
validate in class MultiMetricCriteriaIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.