Skip to content

List Anomalies

cloudwatchlogs_list_anomalies R Documentation

Returns a list of anomalies that log anomaly detectors have found

Description

Returns a list of anomalies that log anomaly detectors have found. For details about the structure format of each anomaly object that is returned, see the example in this section.

Usage

cloudwatchlogs_list_anomalies(anomalyDetectorArn, suppressionState,
  limit, nextToken)

Arguments

anomalyDetectorArn

Use this to optionally limit the results to only the anomalies found by a certain anomaly detector.

suppressionState

You can specify this parameter if you want to the operation to return only anomalies that are currently either suppressed or unsuppressed.

limit

The maximum number of items to return. If you don't specify a value, the default maximum value of 50 items is used.

nextToken

Value

A list with the following syntax:

list(
  anomalies = list(
    list(
      anomalyId = "string",
      patternId = "string",
      anomalyDetectorArn = "string",
      patternString = "string",
      patternRegex = "string",
      priority = "string",
      firstSeen = 123,
      lastSeen = 123,
      description = "string",
      active = TRUE|FALSE,
      state = "Active"|"Suppressed"|"Baseline",
      histogram = list(
        123
      ),
      logSamples = list(
        list(
          timestamp = 123,
          message = "string"
        )
      ),
      patternTokens = list(
        list(
          dynamicTokenPosition = 123,
          isDynamic = TRUE|FALSE,
          tokenString = "string",
          enumerations = list(
            123
          )
        )
      ),
      logGroupArnList = list(
        "string"
      ),
      suppressed = TRUE|FALSE,
      suppressedDate = 123,
      suppressedUntil = 123,
      isPatternLevelSuppression = TRUE|FALSE
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_anomalies(
  anomalyDetectorArn = "string",
  suppressionState = "SUPPRESSED"|"UNSUPPRESSED",
  limit = 123,
  nextToken = "string"
)