Rust Client
Our open source client is available under MIT and Apache 2.0 License.
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();
let event_result = client
.post()
.event(
"44c7afdc-0b3e-4344-b48a-5378a963231f",
ILertEventType::ALERT,
"Host srv/mail01 is CRITICAL",
None,
None)
.execute()
.unwrap();
let user_result = client
.get()
.users()
.execute()
.unwrap();Last updated
Was this helpful?