This is the NodeJS implementation for Vamp client.
Install using node install
.
let _ = require('highland');
let vamp = require('vamp-node-client');
let api = new vamp.Api();
api.info().each(function (info) {
_.log(info.message);
});
api.config().each(function (config) {
_.log(config['vamp.info.message']);
});
api.event(['tag1:a', 'tag2:b'], 'abcd');
let _ = require('highland');
let vamp = require('vamp-node-client');
// overriding configuration
let api = new vamp.Api({
host: 'http://localhost:9090', // by default: $VAMP_URL || 'http://127.0.0.1'
path: '/api/v1' // by default: '/api/v1'
});
let metrics = new vamp.ElasticsearchMetrics(api);
metrics.average({ ft: 'abc' }, 'Tt', 30).each(function(response) {
// response.total, response.rate, response.average
_.log(response);
});
Run node digest-check.js [directory] [salt]
:
directory
- directory where eventjson
files aresalt
- SHA1 salt used for creating original event digests (signatures)