Skip to content

rwky/pingdom-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pingdom-api - Pingdom API for Node.js

pingdom-api provides a simple, programmatic access to Pingdom's API and simplifies its usage somewhat. Consider the example below:

var pingdom = require('pingdom-api');

var credentials = {
    user: 'updatethis', // based on your user account
    pass: 'updatethis', // based on your user account
    appkey: 'updatethis' // generated per app via web interface
}
var api = pingdom(credentials);

api.checks(function(err, checks) {
    if(err) return console.error(err);

    console.log('received checks', checks);

    // get some results
    api.results(function(err, results) {
        if(err) return console.error(err);

        console.log('received results', results);
    }, {
        target: checks[0].id,
        qs: { // based on https://www.pingdom.com/services/api-documentation-rest/#ResourceResults
            limit: 100
        }
    });
});

Currently the API provides access just read-only access to Pingdom's API. In case you need something else, either poke me with an issue or create a pull request.

License

pingdom-api is available under MIT. See LICENSE for more details.

About

Pingdom API client for Node.js (MIT)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%