centinela-error-create

1.0.7 • Public • Published

Get Centinela Library

Install

$ npm i centinela-error-create

Usage

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'

CLI

$ 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

License

MIT © ASP ORT

Readme

Keywords

Package Sidebar

Install

npm i centinela-error-create

Weekly Downloads

3

Version

1.0.7

License

ISC

Unpacked Size

7.39 kB

Total Files

6

Last publish

Collaborators

  • federicoimoda