# ilert-rust   [![Latest Version]][crates.io] [![ilert: rustc 1.13+]][Rust 1.13]
[Latest Version]: https://img.shields.io/crates/v/ilert.svg
[crates.io]: https://crates.io/crates/ilert
[ilert: rustc 1.13+]: https://img.shields.io/badge/ilert-rustc_1.13+-lightgray.svg
[Rust 1.13]: https://blog.rust-lang.org/2016/11/10/Rust-1.13.html
[Rust 1.31]: https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html
**The official iLert api bindings.**
## In action
```rust
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-5379a963231f",
ILertEventType::ALERT,
"Host srv/mail01 is CRITICAL",
None,
None)
.execute()
.unwrap();
let user_result = client
.get()
.users()
.execute()
.unwrap();
```
## Getting help
We are happy to respond to [GitHub issues][issues] as well.
[issues]: https://github.com/iLert/ilert-rust/issues/new
<br>
#### License
<sup>
Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
</sup>
<br>
<sub>
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.
</sub>