pub const CUSTOMER_NAME: &str = "test";
pub const CUSTOMER_ID: u32 = 1;
pub const PROJECT_NAME: &str = "test";
pub const PROJECT_ID: u32 = 1;
pub const A_TEST_METRIC_METRIC_ID: u32 = 1;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TestMetricDimensionDim1 {
Unknown = 1,
Known = 2,
}
impl cobalt_client::traits::AsEventCode for TestMetricDimensionDim1 {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TestMetricDimensionDim1 as ATestMetricMetricDimensionDim1;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TestMetricDimensionDim2 {
A = 1,
B = 2,
C = 3,
}
impl cobalt_client::traits::AsEventCode for TestMetricDimensionDim2 {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TestMetricDimensionDim2 as ATestMetricMetricDimensionDim2;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct ATestMetricEventCodes {
pub dim_1: ATestMetricMetricDimensionDim1,
pub dim_2: ATestMetricMetricDimensionDim2,
}
impl cobalt_client::traits::AsEventCodes for ATestMetricEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.dim_1.as_event_code(),
self.dim_2.as_event_code(),
]
}
}