Skip to content

Put Alert Manager Definition

prometheusservice_put_alert_manager_definition R Documentation

Updates an existing alert manager definition in a workspace

Description

Updates an existing alert manager definition in a workspace. If the workspace does not already have an alert manager definition, don't use this operation to create it. Instead, use create_alert_manager_definition.

Usage

prometheusservice_put_alert_manager_definition(clientToken, data,
  workspaceId)

Arguments

clientToken

A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.

data

[required] The alert manager definition to use. A base64-encoded version of the YAML alert manager definition file.

For details about the alert manager definition, see AlertManagedDefinitionData.

workspaceId

[required] The ID of the workspace to update the alert manager definition in.

Value

A list with the following syntax:

list(
  status = list(
    statusCode = "CREATING"|"ACTIVE"|"UPDATING"|"DELETING"|"CREATION_FAILED"|"UPDATE_FAILED",
    statusReason = "string"
  )
)

Request syntax

svc$put_alert_manager_definition(
  clientToken = "string",
  data = raw,
  workspaceId = "string"
)