Alert
Manage alerts for your project
The Alert Model
Properties
- Name
_id- Type
- Object ID
- Description
ID of this object
- Name
createdAt- Type
- Date
- Description
Date and Time when the object was created.
- Name
updatedAt- Type
- Date
- Description
Date and Time when the object was updated.
- Name
project- Type
- Project
- Description
Relation to Project Resource in which this object belongs
- Name
projectId- Type
- Object IDRequired
- Description
ID of your Project in which this object belongs
- Name
title- Type
- Long TextRequired
- Description
Title of this alert
- Name
description- Type
- Markdown
- Description
Short description of this alert. This will be visible on the status page. This is in markdown.
- Name
createdByUser- Type
- User
- Description
Relation to User who created this object (if this object was created by a User)
- Name
createdByUserId- Type
- Object ID
- Description
User ID who created this object (if this object was created by a User)
- Name
monitor- Type
- Monitor
- Description
Relation to monitor this alert belongs to
- Name
monitorId- Type
- Object ID
- Description
ID of the monitor this alert belongs to
- Name
onCallDutyPolicies- Type
- On-Call Policy
- Description
List of on-call duty policies affected by this alert.
- Name
labels- Type
- Label
- Description
Relation to Labels Array where this object is categorized in.
- Name
currentAlertState- Type
- Alert State
- Description
Current state of this alert. Is the alert acknowledged? or resolved?. This is related to Alert State
- Name
currentAlertStateId- Type
- Object IDRequired
- Description
Current Alert State ID
- Name
alertSeverity- Type
- Alert Severity
- Description
How severe is this alert. Is it critical? or a minor alert?. This is related to Alert Severity.
- Name
alertSeverityId- Type
- Object IDRequired
- Description
Alert Severity ID
- Name
monitorStatusWhenThisAlertWasCreated- Type
- Monitor Status
- Description
Monitor status when this alert was created
- Name
monitorStatusWhenThisAlertWasCreatedId- Type
- Object ID
- Description
Monitor Status ID when this alert was created
- Name
customFields- Type
- JSON
- Description
Custom Fields on this resource.
- Name
rootCause- Type
- Markdown
- Description
What is the root cause of this alert?
- Name
createdStateLog- Type
- JSON
- Description
- Name
createdCriteriaId- Type
- Long Text
- Description
If this alert was created by a Probe, this is the ID of the criteria that created it.
- Name
createdByProbe- Type
- Probe
- Description
If this alert was created by a Probe, this is the probe that created it.
- Name
createdByProbeId- Type
- Object ID
- Description
If this alert was created by a Probe, this is the ID of the probe that created it.
- Name
isCreatedAutomatically- Type
- Boolean
- Description
Is this alert created by Probe or Workers automatically (and not created manually by a user)?
- Name
remediationNotes- Type
- Markdown
- Description
Notes on how to remediate this alert. This is in markdown.
- Name
telemetryQuery- Type
- JSON
- Description
Telemetry query for this alert
- Name
alertNumber- Type
- Number
- Description
Alert Number
- Name
alertNumberWithPrefix- Type
- Text
- Description
Alert number with prefix (e.g., 'ALT-42' or '#42')
- Name
alertEpisode- Type
- Alert Episode
- Description
The episode this alert belongs to (if grouped)
- Name
alertEpisodeId- Type
- Object ID
- Description
The ID of the episode this alert belongs to (if grouped)
/api/alert/get-listList
This endpoint allows you to retrieve a paginated list of all your Alert. By default, a maximum of ten Alert are shown per page.
Optional Query Params
limit- number
- Number of objects to fetch. By default 10, you can increase this count up to 100
skip- number
- Number of objects to skip. This can be useful in pagination
Optional Request Body
query- If you would like to filter on Alert. You can specify include a query here. For more information, please check out writing queries here.
select- By default you will only retrieve ID of objects, to retrieve more fields you need to select them. For more information, please check how to select here.
sort- Objects will be sorted based on created date by default. You can change the sort order — see Data Types: Sort.
List Request
POST/api/alert/get-list?skip=0&limit=10Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"alertSeverityId": true,
"currentAlertStateId": true,
"projectId": true,
"title": true,
"alertNumber": true
},
"query": {
"title": "High CPU usage detected on production server"
},
"sort": {
"createdAt": -1
}
}Response
{
"count": 10,
"limit": 10,
"skip": 0,
"data": [
{
"_id": "376ab3e0-28fe-11f1-b591-3fdcef396aba",
"alertSeverityId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"currentAlertStateId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"title": "High CPU usage detected on production server",
"alertNumber": 42
},
{
"_id": "376ab3e1-28fe-11f1-b591-3fdcef396aba",
"alertSeverityId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"currentAlertStateId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"title": "High CPU usage detected on production server",
"alertNumber": 42
},
{
"_id": "376ab3e2-28fe-11f1-b591-3fdcef396aba",
"alertSeverityId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"currentAlertStateId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"title": "High CPU usage detected on production server",
"alertNumber": 42
}
]
}/api/alert/:id/get-itemGet item by ID
This endpoint allows you to retrieve Alert by ID.
id- text
- ID of the Object
Optional Request Body
select- By default you will only retrieve ID of objects, to retrieve more fields you need to select them. For more information, please check how to select here.
Get Item Request
POST/api/alert/:id/get-itemContent-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"alertSeverityId": true,
"currentAlertStateId": true,
"projectId": true,
"title": true,
"alertNumber": true
}
}Response
{
"_id": "376ab3e0-28fe-11f1-b591-3fdcef396aba",
"alertSeverityId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"currentAlertStateId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"title": "High CPU usage detected on production server",
"alertNumber": 42
}/api/alert/countCount
This endpoint allows you to retrieve the count of all your Alert.
Optional Request Body
query- If you would like to filter on Alert. You can specify include a query here. For more information, please check out writing queries here.
Count Request
POST/api/alert/countContent-Type: application/json ApiKey: YOUR_API_KEY
{
"query": {
"title": "High CPU usage detected on production server"
}
}Response
{
"count": 107
}/api/alertCreate Alert
This endpoint allows you to create a new object.
Create Request
POST/api/alertContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"alertSeverityId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"currentAlertStateId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"title": "High CPU usage detected on production server",
"description": "CPU usage has exceeded 90% threshold for the past 5 minutes. Immediate investigation required."
}
}Response
{
"_id": "376ab3e0-28fe-11f1-b591-3fdcef396aba",
"alertSeverityId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"currentAlertStateId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"projectId": "5f8b9c0d-e1a2-4b3c-8d5e-6f7a8b9c0d1e",
"title": "High CPU usage detected on production server",
"alertNumber": 42
}/api/alert/:idUpdate by ID
This endpoint allows you to update object by its ID.
Alternative Methods
For clients that do not support PUT requests, you can use POST or GET with the same request headers and body:
Update Request
PUT/api/alert/:idContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"alertSeverityId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"currentAlertStateId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "High CPU usage detected on production server"
}
}Response
{}/api/alert/:idDelete by ID
This endpoint allows you to delete object by its ID.
Alternative Methods
For clients that do not support DELETE requests, you can use POST or GET with the same request headers and body:
Delete Request
DELETE/api/alert/:idContent-Type: application/json ApiKey: YOUR_API_KEY
Response
{}Permissions
Your API Token needs permissions to create, update, read or delete this resource. If you do not have permissions to make a request a 4xx status will be sent as response.
Read Permissions
Required to read Alert
Project OwnerProject AdminProject MemberRead AlertRead All Project Resources
Create Permissions
Required to create Alert
Project OwnerProject AdminProject MemberCreate Alert
Update Permissions
Required to update Alert
Project OwnerProject AdminProject MemberEdit Alert
Delete Permissions
Required to delete Alert
Project OwnerProject AdminProject MemberDelete Alert