Class ListAnomaliesDetectedFilter

java.lang.Object
com.azure.ai.metricsadvisor.models.ListAnomaliesDetectedFilter

public final class ListAnomaliesDetectedFilter extends Object
Describes additional conditions to filter the anomalies while listing.
  • Constructor Details

    • ListAnomaliesDetectedFilter

      public ListAnomaliesDetectedFilter()
  • Method Details

    • getMinSeverity

      public AnomalySeverity getMinSeverity()
      Gets the minimum severity of the anomalies to be included in the list.
      Returns:
      The minimum severity.
    • getMaxSeverity

      public AnomalySeverity getMaxSeverity()
      Gets the maximum severity of the anomalies to be included in the list.
      Returns:
      The max severity.
    • getSeriesGroupKeys

      public List<DimensionKey> getSeriesGroupKeys()
      Gets the time series group keys, indicating that retrieve the anomalies occurred in the time series in the group.
      Returns:
      The time series keys.
    • setSeverityRange

      public ListAnomaliesDetectedFilter setSeverityRange(AnomalySeverity min, AnomalySeverity max)
      Sets the severity range for the anomalies to be retrieved.
      Parameters:
      min - The minimum severity.
      max - The maximum severity.
      Returns:
      The ListAnomaliesDetectedFilter object itself.
    • setSeverity

      public ListAnomaliesDetectedFilter setSeverity(AnomalySeverity severity)
      Sets the severity for the anomalies to be retrieved. The effect of using this method the same as calling setSeverityRange(AnomalySeverity, AnomalySeverity) with the same min and max severity.
      Parameters:
      severity - The severity.
      Returns:
      The ListAnomaliesDetectedFilter object itself.
    • setSeriesGroupKeys

      public ListAnomaliesDetectedFilter setSeriesGroupKeys(List<DimensionKey> seriesGroupKeys)
      Sets the time series keys, indicating that retrieve the anomalies occurred n the time series in the group.
      Parameters:
      seriesGroupKeys - The series keys.
      Returns:
      The ListAnomaliesDetectedFilter object itself.