MetricAnomalyAlertSnoozeCondition Class

  • java.lang.Object
    • com.azure.ai.metricsadvisor.administration.models.MetricAnomalyAlertSnoozeCondition

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 MetricAnomalyAlertSnoozeCondition describing anomaly alert snooze configuration.

Method Summary

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, +\u221e).

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.

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:

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

public Integer getAutoSnooze()

Gets the snooze data point count.

Returns:

the snooze data point count.

getSnoozeScope

public SnoozeScope getSnoozeScope()

Gets the scope in which anomalies to be snoozed may appear.

Returns:

the scope.

isOnlyForSuccessive

public Boolean isOnlyForSuccessive()

Gets boolean indicating whether to snooze successive anomalies or not.

Returns:

the onlyForSuccessive value.

setAutoSnooze

public MetricAnomalyAlertSnoozeCondition setAutoSnooze(Integer autoSnooze)

Sets the value indicating the snooze point count, the value range is : [0, +\u221e).

Parameters:

autoSnooze - the the snooze point count.

Returns:

the MetricAnomalyAlertSnoozeCondition object itself.

setOnlyForSuccessive

public MetricAnomalyAlertSnoozeCondition setOnlyForSuccessive(Boolean onlyForSuccessive)

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.

setSnoozeScope

public MetricAnomalyAlertSnoozeCondition setSnoozeScope(SnoozeScope snoozeScope)

Sets the scope in which anomalies to be snoozed may appear.

Parameters:

snoozeScope - the snooze scope to set.

Returns:

the MetricAnomalyAlertSnoozeCondition object itself.

Applies to