11 releases

0.0.3-alpha.1 Jun 5, 2024
0.0.2-alpha.1 Oct 16, 2023
0.0.1-alpha.11 Aug 4, 2023
0.0.1-alpha.9 Jul 31, 2023

#2027 in Development tools

Download history 388/week @ 2024-03-14 536/week @ 2024-03-21 262/week @ 2024-03-28 491/week @ 2024-04-04 526/week @ 2024-04-11 445/week @ 2024-04-18 736/week @ 2024-04-25 545/week @ 2024-05-02 361/week @ 2024-05-09 652/week @ 2024-05-16 574/week @ 2024-05-23 917/week @ 2024-05-30 640/week @ 2024-06-06 640/week @ 2024-06-13 590/week @ 2024-06-20 341/week @ 2024-06-27

2,448 downloads per month
Used in 12 crates (5 directly)

MIT/Apache

8KB
110 lines

Project Forum Chat

License: MIT License: Apache-2.0

Core types for influxive crates. The main point of this crate is to expose the [MetricWriter] trait to be used by downstream influxive crates.

Example [Metric] type creation:

let _metric = influxive_core::Metric::new(std::time::SystemTime::now(), "my.name")
    .with_field("field.bool", true)
    .with_field("field.float", 3.14)
    .with_field("field.signed", -42)
    .with_field("field.unsigned", 42)
    .with_field("field.string", "string.value")
    .with_tag("tag.bool", true)
    .with_tag("tag.float", 3.14)
    .with_tag("tag.signed", -42)
    .with_tag("tag.unsigned", 42)
    .with_tag("tag.string", "string.value");

No runtime deps