mos_metrics_registry/
mos_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 = "managed_os";
6pub const PROJECT_ID: u32 = 285903809;
7
8// Exponential bucket constants for update_check_response_time_migrated update_check_response_timing_histogram
9pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
10pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
11pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
12pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
13pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
14
15// Exponential bucket constants for update_check_interval_migrated update_check_interval_histogram
16pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
17pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
18pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
19pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
20pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
21
22// Linear bucket constants for update_check_interval_migrated linear_histogram_1min_buckets
23pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
24pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 120;
25pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 60;
26
27// Linear bucket constants for update_check_interval_migrated linear_histogram_10min_buckets
28pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_10MIN_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
29pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_10MIN_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 144;
30pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_10MIN_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 600;
31
32// Exponential bucket constants for update_duration_migrated update_duration_histogram
33pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
34pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
35pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 10;
36pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
37pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
38
39// Linear bucket constants for update_duration_migrated update_duration_histogram_10sec_buckets
40pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_10SEC_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
41pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_10SEC_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 90;
42pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_10SEC_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 10;
43
44// Linear bucket constants for update_duration_migrated update_duration_histogram_1min_buckets
45pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
46pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 120;
47pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 60;
48
49// Exponential bucket constants for update_duration_from_first_seen_migrated update_duration_from_first_seen_histogram
50pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
51pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
52pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 10;
53pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
54pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
55
56// Exponential bucket constants for requests_per_check_migrated requests_per_check_exponential_histogram
57pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
58pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
59pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
60pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
61pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
62
63// Linear bucket constants for requests_per_check_migrated requests_per_check_linear_histogram
64pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
65pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
66pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
67
68// Linear bucket constants for requests_per_check_migrated requests_per_check_per_device_min_histogram
69pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MIN_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
70pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MIN_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
71pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MIN_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
72
73// Linear bucket constants for requests_per_check_migrated requests_per_check_per_device_max_histogram
74pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MAX_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
75pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MAX_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
76pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MAX_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
77
78// Exponential bucket constants for attempts_to_successful_check_migrated attempts_to_successful_check_histogram
79pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
80pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
81pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
82pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
83pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
84
85// Exponential bucket constants for waited_for_reboot_duration_migrated waited_for_reboot_duration_histogram
86pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
87pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
88pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
89pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
90pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
91
92// Exponential bucket constants for failed_boot_attempts_migrated failed_boot_attempts_histogram
93pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
94pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
95pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
96pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
97pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
98
99// Exponential bucket constants for update_check_failure_count_migrated per_device_exponential_histogram
100pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
101pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
102pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
103pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 0;
104pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER_FLOAT: f32 = 2.00f32;
105
106// Linear bucket constants for update_check_failure_count_migrated per_device_linear_histogram
107pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
108pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 64;
109pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
110
111// Linear bucket constants for update_check_performed_migrated per_device_linear_histogram
112pub const UPDATE_CHECK_PERFORMED_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
113pub const UPDATE_CHECK_PERFORMED_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 64;
114pub const UPDATE_CHECK_PERFORMED_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
115
116// Linear bucket constants for omaha_event_lost_migrated per_device_linear_histogram
117pub const OMAHA_EVENT_LOST_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
118pub const OMAHA_EVENT_LOST_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 64;
119pub const OMAHA_EVENT_LOST_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
120
121// Linear bucket constants for attempts_per_device_day_migrated device_count_attempts_histogram
122pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
123pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 32;
124pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
125
126// Linear bucket constants for attempts_to_reach_success_migrated device_count_attempts_histogram
127pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
128pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 32;
129pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
130
131// Metric ID Constants
132// update_check_response_time_migrated
133pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_METRIC_ID: u32 = 101;
134// update_check_interval_migrated
135pub const UPDATE_CHECK_INTERVAL_MIGRATED_METRIC_ID: u32 = 102;
136// update_duration_migrated
137pub const UPDATE_DURATION_MIGRATED_METRIC_ID: u32 = 103;
138// update_duration_from_first_seen_migrated
139pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_METRIC_ID: u32 = 104;
140// update_check_failure_migrated
141pub const UPDATE_CHECK_FAILURE_MIGRATED_METRIC_ID: u32 = 105;
142// requests_per_check_migrated
143pub const REQUESTS_PER_CHECK_MIGRATED_METRIC_ID: u32 = 106;
144// attempts_to_successful_check_migrated
145pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_METRIC_ID: u32 = 107;
146// waited_for_reboot_duration_migrated
147pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_METRIC_ID: u32 = 108;
148// failed_boot_attempts_migrated
149pub const FAILED_BOOT_ATTEMPTS_MIGRATED_METRIC_ID: u32 = 109;
150// update_check_failure_count_migrated
151pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_METRIC_ID: u32 = 110;
152// update_check_performed_migrated
153pub const UPDATE_CHECK_PERFORMED_MIGRATED_METRIC_ID: u32 = 111;
154// omaha_event_lost_migrated
155pub const OMAHA_EVENT_LOST_MIGRATED_METRIC_ID: u32 = 112;
156// attempts_per_device_day_migrated
157pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_METRIC_ID: u32 = 113;
158// attempts_to_reach_success_migrated
159pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_METRIC_ID: u32 = 114;
160// update_check_opt_out_preference_migrated
161pub const UPDATE_CHECK_OPT_OUT_PREFERENCE_MIGRATED_METRIC_ID: u32 = 115;
162
163// Enum for update_check_response_time_migrated (Metric Dimension Result)
164#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
165pub enum UpdateCheckResponseTimeMigratedMetricDimensionResult {
166  Success = 0,
167  Failed = 1,
168}
169
170impl cobalt_client::traits::AsEventCode for UpdateCheckResponseTimeMigratedMetricDimensionResult {
171  fn as_event_code(&self) -> u32 {
172    *self as u32
173  }
174}
175
176// Alias for update_duration_migrated (Metric Dimension Result) which has the same event codes
177pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as UpdateDurationMigratedMetricDimensionResult;
178
179// Alias for requests_per_check_migrated (Metric Dimension Result) which has the same event codes
180pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as RequestsPerCheckMigratedMetricDimensionResult;
181
182// Alias for update_check_performed_migrated (Metric Dimension CheckResult) which has the same event codes
183pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as UpdateCheckPerformedMigratedMetricDimensionCheckResult;
184
185// Alias for attempts_per_device_day_migrated (Metric Dimension Result) which has the same event codes
186pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as AttemptsPerDeviceDayMigratedMetricDimensionResult;
187
188// Alias for attempts_to_reach_success_migrated (Metric Dimension Result) which has the same event codes
189pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as AttemptsToReachSuccessMigratedMetricDimensionResult;
190
191// Enum for update_check_interval_migrated (Metric Dimension Result)
192#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
193pub enum UpdateCheckIntervalMigratedMetricDimensionResult {
194  Success = 0,
195}
196
197impl cobalt_client::traits::AsEventCode for UpdateCheckIntervalMigratedMetricDimensionResult {
198  fn as_event_code(&self) -> u32 {
199    *self as u32
200  }
201}
202
203// Alias for update_duration_from_first_seen_migrated (Metric Dimension Result) which has the same event codes
204pub use UpdateCheckIntervalMigratedMetricDimensionResult as UpdateDurationFromFirstSeenMigratedMetricDimensionResult;
205
206// Alias for attempts_to_successful_check_migrated (Metric Dimension Result) which has the same event codes
207pub use UpdateCheckIntervalMigratedMetricDimensionResult as AttemptsToSuccessfulCheckMigratedMetricDimensionResult;
208
209// Alias for waited_for_reboot_duration_migrated (Metric Dimension Result) which has the same event codes
210pub use UpdateCheckIntervalMigratedMetricDimensionResult as WaitedForRebootDurationMigratedMetricDimensionResult;
211
212// Alias for failed_boot_attempts_migrated (Metric Dimension Result) which has the same event codes
213pub use UpdateCheckIntervalMigratedMetricDimensionResult as FailedBootAttemptsMigratedMetricDimensionResult;
214
215// Enum for update_check_interval_migrated (Metric Dimension Clock)
216#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
217pub enum UpdateCheckIntervalMigratedMetricDimensionClock {
218  Unreported = 0,
219  Wall = 1,
220  Monotonic = 2,
221}
222
223impl cobalt_client::traits::AsEventCode for UpdateCheckIntervalMigratedMetricDimensionClock {
224  fn as_event_code(&self) -> u32 {
225    *self as u32
226  }
227}
228
229// Enum for update_check_interval_migrated (Metric Dimension Initiator)
230#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
231pub enum UpdateCheckIntervalMigratedMetricDimensionInitiator {
232  Unreported = 0,
233  OnDemand = 1,
234  ScheduledTask = 2,
235}
236
237impl cobalt_client::traits::AsEventCode for UpdateCheckIntervalMigratedMetricDimensionInitiator {
238  fn as_event_code(&self) -> u32 {
239    *self as u32
240  }
241}
242
243// Enum for update_duration_from_first_seen_migrated (Metric Dimension Clock)
244#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
245pub enum UpdateDurationFromFirstSeenMigratedMetricDimensionClock {
246  Unreported = 0,
247  Monotonic = 1,
248  Wall = 2,
249}
250
251impl cobalt_client::traits::AsEventCode for UpdateDurationFromFirstSeenMigratedMetricDimensionClock {
252  fn as_event_code(&self) -> u32 {
253    *self as u32
254  }
255}
256
257// Enum for managed_os (Metric Dimension Reason)
258#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
259pub enum ManagedOsMetricDimensionReason {
260  Omaha = 0,
261  Network = 1,
262  Proxy = 2,
263  Configuration = 3,
264  Internal = 4,
265}
266
267impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionReason {
268  fn as_event_code(&self) -> u32 {
269    *self as u32
270  }
271}
272// Alias for update_check_failure_migrated (Metric Dimension Reason) which has the same event codes
273pub use ManagedOsMetricDimensionReason as UpdateCheckFailureMigratedMetricDimensionReason;
274
275// Alias for update_check_failure_count_migrated (Metric Dimension Reason) which has the same event codes
276pub use ManagedOsMetricDimensionReason as UpdateCheckFailureCountMigratedMetricDimensionReason;
277
278// Enum for update_check_performed_migrated (Metric Dimension Initiator)
279#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
280pub enum UpdateCheckPerformedMigratedMetricDimensionInitiator {
281  Unreported = 0,
282  ScheduledTask = 1,
283  OnDemand = 2,
284}
285
286impl cobalt_client::traits::AsEventCode for UpdateCheckPerformedMigratedMetricDimensionInitiator {
287  fn as_event_code(&self) -> u32 {
288    *self as u32
289  }
290}
291
292// Enum for managed_os (Metric Dimension Availability)
293#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
294pub enum ManagedOsMetricDimensionAvailability {
295  Unreported = 0,
296  UpdateAvailable = 1,
297  NoUpdateAvailable = 2,
298}
299
300impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionAvailability {
301  fn as_event_code(&self) -> u32 {
302    *self as u32
303  }
304}
305// Alias for update_check_performed_migrated (Metric Dimension Availability) which has the same event codes
306pub use ManagedOsMetricDimensionAvailability as UpdateCheckPerformedMigratedMetricDimensionAvailability;
307
308// Enum for managed_os (Metric Dimension UpdateResult)
309#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
310pub enum ManagedOsMetricDimensionUpdateResult {
311  Unreported = 0,
312  None = 1,
313  Success = 2,
314  Failed = 3,
315}
316
317impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionUpdateResult {
318  fn as_event_code(&self) -> u32 {
319    *self as u32
320  }
321}
322// Alias for update_check_performed_migrated (Metric Dimension UpdateResult) which has the same event codes
323pub use ManagedOsMetricDimensionUpdateResult as UpdateCheckPerformedMigratedMetricDimensionUpdateResult;
324
325// Enum for managed_os (Metric Dimension EventType)
326#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
327pub enum ManagedOsMetricDimensionEventType {
328  Unknown = 0,
329  DownloadComplete = 1,
330  InstallComplete = 2,
331  UpdateComplete = 3,
332  UpdateDownloadStarted = 4,
333  UpdateDownloadFinished = 5,
334  RebootedAfterUpdate = 6,
335}
336
337impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionEventType {
338  fn as_event_code(&self) -> u32 {
339    *self as u32
340  }
341}
342// Alias for omaha_event_lost_migrated (Metric Dimension EventType) which has the same event codes
343pub use ManagedOsMetricDimensionEventType as OmahaEventLostMigratedMetricDimensionEventType;
344
345// Enum for managed_os (Metric Dimension EventResult)
346#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
347pub enum ManagedOsMetricDimensionEventResult {
348  Unreported = 0,
349  Error = 1,
350  Success = 2,
351  SuccessAndRestartRequired = 3,
352  SuccessAndAppRestartRequired = 4,
353  Cancelled = 5,
354  ErrorInSystemInstaller = 6,
355  UpdateDeferred = 7,
356}
357
358impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionEventResult {
359  fn as_event_code(&self) -> u32 {
360    *self as u32
361  }
362}
363// Alias for omaha_event_lost_migrated (Metric Dimension EventResult) which has the same event codes
364pub use ManagedOsMetricDimensionEventResult as OmahaEventLostMigratedMetricDimensionEventResult;
365
366// Enum for managed_os (Metric Dimension Preference)
367#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
368pub enum ManagedOsMetricDimensionPreference {
369  Unknown = 0,
370  AllowAllUpdates = 1,
371  AllowOnlySecurityUpdates = 2,
372}
373
374impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionPreference {
375  fn as_event_code(&self) -> u32 {
376    *self as u32
377  }
378}
379// Alias for update_check_opt_out_preference_migrated (Metric Dimension Preference) which has the same event codes
380pub use ManagedOsMetricDimensionPreference as UpdateCheckOptOutPreferenceMigratedMetricDimensionPreference;
381
382#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
383pub struct UpdateCheckIntervalMigratedEventCodes {
384  pub result: UpdateCheckIntervalMigratedMetricDimensionResult,
385  pub clock: UpdateCheckIntervalMigratedMetricDimensionClock,
386  pub initiator: UpdateCheckIntervalMigratedMetricDimensionInitiator,
387}
388
389impl cobalt_client::traits::AsEventCodes for UpdateCheckIntervalMigratedEventCodes {
390  fn as_event_codes(&self) -> Vec<u32> {
391    use cobalt_client::traits::AsEventCode;
392    vec![
393      self.result.as_event_code(),
394      self.clock.as_event_code(),
395      self.initiator.as_event_code(),
396    ]
397  }
398}
399
400#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
401pub struct UpdateDurationFromFirstSeenMigratedEventCodes {
402  pub result: UpdateDurationFromFirstSeenMigratedMetricDimensionResult,
403  pub clock: UpdateDurationFromFirstSeenMigratedMetricDimensionClock,
404}
405
406impl cobalt_client::traits::AsEventCodes for UpdateDurationFromFirstSeenMigratedEventCodes {
407  fn as_event_codes(&self) -> Vec<u32> {
408    use cobalt_client::traits::AsEventCode;
409    vec![
410      self.result.as_event_code(),
411      self.clock.as_event_code(),
412    ]
413  }
414}
415
416#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
417pub struct UpdateCheckPerformedMigratedEventCodes {
418  pub check_result: UpdateCheckPerformedMigratedMetricDimensionCheckResult,
419  pub initiator: UpdateCheckPerformedMigratedMetricDimensionInitiator,
420  pub availability: UpdateCheckPerformedMigratedMetricDimensionAvailability,
421  pub update_result: UpdateCheckPerformedMigratedMetricDimensionUpdateResult,
422}
423
424impl cobalt_client::traits::AsEventCodes for UpdateCheckPerformedMigratedEventCodes {
425  fn as_event_codes(&self) -> Vec<u32> {
426    use cobalt_client::traits::AsEventCode;
427    vec![
428      self.check_result.as_event_code(),
429      self.initiator.as_event_code(),
430      self.availability.as_event_code(),
431      self.update_result.as_event_code(),
432    ]
433  }
434}
435
436#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
437pub struct OmahaEventLostMigratedEventCodes {
438  pub event_type: OmahaEventLostMigratedMetricDimensionEventType,
439  pub event_result: OmahaEventLostMigratedMetricDimensionEventResult,
440}
441
442impl cobalt_client::traits::AsEventCodes for OmahaEventLostMigratedEventCodes {
443  fn as_event_codes(&self) -> Vec<u32> {
444    use cobalt_client::traits::AsEventCode;
445    vec![
446      self.event_type.as_event_code(),
447      self.event_result.as_event_code(),
448    ]
449  }
450}
451