Not Providing Milkshakes
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

sensu-api

0.0.1 • Public • Published

Sensu-API

This is a simple wrapper for the Sensu api.

Please visit http://sensuapp.org/docs/0.12/api for more information.

Usage:

var sensu = require('sensu-api')({
    apiURL: 'http://sensu.hostname.com:4567/',
    username: '',
    password: ''
});
 
 
sensu.getChecks(function(data) {
    console.log(data);
});
 
sensu.getChecks('cpu_metrics', function(data) {
    console.log(data);
});
 
sensu.getClients({
    name: 'hostname.com',
    history: true
}, function(data) {
    console.log(data);
});
 
sensu.getEvents({
    client: 'hostname.com',
    check: 'disk_check'
}, function(data) {
    console.log(data);
});
 
sensu.getHealth({
    consumers: 5,
    messages: 2
}, function(data) {
    console.log(data);
});
 
sensu.getInfo(function(data) {
    console.log(data);
});
 
sensu.getStashes(function(data) {
    console.log(data);
});

install

npm i sensu-api

Downloadsweekly downloads

1

version

0.0.1

license

MIT

repository

Gitgit

last publish

collaborators

  • avatar