For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rust Client

Our open source client is available under MIT and Apache 2.0 License.

You can find the official ilert Rust client on our Github organization: https://github.com/iLert/ilert-rust

Install as usual with cargo ilert = "5.1.0"

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

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

let event_result = client
    .create()
    .event(
        "44c7afdc-0b3e-4344-b48a-5378a963231f",
        ILertEventType::ALERT,
        Some("Host srv/mail01 is CRITICAL".to_string()),
        None)
    .execute()
    .await
    .unwrap();

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

Please feel free to reach out to us with a Github issue in case you need help or have feature requests.

Last updated

Was this helpful?