emergency_metrics_registry/
emergency_metrics_registry.rs

1// This file was generated by Cobalt's Registry parser based on the registry YAML
2// in the cobalt_config repository. Edit the YAML there to make changes.
3pub 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
8// Exponential bucket constants for emergency_get_current_latency_migrated emergency_get_current_latency_histogram
9pub 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
15// Exponential bucket constants for emergency_get_current_accuracy_migrated emergency_get_current_accuracy_histogram
16pub 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
22// Metric ID Constants
23// emergency_get_current_result_migrated
24pub const EMERGENCY_GET_CURRENT_RESULT_MIGRATED_METRIC_ID: u32 = 101;
25// emergency_get_current_latency_migrated
26pub const EMERGENCY_GET_CURRENT_LATENCY_MIGRATED_METRIC_ID: u32 = 102;
27// emergency_get_current_accuracy_migrated
28pub const EMERGENCY_GET_CURRENT_ACCURACY_MIGRATED_METRIC_ID: u32 = 103;
29// emergency_get_current_failure_migrated
30pub const EMERGENCY_GET_CURRENT_FAILURE_MIGRATED_METRIC_ID: u32 = 104;
31// wlan_sensor_report_migrated
32pub const WLAN_SENSOR_REPORT_MIGRATED_METRIC_ID: u32 = 105;
33
34// Enum for emergency_get_current_result_migrated (Metric Dimension result)
35#[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// Enum for connectivity_location (Metric Dimension cause)
48#[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}
60// Alias for emergency_get_current_failure_migrated (Metric Dimension cause) which has the same event codes
61pub use ConnectivityLocationMetricDimensionCause as EmergencyGetCurrentFailureMigratedMetricDimensionCause;
62
63// Enum for wlan_sensor_report_migrated (Metric Dimension result)
64#[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