Docs
WebsiteLoginFree Trial
  • Getting Started
    • OnCall Users
    • Team Admins
    • Account Admins
  • Architecture Guide
  • Common UI Design Patterns
  • Alerts
  • Teams
  • Schedules
  • Escalation Policies
  • Integrations
  • Broadcasts
  • Users
  • Notifications
  • Reports
  • Billing
  • Accounts
  • Stakeholders
  • Maintenance Windows
  • Routers
  • Notification Rules
  • Single Sign On (SSO)
  • Integration Guides
    • Introduction
    • 66uptime
    • Apex Ping
    • AppDynamics
    • Auvik
    • AWS CloudWatch
    • Azure Monitor
    • Cloudflare
    • Cronitor
    • Datadog
    • Dead Man's Snitch
    • Echoes HQ
    • ElastAlert
    • Email
    • Form
    • Freshdesk
    • Freshservice
    • Google Hangouts Chat
    • Grafana
    • Healthchecks.io
    • HetrixTools
    • Honeybadger
    • Hydrozen
    • Jira Server
    • JotForm
    • Kapacitor
    • LogicMonitor
    • Mattermost
      • Outgoing Webhook
      • Post to Channel
    • Meta Workplace
    • Microsoft Teams
    • New Relic
    • Outgoing Webhook
    • Pingdom
    • Prometheus
    • PRTG Network Monitor
    • Pulsetic
    • Sentry
    • ServerGuard24
    • Site24x7
    • Slack
      • Notifications
      • Outgoing Webhook
      • Post to Channel
    • SolarWinds
    • Stackdriver
    • StatusCake
    • Twilio
      • Incoming SMS
      • Live Call Routing
    • Typeform
    • Uptime
    • Uptime Kuma
    • UptimeRobot
    • Webhook
    • Zendesk
  • API
    • Introduction
    • Authentication
    • Errors
    • Pagination and Filters
    • Common Model Attributes
    • Account Users
    • Alerts
    • Broadcasts
    • Comments
    • Escalation Policies
    • Events
    • Integrations
    • Logs
    • Maintenance Windows
    • Notification Rules
    • Routers
    • Schedules
    • Teams
    • Users
  • Command Line Interface (CLI)
    • PagerTree CLI: Command Line Interface
Powered by GitBook
On this page
  • The Alert Object
  • Notes
  • Create an Alert
  • Retrieve an Alert
  • Update an Alert
  • Delete an Alert
  • List all Alerts
  • Acknowledge an Alert
  • Reject an Alert
  • Resolve an Alert
  • Comment on an Alert
  • List an Alert's Comments

Was this helpful?

  1. API

Alerts

PreviousAccount UsersNextBroadcasts

Last updated 24 days ago

Was this helpful?

  • An represents an urgent notice (state of alarm)

  • Alerts are created by or

The Alert Object

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.

Notes

  • Set the meta.incident to true to flag this alert as an .

  • Set the meta.incident_severity to set the . SEV-1|SEV-2|SEV-3|SEV-4|SEV-5|SEV-UNKNOWN

  • Set the meta.incident_message to set the special incident message.

Create an Alert

POST https://api.pagertree.com/api/v4/alerts

Allowed Parameters

def alert_params
  params.permit(
    :title,
    :description,
    :urgency,
    meta: [
      :incident,
      :incident_severity,
      :incident_message
    ],
    destination_team_ids: [],
    destination_router_ids: [],
    destination_account_user_ids: [],
    tags: []
  )
end

Required Parameters

  • title

  • urgency

  • at least 1 destination (Team, Router, or Account User)

Retrieve an Alert

GET https://api.pagertree.com/api/v4/alerts/:id

Update an Alert

PUT https://api.pagertree.com/api/v4/alerts/:id

Delete an Alert

DELETE https://api.pagertree.com/api/v4/alerts/:id

List all Alerts

GET https://api.pagertree.com/api/v4/alerts

Acknowledge an Alert

POST https://api.pagertree.com/api/v4/alerts/:id/acknowledge

Reject an Alert

POST https://api.pagertree.com/api/v4/alerts/:id/reject

Resolve an Alert

POST https://api.pagertree.com/api/v4/alerts/:id/resolve

Comment on an Alert

POST https://api.pagertree.com/api/v4/alerts/:id/comments

Required Parameters

  • body

List an Alert's Comments

GET https://api.pagertree.com/api/v4/alerts/:id/comments

The state of the alert.

The source model type (usually an or ).

The identifier that created this alert (only when created by an integration).

an alert. Must be in the open|dropped|suppressed state.

an alert. API Key user must have an open workflow for this alert.

an alert. Must be in the open|dropped|acknowledged state.

Integration
Account User
Log
alert
Integrations
Account Users
incident
severity
Acknowledge
Reject
Resolve
current status