emergency_metrics_registry/
emergency_metrics_registry.rs
1pub const CUSTOMER_NAME: &str = "fuchsia";
4pub const CUSTOMER_ID: u32 = 1;
5pub const PROJECT_NAME: &str = "connectivity_location";
6pub const PROJECT_ID: u32 = 4;
7
8pub const EMERGENCY_GET_CURRENT_LATENCY_MIGRATED_EMERGENCY_GET_CURRENT_LATENCY_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
10pub const EMERGENCY_GET_CURRENT_LATENCY_MIGRATED_EMERGENCY_GET_CURRENT_LATENCY_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
11pub const EMERGENCY_GET_CURRENT_LATENCY_MIGRATED_EMERGENCY_GET_CURRENT_LATENCY_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 10;
12pub const EMERGENCY_GET_CURRENT_LATENCY_MIGRATED_EMERGENCY_GET_CURRENT_LATENCY_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
13pub const EMERGENCY_GET_CURRENT_LATENCY_MIGRATED_EMERGENCY_GET_CURRENT_LATENCY_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
14
15pub const EMERGENCY_GET_CURRENT_ACCURACY_MIGRATED_EMERGENCY_GET_CURRENT_ACCURACY_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
17pub const EMERGENCY_GET_CURRENT_ACCURACY_MIGRATED_EMERGENCY_GET_CURRENT_ACCURACY_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 30;
18pub const EMERGENCY_GET_CURRENT_ACCURACY_MIGRATED_EMERGENCY_GET_CURRENT_ACCURACY_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
19pub const EMERGENCY_GET_CURRENT_ACCURACY_MIGRATED_EMERGENCY_GET_CURRENT_ACCURACY_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
20pub const EMERGENCY_GET_CURRENT_ACCURACY_MIGRATED_EMERGENCY_GET_CURRENT_ACCURACY_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
21
22pub const EMERGENCY_GET_CURRENT_RESULT_MIGRATED_METRIC_ID: u32 = 101;
25pub const EMERGENCY_GET_CURRENT_LATENCY_MIGRATED_METRIC_ID: u32 = 102;
27pub const EMERGENCY_GET_CURRENT_ACCURACY_MIGRATED_METRIC_ID: u32 = 103;
29pub const EMERGENCY_GET_CURRENT_FAILURE_MIGRATED_METRIC_ID: u32 = 104;
31pub const WLAN_SENSOR_REPORT_MIGRATED_METRIC_ID: u32 = 105;
33
34#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
36pub enum EmergencyGetCurrentResultMigratedMetricDimensionResult {
37 Success = 0,
38 Failure = 1,
39}
40
41impl cobalt_client::traits::AsEventCode for EmergencyGetCurrentResultMigratedMetricDimensionResult {
42 fn as_event_code(&self) -> u32 {
43 *self as u32
44 }
45}
46
47#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
49pub enum ConnectivityLocationMetricDimensionCause {
50 NoBsses = 0,
51 Internal = 1,
52 Lookup = 2,
53}
54
55impl cobalt_client::traits::AsEventCode for ConnectivityLocationMetricDimensionCause {
56 fn as_event_code(&self) -> u32 {
57 *self as u32
58 }
59}
60pub use ConnectivityLocationMetricDimensionCause as EmergencyGetCurrentFailureMigratedMetricDimensionCause;
62
63#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
65pub enum WlanSensorReportMigratedMetricDimensionResult {
66 Success = 0,
67 NoBssIds = 1,
68 NoBsses = 2,
69 IpcError = 3,
70 ServiceError = 4,
71}
72
73impl cobalt_client::traits::AsEventCode for WlanSensorReportMigratedMetricDimensionResult {
74 fn as_event_code(&self) -> u32 {
75 *self as u32
76 }
77}
78