#metrics #platform #data #events #instance #send #umami

umami_metrics

A rust library to send metrics data to the Umami metrics platform

1 unstable release

0.1.0 Jul 21, 2022

#160 in #send

Custom license

8KB
130 lines

Umami Metric for Rust

Maintenance CI crates-io api-docs

A Rust library for sending metrics events to an instance of https://umami.is/

Basic Example

let umami = Umami::new(
    "website_id".to_string(),
    "https://umami_instance.com".to_string(),
);

let res = umami.pageview(
    "/".to_string(),
    "click".to_string(),
    "eee".to_string(),
    "tets".to_string(),
    "asdfasdfasfd".to_string(),
).await;

let res = umami.event(
    "/".to_string(),
    "click".to_string(),
    "eee".to_string(),
    "tets".to_string(),
    "asdfasdfasfd".to_string(),
    "asdfasdf".to_string(),
).await;

Dependencies

~4–19MB
~249K SLoC