influxive-core

Crates.ioinfluxive-core
lib.rsinfluxive-core
version0.0.3-alpha.1
sourcesrc
created_at2023-07-20 21:35:48.087034
updated_at2024-06-05 16:33:04.188496
descriptionCore types for influxive crates
homepage
repositoryhttps://github.com/holochain/influxive
max_upload_size
id921783
size7,585
Core Dev (github:holochain:core-dev)

documentation

https://docs.rs/influxive-core

README

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");
Commit count: 37

cargo fmt