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

#2218 in Development tools

Download history 277/week @ 2024-07-21 708/week @ 2024-07-28 578/week @ 2024-08-04 392/week @ 2024-08-11 430/week @ 2024-08-18 527/week @ 2024-08-25 535/week @ 2024-09-01 636/week @ 2024-09-08 729/week @ 2024-09-15 773/week @ 2024-09-22 409/week @ 2024-09-29 433/week @ 2024-10-06 446/week @ 2024-10-13 463/week @ 2024-10-20 678/week @ 2024-10-27 521/week @ 2024-11-03

2,116 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