bigpanda-rs
bigpanda-rs is a Rust library for integrating with the BigPanda API.
The library currently supports creating/updating alerts and changes.
Usage Guide
Please see the tests in this respository for thorough examples, but here's a quick guide.
First, create a BigPanda client with a specific Api type along with an app key and auth_token:
let client = new;
Second, build your alert or change payload (See the tests for some more details):
Alert Payload
let alert = Alert ;
Change Payload
let now = now;
let timestamp: i64 = now.timestamp;
let mut tags = new;
tags.insert;
tags.insert;
let change = Change ;
Finally, send the respective request:
Send an Alert
let response = client.send_alert.await;
Send a Change
let response = client.send_change.await;