ilert 0.3.0

The official iLert api bindings.
Documentation

ilert-rust   Latest Version ilert: rustc 1.13+

The official iLert api bindings.

In action

use ilert::ilert::ILert;
use ilert::ilert_builders::{UserApiResource, EventApiResource, ILertEventType};

let mut client = ILert::new().unwrap();
client.auth_via_token("your-api-token").unwrap();

// create a new incident
client
    .post()
    .event(
        "44c7afdc-0b3e-4344-b48a-5378a963231f",
        ILertEventType::ALERT,
        "Host srv/mail01 is CRITICAL", None, None)
    .execute();

// fetch users
let user_result = client
    .get()
    .users()
    .execute()
    .unwrap();

// ping a heartbeat
client
    .get()
    .heartbeat("43c7afdc-0b3e-4344-b48a-5379a963241f")
    .execute();

Getting help

We are happy to respond to GitHub issues as well.

License