Crates.io | umami_metrics |
lib.rs | umami_metrics |
version | 0.1.0 |
source | src |
created_at | 2022-07-21 23:00:03.493843 |
updated_at | 2022-07-21 23:00:03.493843 |
description | A rust library to send metrics data to the Umami metrics platform |
homepage | |
repository | |
max_upload_size | |
id | 629906 |
size | 10,364 |
A Rust library for sending metrics events to an instance of https://umami.is/
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;