Class DynamicMetricCriteria
java.lang.Object
com.microsoft.azure.management.monitor.MultiMetricCriteria
com.microsoft.azure.management.monitor.DynamicMetricCriteria
Criterion for dynamic threshold.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the extent of deviation required to trigger an alert.Get the minimum number of violations required within the selected lookback time window required to raise an alert.org.joda.time.DateTime
Get use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format).operator()
Get the operator used to compare the metric value against the threshold.withAlertSensitivity
(Object alertSensitivity) Set the extent of deviation required to trigger an alert.withFailingPeriods
(DynamicThresholdFailingPeriods failingPeriods) Set the minimum number of violations required within the selected lookback time window required to raise an alert.withIgnoreDataBefore
(org.joda.time.DateTime ignoreDataBefore) Set use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format).withOperator
(Object operator) Set the operator used to compare the metric value against the threshold.Methods inherited from class com.microsoft.azure.management.monitor.MultiMetricCriteria
additionalProperties, dimensions, metricName, metricNamespace, name, timeAggregation, withAdditionalProperties, withDimensions, withMetricName, withMetricNamespace, withName, withTimeAggregation
-
Constructor Details
-
DynamicMetricCriteria
public DynamicMetricCriteria()
-
-
Method Details
-
operator
Get the operator used to compare the metric value against the threshold.- Returns:
- the operator value
-
withOperator
Set the operator used to compare the metric value against the threshold.- Parameters:
operator
- the operator value to set- Returns:
- the DynamicMetricCriteria object itself.
-
alertSensitivity
Get the extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.- Returns:
- the alertSensitivity value
-
withAlertSensitivity
Set the extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.- Parameters:
alertSensitivity
- the alertSensitivity value to set- Returns:
- the DynamicMetricCriteria object itself.
-
failingPeriods
Get the minimum number of violations required within the selected lookback time window required to raise an alert.- Returns:
- the failingPeriods value
-
withFailingPeriods
Set the minimum number of violations required within the selected lookback time window required to raise an alert.- Parameters:
failingPeriods
- the failingPeriods value to set- Returns:
- the DynamicMetricCriteria object itself.
-
ignoreDataBefore
public org.joda.time.DateTime ignoreDataBefore()Get use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format).- Returns:
- the ignoreDataBefore value
-
withIgnoreDataBefore
Set use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format).- Parameters:
ignoreDataBefore
- the ignoreDataBefore value to set- Returns:
- the DynamicMetricCriteria object itself.
-