Documentation is available here.
[dependencies]
cosmos = "0.0.15"
```rust extern crate cosmos;
use cosmos::Cosmos; use cosmos::Container;
fn main() {
let host = "localhost:8888";
let planet = "Mars";
let cosmos = Cosmos::new(host, planet);
let mut containers: Vec
let response = match cosmos.post_metrics(&containers) {
Ok(response) => response,
Err(e) => {
panic!("{}", e);
}
};
println!("{} {}", response.status_code, response_body);
} ```