Alerts
Property | Type | Description |
---|---|---|
title | string | The title of the alert. |
description | string | The description of the alert. |
tag_list | string[] | A list of tags. |
urgency | string | The urgency of the alert. low|medium|high|critical |
status | string | |
source_id | string | The source identifier. |
source_type | string | |
source_log_id | string | |
thirdparty_id | string | A unique identifier mapping this to a third party system. |
acknowledged_at | timestamp | A timestamp of when the alert was first acknowledged. (Does not get reset if handed off or the alert was routed to multiple teams.) |
resolved_at | timestamp | A timestamp of when the alert was resolved. |
dedup_keys | string[] | Unique identifiers that group alerts within the account. |
POST https://api.pagertree.com/api/v4/alerts
def alert_params
params.permit(
:title,
:description,
:urgency,
meta: [
:incident,
:incident_severity,
:incident_message
],
destination_team_ids: [],
destination_router_ids: [],
destination_account_user_ids: []
)
end
- title
- urgency
- at least 1 destination (Team, Router, or Account User)
GET https://api.pagertree.com/api/v4/alerts/:id
PUT https://api.pagertree.com/api/v4/alerts/:id
DELETE https://api.pagertree.com/api/v4/alerts/:id
GET https://api.pagertree.com/api/v4/alerts
POST https://api.pagertree.com/api/v4/alerts/:id/acknowledge
POST https://api.pagertree.com/api/v4/alerts/:id/reject
POST https://api.pagertree.com/api/v4/alerts/:id/resolve
Last modified 1mo ago