PrometheusService / Client / create_alert_manager_definition
create_alert_manager_definition#
- PrometheusService.Client.create_alert_manager_definition(**kwargs)#
The
CreateAlertManagerDefinition
operation creates the alert manager definition in a workspace. If a workspace already has an alert manager definition, don’t use this operation to update it. Instead, usePutAlertManagerDefinition
.See also: AWS API Documentation
Request Syntax
response = client.create_alert_manager_definition( clientToken='string', data=b'bytes', workspaceId='string' )
- Parameters:
clientToken (string) –
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
This field is autopopulated if not provided.
data (bytes) –
[REQUIRED]
The alert manager definition to add. A base64-encoded version of the YAML alert manager definition file.
For details about the alert manager definition, see AlertManagedDefinitionData.
workspaceId (string) –
[REQUIRED]
The ID of the workspace to add the alert manager definition to.
- Return type:
dict
- Returns:
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) –
A structure that displays the current status of the alert manager definition.
statusCode (string) –
The current status of the alert manager.
statusReason (string) –
If there is a failure, the reason for the failure.
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