monitorer

0.0.7 • Public • Published

monitorer

Simple monitor module for nodejs4+

Installation

$ npm install monitorer --save

Setting up

Direct configuration

"use strict";
 
Monitorer = require('../index'),
monitorer = new Monitorer({url: 'http://127.0.0.1:8480/v1/log/'}); 
 
var result = monitorer.send(
        'sendPayment',
        'PaymentApi',
        'ok',
        {
            "whatever": "works"
        },
        'type': 'fatal'
    )
    .then(function(res) {
        // do something
    })
    .catch(function(err){
        // do something
    });
 

Keywords

none

install

npm i monitorer

Downloadsweekly downloads

1

version

0.0.7

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability