monitorer
v0.0.7
Published
Module to send monitoring messages to the Monitoring microservice
Downloads
14
Readme
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
});