influxdb/influxdb2_client/examples/health.rs

12 lines
267 B
Rust

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let influx_url = "some-url";
let token = "some-token";
let client = influxdb2_client::Client::new(influx_url, token);
println!("{:?}", client.health().await?);
Ok(())
}