healthchecks-rs

A simple Rust library that allows pinging healthchecks.io to indicate success or failure of a task.

Usage

Usage is super simple!

```rust extern crate healthchecks;

use healthchecks::config::create_config;

fn main() { let config = createconfig("my-uuid-that-is-definitely-not-real", None); config.reportfailure(); config.report_success(); } ```

Or if you want to set a custom user agent for filtering purposes (default is healthcheck-rs/$library_version)

```rust extern create healthchecks

use healthchecks::config::create_config;

fn main() { let config = createconfigwithuseragent("my-uuid-that-is-definitely-not-real", Some(String::from("very-fancy-useragent"))); config.reportfailure(); config.reportsuccess(); }

```

You can also start a timer to record durations on healthchecks.io.

```rust extern create healthchecks

use healthchecks::config::create_config;

fn main() { let config = createconfig("my-uuid-that-is-definitely-not-real", None); config.starttimer(); dolongrunningtask(); config.reportsuccess(); }

```

Licensing

Dual licensed under Apache 2.0 or MIT at your option.