#metrics

influxive-core

Core types for influxive crates

10 releases

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

#513 in Development tools

Download history 202/week @ 2023-10-30 117/week @ 2023-11-06 192/week @ 2023-11-13 246/week @ 2023-11-20 252/week @ 2023-11-27 230/week @ 2023-12-04 314/week @ 2023-12-11 181/week @ 2023-12-18 95/week @ 2023-12-25 111/week @ 2024-01-01 294/week @ 2024-01-08 268/week @ 2024-01-15 294/week @ 2024-01-22 343/week @ 2024-01-29 578/week @ 2024-02-05 170/week @ 2024-02-12

1,397 downloads per month
Used in 9 crates (4 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