pagerduty
A node.js client for PagerDuty.
Install
npm install pagerduty
Methods
constructor(options)
- Required:
serviceKey
- The GUID of one of your “Generic API” services. This is the “service key” listed on a Generic API’s service detail page.
create(options)
- Required:
description
- A short description of the problem that led to this trigger.
- Optional:
details
- An arbitrary JSON object containing any data you’d like included in the incident log.incidentKey
- Identifies the incident to which this trigger event should be applied.callback
- A Callback with two arguments(err, response)
acknowledge(options)
- Required:
incidentKey
- Identifies the incident to which this trigger event should be applied.
- Optional:
details
- An arbitrary JSON object containing any data you’d like included in the incident log.description
- Text that will appear in the incident’s log associated with this event.callback
- A Callback with two arguments(err, response)
resolve(options)
- Required:
incidentKey
- Identifies the incident to which this trigger event should be applied.
- Optional:
details
- An arbitrary JSON object containing any data you’d like included in the incident log.description
- Text that will appear in the incident’s log associated with this event.callback
- A Callback with two arguments(err, response)
Example response
Usage
var pager PagerDuty; PagerDuty = ; pager = serviceKey: '12345678901234567890123456789012' // required; pager;
License
Licensed under the MIT license.