https://github.com/clevercloud/warp10.rs
Warp10 client for rust
https://github.com/clevercloud/warp10.rs
client rust timeseries ts warp10
Last synced: 3 months ago
JSON representation
Warp10 client for rust
- Host: GitHub
- URL: https://github.com/clevercloud/warp10.rs
- Owner: CleverCloud
- License: bsd-3-clause
- Created: 2016-09-16T20:37:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-17T18:42:34.000Z (over 2 years ago)
- Last Synced: 2025-12-13T23:43:40.085Z (6 months ago)
- Topics: client, rust, timeseries, ts, warp10
- Language: Rust
- Size: 68.4 KB
- Stars: 12
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# This is a Rust client for [Warp10 Geo/time series DB](http://www.warp10.io/)
[](https://crates.io/crates/warp10)
[](COPYING)
## Features
At the moment, we support writing to warp10.
Reading support should come at some point.
## Example
```rust
extern crate time;
extern crate warp10;
fn warp10_post() -> std::result::Result {
let client = warp10::Client::new("http://localhost:8080/")?;
let writer = client.get_writer("my_write_token".to_string());
let res = writer.post_sync(vec![
warp10::Data::new(
time::OffsetDateTime::now_utc(),
Some(warp10::GeoValue::new(42.66, 62.18, Some(10))),
"test data name 2".to_string(),
vec![
warp10::Label::new("label 1 name", "label 1 value"),
warp10::Label::new("label 2 name", "label 2 value")
],
warp10::Value::String("Test warp10 awesome value".to_string())
)
])?;
Ok(res)
}
fn main() {
println!("{:?}", warp10_post());
}
```