Javascript / Node.js Client
Our open source client is available under MIT and Apache 2.0 License.
const { ILert } = require("ilert");
const ilert = new ILert();
// 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 incident
await ilert.incident(45678).resolve();
// ping a heartbeat
await ilert.heartbeat("il1hbt0460d849fcdc753").ping();Last updated
Was this helpful?