pagerduty-incidents

0.0.3 • Public • Published

A readable stream for PagerDuty incidents

Usage

As a readable stream:

var Pagerduty = require('pagerduty');
var pd = new Pagerduty('myToken', 'http://pagerDutySubdomain.pagerduty.com/');
 
var EventStream = pd.stream(['triggered'], ['ServiceA', 'ServiceB'], 10000)
    .on('data', function(incident) {
        console.log('got incident');
        console.log(incident);
    })
    .on('error', function(error) {
        console.log('got error');
        console.log(error);
    })
    .on('end', function() {
        console.log('got end');
    });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i pagerduty-incidents

Weekly Downloads

0

Version

0.0.3

License

BSD

Last publish

Collaborators

  • arunasank
  • ianshward