MetricAnomalyAlertSnoozeCondition Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. MetricAnomalyAlertSnoozeCondition
- com.
public final class MetricAnomalyAlertSnoozeCondition
Type that describes configuration for snoozing anomaly alerts.
Constructor Summary
Constructor | Description |
---|---|
MetricAnomalyAlertSnoozeCondition(int autoSnooze, SnoozeScope snoozeScope, boolean onlyForSuccessive) |
Create an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
getAutoSnooze()
Gets the snooze data point count. |
Snooze |
getSnoozeScope()
Gets the scope in which anomalies to be snoozed may appear. |
Boolean |
isOnlyForSuccessive()
Gets boolean indicating whether to snooze successive anomalies or not. |
Metric |
setAutoSnooze(Integer autoSnooze)
Sets the value indicating the snooze point count, the value range is : [0, +\u221e). |
Metric |
setOnlyForSuccessive(Boolean onlyForSuccessive)
Sets the flag indicating whether to snooze the successive anomalies. |
Metric |
setSnoozeScope(SnoozeScope snoozeScope)
Sets the scope in which anomalies to be snoozed may appear. |
Methods inherited from java.lang.Object
Constructor Details
MetricAnomalyAlertSnoozeCondition
public MetricAnomalyAlertSnoozeCondition(int autoSnooze, SnoozeScope snoozeScope, boolean onlyForSuccessive)
Create an instance of MetricAnomalyAlertSnoozeCondition describing anomaly alert snooze configuration.
Parameters:
Method Details
getAutoSnooze
public Integer getAutoSnooze()
Gets the snooze data point count.
Returns:
getSnoozeScope
public SnoozeScope getSnoozeScope()
Gets the scope in which anomalies to be snoozed may appear.
Returns:
isOnlyForSuccessive
public Boolean isOnlyForSuccessive()
Gets boolean indicating whether to snooze successive anomalies or not.
Returns:
setAutoSnooze
public MetricAnomalyAlertSnoozeCondition setAutoSnooze(Integer autoSnooze)
Sets the value indicating the snooze point count, the value range is : [0, +\u221e).
Parameters:
Returns:
setOnlyForSuccessive
public MetricAnomalyAlertSnoozeCondition setOnlyForSuccessive(Boolean onlyForSuccessive)
Sets the flag indicating whether to snooze the successive anomalies.
Parameters:
Returns:
setSnoozeScope
public MetricAnomalyAlertSnoozeCondition setSnoozeScope(SnoozeScope snoozeScope)
Sets the scope in which anomalies to be snoozed may appear.
Parameters:
Returns:
Applies to
Azure SDK for Java