Skip to main content
PUT
/
anomaly_alerts
/
{anomaly_alert_token}
Update anomaly alert
curl --request PUT \
  --url https://api.vantage.sh/v2/anomaly_alerts/{anomaly_alert_token} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "<string>",
  "feedback": "<string>"
}
'
{
  "token": "anmly_alrt_51a2ce4137305fc6",
  "created_at": "2024-04-01T17:14:46Z",
  "alerted_at": "2024-04-01T17:14:46Z",
  "category": "Compute",
  "service": "AmazonEKS",
  "provider": "aws",
  "amount": "100.0",
  "previous_amount": "25.0",
  "seven_day_average": "10.0",
  "status": "archived",
  "feedback": "this stinks",
  "cost_report_token": "rprt_57912c584fdf88f4"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

anomaly_alert_token
string
required

Body

application/json

Update an AnomalyAlert.

status
string
required

The status of the Anomaly Alert.

feedback
string

Optional additional comments for why this alert is ignored.

Response

AnomalyAlert model

token
string
required
created_at
string
required

The date and time, in UTC, the AnomalyAlert was created. ISO 8601 Formatted.

Example:

"2021-07-09T00:00:00Z"

category
string | null
required

The category of the AnomalyAlert.

service
string
required

The provider service causing the AnomalyAlert.

provider
string
required

The provider of the service causing the AnomalyAlert.

amount
string
required

The amount observed.

previous_amount
string
required

The previous amount observed.

seven_day_average
string
required

The seven day average of the amount observed.

status
string
required

The status of the AnomalyAlert.

resources
string[]
required

The names of the resources the AnomalyAlert was attributed to.

cost_report_token
string
required

The token of the Report associated with the AnomalyAlert.

alerted_at
string

The date and time, in UTC, the AnomalyAlert is sent. ISO 8601 Formatted.

Example:

"2021-07-09T00:00:00Z"

feedback
string

The user-provided feedback of why alert was ignored/archived.