umami_metrics

Crates.ioumami_metrics
lib.rsumami_metrics
version0.1.0
sourcesrc
created_at2022-07-21 23:00:03.493843
updated_at2022-07-21 23:00:03.493843
descriptionA rust library to send metrics data to the Umami metrics platform
homepage
repository
max_upload_size
id629906
size10,364
Julie (Cobular)

documentation

README

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;
Commit count: 0

cargo fmt