Skip to content

Commit

Permalink
Use toml for mgd timeseries (#301)
Browse files Browse the repository at this point in the history
* Use TOML definitions of MGD timeseries

* Remove unneeded stat definition macros
  • Loading branch information
bnaecker authored Jul 19, 2024
1 parent f01a2ff commit ef0edbb
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 185 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 0 additions & 26 deletions mg-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,3 @@ macro_rules! write_lock {
$rwl.write().expect("rwlock write")
};
}

//
// stats macros
//

#[macro_export]
macro_rules! counter {
($name:ident) => {
#[derive(Clone, Copy, Debug, Default, Metric)]
pub struct $name {
#[datum]
count: Cumulative<u64>,
}
};
}

#[macro_export]
macro_rules! quantity {
($name:ident, $kind:tt) => {
#[derive(Clone, Copy, Debug, Default, Metric)]
pub struct $name {
#[datum]
quantity: $kind,
}
};
}
Loading

0 comments on commit ef0edbb

Please sign in to comment.