rs-crisp-status-reporter

Build Status Dependency Status

Crisp Status Reporter for Rust.

Crisp Status Reporter is used to actively submit health information to Crisp Status from your apps. Apps are best monitored via application probes, which are able to report detailed system information such as CPU and RAM load. This lets Crisp Status show if an application host system is under high load.

How to install?

Include crisp-status-reporter in your Cargo.toml dependencies:

toml [dependencies] crisp-status-reporter = "1.0"

How to use?

Create reporter

crisp-status-reporter can be instantiated as such:

```rust extern crate crispstatusreporter;

use std::time::Duration; use crispstatusreporter::Reporter;

// Build reporter let reporter = Reporter::new("YOURTOKENSECRET") .serviceid("YOURSERVICEID") // Service ID containing the parent Node for Replica (given by Crisp) .nodeid("YOURNODEID") // Node ID containing Replica (given by Crisp) .replicaid("192.168.1.10") // Unique Replica ID for instance (ie. your IP on the LAN) .interval(Duration::fromsecs(30)) // Reporting interval (in seconds; defaults to 30 seconds if not set) .build();

// Run reporter (starts reporting) reporter.run(); ```