opsgenie_rust

Light alerting client library for opsgenie This libaray in WIP status so be aware that API can be rewritten. I have created this API because swagger-cli is not able to genereate rust lib that is compiling and it was faster for me implement needed functionality(Alert creating) on my own.

How to use it?

``` extern crate opsgenierust; use opsgenierust::*; use std::thread;

fn main() { let alertdata = AlertData::new("Some message".tostring()) .alias("with alias".tostring()) .tags(vec!["certyficates".tostring(), "expiring".tostring()]) .entity("www.domain.com".tostring()) .source("alert-sourtce".tostring()) .priority(opsgenierust::Priority::P4);

let opsgenie = OpsGenie::new("XXXXX-XXXXX-XXXXX-XXXXXX-XXXXX".to_string());

let mut alert_ops = opsgenie.alert(alert_data).unwrap();

thread::sleep_ms(10000);

alert_ops.close().unwrap();

}

```

TODO: