influxive-child-svc

Crates.ioinfluxive-child-svc
lib.rsinfluxive-child-svc
version0.0.3-alpha.1
sourcesrc
created_at2023-07-14 22:57:55.892012
updated_at2024-06-05 16:33:47.234314
descriptionRun influxd as a child process
homepage
repositoryhttps://github.com/holochain/influxive
max_upload_size
id916833
size30,891
Core Dev (github:holochain:core-dev)

documentation

https://docs.rs/influxive-child-svc

README

Project Forum Chat

License: MIT License: Apache-2.0

Run influxd as a child process.

Example

use influxive_core::Metric;
use influxive_child_svc::*;

let tmp = tempfile::tempdir().unwrap();

let influxive = InfluxiveChildSvc::new(
    InfluxiveChildSvcConfig::default()
        .with_database_path(Some(tmp.path().to_owned())),
).await.unwrap();

influxive.write_metric(
    Metric::new(
        std::time::SystemTime::now(),
        "my.metric",
    )
    .with_field("value", 3.14)
    .with_tag("tag", "test-tag")
);
Commit count: 37

cargo fmt