PrometheusService.Client.
create_alert_manager_definition
(**kwargs)¶Create an alert manager definition.
See also: AWS API Documentation
Request Syntax
response = client.create_alert_manager_definition(
clientToken='string',
data=b'bytes',
workspaceId='string'
)
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
This field is autopopulated if not provided.
[REQUIRED]
The alert manager definition data.
[REQUIRED]
The ID of the workspace in which to create the alert manager definition.
dict
Response Syntax
{
'status': {
'statusCode': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATION_FAILED'|'UPDATE_FAILED',
'statusReason': 'string'
}
}
Response Structure
(dict) --
Represents the output of a CreateAlertManagerDefinition operation.
status (dict) --
The status of alert manager definition.
statusCode (string) --
Status code of this definition.
statusReason (string) --
The reason for failure if any.
Exceptions
PrometheusService.Client.exceptions.ThrottlingException
PrometheusService.Client.exceptions.ConflictException
PrometheusService.Client.exceptions.ValidationException
PrometheusService.Client.exceptions.ResourceNotFoundException
PrometheusService.Client.exceptions.AccessDeniedException
PrometheusService.Client.exceptions.InternalServerException
PrometheusService.Client.exceptions.ServiceQuotaExceededException