4.0.0 • Published 3 months ago

ilert v4.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 months ago

ilert-js

The official iLert api bindings.

Install

npm install ilert

In action

const { ILert } = require("ilert");
const ilert = new ILert({
    apiKey: "123123" // optional
});

// creating a new event
const { data } = await ilert.event().create(
    "il1api0460d849fcdc753d4f",
    ILert.EVENT_TYPES.ALERT,
    "My test incident summary",
    { incidentKey: "123456" } // optional
);

// resolving a pending alert
await ilert.alert(45678).resolve();

// fetch an incident
await ilert.incident(12345).get();

// ping a heartbeat
await ilert.heartbeat("il1hbt0460d849fcdc753").ping();

Typescript definitions included.

Getting help

We are happy to respond to GitHub issues as well.

License