2.0.3 • Published 5 years ago
centinela-sdk v2.0.3
Centinela Sdk
Installation
npm i centinela-sdkInstall version 2.0.0 or higher
How to use
- From centinale homepage generte an api token
- Init sdk
const centinelaSdk = require('centinela-sdk')
centinelaSdk.init(API_KEY, organizationId)- Send errors
const centinelaSdk = require('centinela-sdk')
centinelaSdk.sendError(errorName,errorDescription, errorSeverity).catch(e => console.error(e))Severity can go from 1 to 4