@mapbox/pagerduty-incidents
A readable stream for PagerDuty incidents
Last updated 3 years ago by xrwang .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mapbox/pagerduty-incidents 
SYNC missed versions from official npm registry.

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');
    });

Current Tags

  • 0.1.0                                ...           latest (3 years ago)

2 Versions

  • 0.1.0                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |