Class MetricAnomalyAlertSnoozeCondition
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.MetricAnomalyAlertSnoozeCondition
Type that describes configuration for snoozing anomaly alerts.
-
Constructor Summary
ConstructorDescriptionMetricAnomalyAlertSnoozeCondition
(int autoSnooze, SnoozeScope snoozeScope, boolean onlyForSuccessive) Create an instance of MetricAnomalyAlertSnoozeCondition describing anomaly alert snooze configuration. -
Method Summary
Modifier and TypeMethodDescriptionGets the snooze data point count.Gets the scope in which anomalies to be snoozed may appear.Gets boolean indicating whether to snooze successive anomalies or not.setAutoSnooze
(Integer autoSnooze) Sets the value indicating the snooze point count, the value range is : [0, +∞).setOnlyForSuccessive
(Boolean onlyForSuccessive) Sets the flag indicating whether to snooze the successive anomalies.setSnoozeScope
(SnoozeScope snoozeScope) Sets the scope in which anomalies to be snoozed may appear.
-
Constructor Details
-
MetricAnomalyAlertSnoozeCondition
public MetricAnomalyAlertSnoozeCondition(int autoSnooze, SnoozeScope snoozeScope, boolean onlyForSuccessive) Create an instance of MetricAnomalyAlertSnoozeCondition describing anomaly alert snooze configuration.- Parameters:
autoSnooze
- the snooze data point count.snoozeScope
- the scope in which anomalies to be snoozed may appear.onlyForSuccessive
- true to snooze successive anomalies, false otherwise.
-
-
Method Details
-
getAutoSnooze
Gets the snooze data point count.- Returns:
- the snooze data point count.
-
getSnoozeScope
Gets the scope in which anomalies to be snoozed may appear.- Returns:
- the scope.
-
isOnlyForSuccessive
Gets boolean indicating whether to snooze successive anomalies or not.- Returns:
- the onlyForSuccessive value.
-
setAutoSnooze
Sets the value indicating the snooze point count, the value range is : [0, +∞).- Parameters:
autoSnooze
- the the snooze point count.- Returns:
- the MetricAnomalyAlertSnoozeCondition object itself.
-
setSnoozeScope
Sets the scope in which anomalies to be snoozed may appear.- Parameters:
snoozeScope
- the snooze scope to set.- Returns:
- the MetricAnomalyAlertSnoozeCondition object itself.
-
setOnlyForSuccessive
Sets the flag indicating whether to snooze the successive anomalies.- Parameters:
onlyForSuccessive
- true to snooze the successive anomalies, false otherwise.- Returns:
- the MetricAnomalyAlertSnoozeCondition object itself.
-