| Crates.io | tremor-influx |
| lib.rs | tremor-influx |
| version | 0.13.0-rc.33 |
| created_at | 2020-03-07 13:09:37.305666+00 |
| updated_at | 2024-10-23 19:56:47.367432+00 |
| description | Tremor Influx Parser |
| homepage | |
| repository | https://github.com/tremor-rs/tremor-runtime |
| max_upload_size | |
| id | 216325 |
| size | 40,961 |
influx parser
Influx wire protocol parsing
Parses a influx wire protocol into a map.
The influx parser was designed so that influx wire protocol style parsing could be embedded into tremor's scripting language for extract operations.
The parser can also be used standalone
let s = "weather,location=us-midwest temperature_str=\"too hot\\\\\\\\\\cold\" 1465839830100400206";
let r: Value = json!({
"measurement": "weather",
"tags": {
"location": "us-midwest"
},
"fields": {
"temperature_str": "too hot\\\\\\cold"
},
"timestamp": 1_465_839_830_100_400_206i64, }
).into();
assert_eq!(Ok(Some(r)), decode(s, 0))