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 Escalation Policy Object
  • Create a Escalation Policy
  • Retrieve an Escalation Policies
  • Update an Escalation Policies
  • Delete an Escalation Policies
  • List all Escalation Policies

Was this helpful?

  1. API

Escalation Policies

PreviousCommentsNextEvents

Last updated 2 years ago

Was this helpful?

  • the rule set of how an moves through a on-call .

  • Escalation Policies are independent objects. The Team object is responsible for assigning itself a primary Schedule and an Escalation Policy.

The Escalation Policy Object

Property
Type
Description

name

string

The name of the escalation policy. (Required)

repeat

integer

reassign_team_ids

string[]

reassign_account_user_ids

string[]

An array of Account User IDs this escalation reassigns to.

team_ids

string[]

The team IDs currently using this escalation policy.

escalation_layers

:account_id, :id, :prefix_id, :layer, :timeout, :timeout_unit, :color_hex

Create a Escalation Policy

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

Allowed Parameters

def escalation_policy_params
  params.permit(
    :name,
    :repeat,
    reassign_team_ids: [],
    reassign_account_user_ids: [],
    escalation_layers_attributes: [
      :id,
      :layer,
      :timeout,
      :timeout_unit,
      :color_hex,
      :_destroy
    ]
  )
end

Required Parameters

  • name

Retrieve an Escalation Policies

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

Update an Escalation Policies

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

Delete an Escalation Policies

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

List all Escalation Policies

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

The amount of times to the escalation policy.

An array of Team IDs this escalation to.

[]

Escalation Policies define
Alert
Team's
Schedule
repeat
reassigns
EscalationLayer