curl --request PUT \
--url https://api.getmaxim.ai/v1/alerts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"id": "<string>",
"workspaceId": "<string>",
"type": "LOG_REPOSITORY",
"config": {
"metric": "<string>",
"duration": 2,
"minimumThreshold": 2,
"operator": "<string>",
"value": "<string>"
},
"enabled": true,
"notificationChannelIds": [
"<string>"
]
}'
{
"data": {
"id": "<string>",
"workspaceId": "<string>",
"entityId": "<string>",
"type": "<string>",
"enabled": true,
"config": {
"metric": "<string>",
"minimumThreshold": 2,
"duration": 123,
"operator": "<string>",
"value": "<string>",
"renotifyTTL": -1
},
"createdAt": "<string>",
"updatedAt": "<string>",
"notificationChannels": [
{
"notificationChannel": {
"id": "<string>",
"type": "SLACK",
"name": "<string>",
"config": {}
}
}
]
}
}
Update an alert
curl --request PUT \
--url https://api.getmaxim.ai/v1/alerts \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"id": "<string>",
"workspaceId": "<string>",
"type": "LOG_REPOSITORY",
"config": {
"metric": "<string>",
"duration": 2,
"minimumThreshold": 2,
"operator": "<string>",
"value": "<string>"
},
"enabled": true,
"notificationChannelIds": [
"<string>"
]
}'
{
"data": {
"id": "<string>",
"workspaceId": "<string>",
"entityId": "<string>",
"type": "<string>",
"enabled": true,
"config": {
"metric": "<string>",
"minimumThreshold": 2,
"duration": 123,
"operator": "<string>",
"value": "<string>",
"renotifyTTL": -1
},
"createdAt": "<string>",
"updatedAt": "<string>",
"notificationChannels": [
{
"notificationChannel": {
"id": "<string>",
"type": "SLACK",
"name": "<string>",
"config": {}
}
}
]
}
}
API key for authentication
Alert updated successfully
The response is of type object
.
Was this page helpful?