DynamicMetricCriteria Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. MultiMetricCriteria - com.
azure. resourcemanager. monitor. models. DynamicMetricCriteria
- com.
- com.
public final class DynamicMetricCriteria
extends MultiMetricCriteria
Criterion for dynamic threshold.
Constructor Summary
Constructor | Description |
---|---|
DynamicMetricCriteria() |
Creates an instance of Dynamic |
Method Summary
Modifier and Type | Method and Description |
---|---|
Dynamic |
alertSensitivity()
Get the alert |
Criterion |
criterionType()
Get the criterion |
Dynamic |
failingPeriods()
Get the failing |
static
Dynamic |
fromJson(JsonReader jsonReader)
Reads an instance of Dynamic |
Offset |
ignoreDataBefore()
Get the ignore |
Dynamic |
operator()
Get the operator property: The operator used to compare the metric value against the threshold. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dynamic |
withAlertSensitivity(DynamicThresholdSensitivity alertSensitivity)
Set the alert |
Dynamic |
withDimensions(List<MetricDimension> dimensions)
Set the dimensions property: List of dimension conditions. |
Dynamic |
withFailingPeriods(DynamicThresholdFailingPeriods failingPeriods)
Set the failing |
Dynamic |
withIgnoreDataBefore(OffsetDateTime ignoreDataBefore)
Set the ignore |
Dynamic |
withMetricName(String metricName)
Set the metric |
Dynamic |
withMetricNamespace(String metricNamespace)
Set the metric |
Dynamic |
withName(String name)
Set the name property: Name of the criteria. |
Dynamic |
withOperator(DynamicThresholdOperator operator)
Set the operator property: The operator used to compare the metric value against the threshold. |
Dynamic |
withSkipMetricValidation(Boolean skipMetricValidation)
Set the skip |
Dynamic |
withTimeAggregation(AggregationTypeEnum timeAggregation)
Set the time |
Methods inherited from MultiMetricCriteria
Methods inherited from java.lang.Object
Constructor Details
DynamicMetricCriteria
public DynamicMetricCriteria()
Creates an instance of DynamicMetricCriteria class.
Method Details
alertSensitivity
public DynamicThresholdSensitivity alertSensitivity()
Get the alertSensitivity property: The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
Returns:
criterionType
public CriterionType criterionType()
Get the criterionType property: Specifies the type of threshold criteria.
Overrides:
DynamicMetricCriteria.criterionType()Returns:
failingPeriods
public DynamicThresholdFailingPeriods failingPeriods()
Get the failingPeriods property: The minimum number of violations required within the selected lookback time window required to raise an alert.
Returns:
fromJson
public static DynamicMetricCriteria fromJson(JsonReader jsonReader)
Reads an instance of DynamicMetricCriteria from the JsonReader.
Parameters:
Returns:
Throws:
ignoreDataBefore
public 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).
Returns:
operator
public DynamicThresholdOperator operator()
Get the operator property: The operator used to compare the metric value against the threshold.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DynamicMetricCriteria.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
DynamicMetricCriteria.validate()withAlertSensitivity
public DynamicMetricCriteria withAlertSensitivity(DynamicThresholdSensitivity alertSensitivity)
Set the alertSensitivity property: The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
Parameters:
Returns:
withDimensions
public DynamicMetricCriteria withDimensions(List
Set the dimensions property: List of dimension conditions.
Overrides:
DynamicMetricCriteria.withDimensions(List<MetricDimension> dimensions)Parameters:
withFailingPeriods
public 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.
Parameters:
Returns:
withIgnoreDataBefore
public 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).
Parameters:
Returns:
withMetricName
public DynamicMetricCriteria withMetricName(String metricName)
Set the metricName property: Name of the metric.
Overrides:
DynamicMetricCriteria.withMetricName(String metricName)Parameters:
withMetricNamespace
public DynamicMetricCriteria withMetricNamespace(String metricNamespace)
Set the metricNamespace property: Namespace of the metric.
Overrides:
DynamicMetricCriteria.withMetricNamespace(String metricNamespace)Parameters:
withName
public DynamicMetricCriteria withName(String name)
Set the name property: Name of the criteria.
Overrides:
DynamicMetricCriteria.withName(String name)Parameters:
withOperator
public DynamicMetricCriteria withOperator(DynamicThresholdOperator operator)
Set the operator property: The operator used to compare the metric value against the threshold.
Parameters:
Returns:
withSkipMetricValidation
public DynamicMetricCriteria withSkipMetricValidation(Boolean skipMetricValidation)
Set the skipMetricValidation property: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
Overrides:
DynamicMetricCriteria.withSkipMetricValidation(Boolean skipMetricValidation)Parameters:
withTimeAggregation
public DynamicMetricCriteria withTimeAggregation(AggregationTypeEnum timeAggregation)
Set the timeAggregation property: the criteria time aggregation types.
Overrides:
DynamicMetricCriteria.withTimeAggregation(AggregationTypeEnum timeAggregation)Parameters:
Applies to
Azure SDK for Java