Get Centinela Library
$ npm i centinela-error-create
const centinela = require('centinela-error-create');
async function centinelaCall(){
var obj = {
organizationId: 129,
name: "Error name",
description: "Error description",
severity: 2,
key: "yourKey"
}
await centinela.createError(obj)
.then((result) => console.log(result.success))
.catch((err) => console.log(err.message));
}
centinelaCall();
//=> 'Added successfully'
$ npm install --global centinela-error-create
$ centinela-error-create --help
Example
...\npm\node_modules\centinela-error-create\ $ cli 129 "Name of error" "Description of error" 4 "yourKey"
Added successfully
MIT © ASP ORT