13 releases
| 0.0.5 | Aug 12, 2025 |
|---|---|
| 0.0.4-alpha.1 | Feb 19, 2025 |
| 0.0.3-alpha.1 | Jun 5, 2024 |
| 0.0.2-alpha.1 | Oct 16, 2023 |
| 0.0.1-alpha.9 | Jul 31, 2023 |
#360 in #metrics
2,419 downloads per month
Used in 13 crates
(5 directly)
8KB
110 lines
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");