public final class MetricAnomalyAlertSnoozeCondition extends Object
Constructor and Description |
---|
MetricAnomalyAlertSnoozeCondition(int autoSnooze,
SnoozeScope snoozeScope,
boolean onlyForSuccessive)
Create an instance of MetricAnomalyAlertSnoozeCondition describing anomaly alert snooze configuration.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getAutoSnooze()
Gets the snooze data point count.
|
SnoozeScope |
getSnoozeScope()
Gets the scope in which anomalies to be snoozed may appear.
|
Boolean |
isOnlyForSuccessive()
Gets boolean indicating whether to snooze successive anomalies or not.
|
MetricAnomalyAlertSnoozeCondition |
setAutoSnooze(Integer autoSnooze)
Sets the value indicating the snooze point count, the value range is : [0, +∞).
|
MetricAnomalyAlertSnoozeCondition |
setOnlyForSuccessive(Boolean onlyForSuccessive)
Sets the flag indicating whether to snooze the successive anomalies.
|
MetricAnomalyAlertSnoozeCondition |
setSnoozeScope(SnoozeScope snoozeScope)
Sets the scope in which anomalies to be snoozed may appear.
|
public MetricAnomalyAlertSnoozeCondition(int autoSnooze, SnoozeScope snoozeScope, boolean onlyForSuccessive)
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.public Integer getAutoSnooze()
public SnoozeScope getSnoozeScope()
public Boolean isOnlyForSuccessive()
public MetricAnomalyAlertSnoozeCondition setAutoSnooze(Integer autoSnooze)
autoSnooze
- the the snooze point count.public MetricAnomalyAlertSnoozeCondition setSnoozeScope(SnoozeScope snoozeScope)
snoozeScope
- the snooze scope to set.public MetricAnomalyAlertSnoozeCondition setOnlyForSuccessive(Boolean onlyForSuccessive)
onlyForSuccessive
- true to snooze the successive anomalies, false otherwise.Copyright © 2021 Microsoft Corporation. All rights reserved.