tremor-influx

Crates.iotremor-influx
lib.rstremor-influx
version0.13.0-rc.33
sourcesrc
created_at2020-03-07 13:09:37.305666
updated_at2024-10-23 19:56:47.367432
descriptionTremor Influx Parser
homepage
repositoryhttps://github.com/tremor-rs/tremor-runtime
max_upload_size
id216325
size40,961
agares (Agares)

documentation

README

influx parser


Influx wire protocol parsing

Parses a influx wire protocol into a map.

Use as a library

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))
Commit count: 4539

cargo fmt