Monitor
Update a Monitor
API Documentation
API Reference
- Inventory
- Resource
- Monitor
- Incident
- Integration
- Organization
- User
- POSTQuery logs
- POSTQuery metrics
- POSTQuery traces
Monitor
Update a Monitor
PUT
/
monitor
/
{id}
curl --request PUT \
--url https://api.alerty.ai/monitor/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"pollDurationInterval": "P3Y6M4DT12H30M5S",
"name": "<string>",
"description": "<string>",
"type": "UP_TIME",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"snoozedUntil": "2023-11-07T05:31:56Z",
"state": "ACTIVE",
"status": "NO_DATA",
"priority": "NOT_DEFINED",
"recipients": [
{
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"integration": {
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "SLACK",
"class": "NOTIFICATION",
"configuration": {
"teamId": "<string>",
"accessToken": "<string>",
"incomingWebhookURL": "<string>",
"channelID": "<string>"
}
},
"integrationOverride": {
"teamId": "<string>",
"accessToken": "<string>",
"incomingWebhookURL": "<string>",
"channelID": "<string>"
}
}
],
"query": "<string>",
"resource": {
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "WEBSITE",
"configuration": {
"url": "<string>"
}
}
}'
{
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"pollDurationInterval": "P3Y6M4DT12H30M5S",
"name": "<string>",
"description": "<string>",
"type": "UP_TIME",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"snoozedUntil": "2023-11-07T05:31:56Z",
"state": "ACTIVE",
"status": "NO_DATA",
"priority": "NOT_DEFINED",
"recipients": [
{
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"integration": {
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "SLACK",
"class": "NOTIFICATION",
"configuration": {
"teamId": "<string>",
"accessToken": "<string>",
"incomingWebhookURL": "<string>",
"channelID": "<string>"
}
},
"integrationOverride": {
"teamId": "<string>",
"accessToken": "<string>",
"incomingWebhookURL": "<string>",
"channelID": "<string>"
}
}
],
"query": "<string>",
"resource": {
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "WEBSITE",
"configuration": {
"url": "<string>"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Unique identifier for the entity
Example:
"5df33a85-2b9c-40e3-8854-760ee3b8efc7"
Body
application/json
resource monitor
Response
200
application/json
successful updated monitor
resource monitor
curl --request PUT \
--url https://api.alerty.ai/monitor/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"pollDurationInterval": "P3Y6M4DT12H30M5S",
"name": "<string>",
"description": "<string>",
"type": "UP_TIME",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"snoozedUntil": "2023-11-07T05:31:56Z",
"state": "ACTIVE",
"status": "NO_DATA",
"priority": "NOT_DEFINED",
"recipients": [
{
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"integration": {
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "SLACK",
"class": "NOTIFICATION",
"configuration": {
"teamId": "<string>",
"accessToken": "<string>",
"incomingWebhookURL": "<string>",
"channelID": "<string>"
}
},
"integrationOverride": {
"teamId": "<string>",
"accessToken": "<string>",
"incomingWebhookURL": "<string>",
"channelID": "<string>"
}
}
],
"query": "<string>",
"resource": {
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "WEBSITE",
"configuration": {
"url": "<string>"
}
}
}'
{
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"pollDurationInterval": "P3Y6M4DT12H30M5S",
"name": "<string>",
"description": "<string>",
"type": "UP_TIME",
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"snoozedUntil": "2023-11-07T05:31:56Z",
"state": "ACTIVE",
"status": "NO_DATA",
"priority": "NOT_DEFINED",
"recipients": [
{
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"integration": {
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "SLACK",
"class": "NOTIFICATION",
"configuration": {
"teamId": "<string>",
"accessToken": "<string>",
"incomingWebhookURL": "<string>",
"channelID": "<string>"
}
},
"integrationOverride": {
"teamId": "<string>",
"accessToken": "<string>",
"incomingWebhookURL": "<string>",
"channelID": "<string>"
}
}
],
"query": "<string>",
"resource": {
"id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "WEBSITE",
"configuration": {
"url": "<string>"
}
}
}