Class MetricAnomalyAlertSnoozeCondition

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

public final class MetricAnomalyAlertSnoozeCondition extends Object
Type that describes configuration for snoozing anomaly alerts.
  • 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, +∞).
      Parameters:
      autoSnooze - the the snooze point count.
      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.
    • 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.