Skip to content

List Alerts

lookoutmetrics_list_alerts R Documentation

Lists the alerts attached to a detector

Description

Lists the alerts attached to a detector.

Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.

Usage

lookoutmetrics_list_alerts(AnomalyDetectorArn, NextToken, MaxResults)

Arguments

AnomalyDetectorArn

The ARN of the alert's detector.

NextToken

If the result of the previous request is truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.

MaxResults

The maximum number of results that will be displayed by the request.

Value

A list with the following syntax:

list(
  AlertSummaryList = list(
    list(
      AlertArn = "string",
      AnomalyDetectorArn = "string",
      AlertName = "string",
      AlertSensitivityThreshold = 123,
      AlertType = "SNS"|"LAMBDA",
      AlertStatus = "ACTIVE"|"INACTIVE",
      LastModificationTime = as.POSIXct(
        "2015-01-01"
      ),
      CreationTime = as.POSIXct(
        "2015-01-01"
      ),
      Tags = list(
        "string"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_alerts(
  AnomalyDetectorArn = "string",
  NextToken = "string",
  MaxResults = 123
)