ilert

iLert api bindings

Usage no npm install needed!

<script type="module">
  import ilert from 'https://cdn.skypack.dev/ilert';
</script>

README

ilert-js

The official iLert api bindings.

Install

npm install ilert

In action

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();

Typescript definitions included.

Getting help

We are happy to respond to GitHub issues as well.


License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in ilert-js by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.