1pub 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
8pub 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
15pub 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
22pub 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
27pub 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
32pub 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
39pub 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
44pub 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
49pub 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
56pub 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
63pub 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
68pub 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
73pub 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
78pub 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
85pub 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
92pub 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
99pub 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
106pub 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
111pub 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
116pub 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
121pub 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
126pub 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
131pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_METRIC_ID: u32 = 101;
134pub const UPDATE_CHECK_INTERVAL_MIGRATED_METRIC_ID: u32 = 102;
136pub const UPDATE_DURATION_MIGRATED_METRIC_ID: u32 = 103;
138pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_METRIC_ID: u32 = 104;
140pub const UPDATE_CHECK_FAILURE_MIGRATED_METRIC_ID: u32 = 105;
142pub const REQUESTS_PER_CHECK_MIGRATED_METRIC_ID: u32 = 106;
144pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_METRIC_ID: u32 = 107;
146pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_METRIC_ID: u32 = 108;
148pub const FAILED_BOOT_ATTEMPTS_MIGRATED_METRIC_ID: u32 = 109;
150pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_METRIC_ID: u32 = 110;
152pub const UPDATE_CHECK_PERFORMED_MIGRATED_METRIC_ID: u32 = 111;
154pub const OMAHA_EVENT_LOST_MIGRATED_METRIC_ID: u32 = 112;
156pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_METRIC_ID: u32 = 113;
158pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_METRIC_ID: u32 = 114;
160pub const UPDATE_CHECK_OPT_OUT_PREFERENCE_MIGRATED_METRIC_ID: u32 = 115;
162
163#[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
176pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as UpdateDurationMigratedMetricDimensionResult;
178
179pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as RequestsPerCheckMigratedMetricDimensionResult;
181
182pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as UpdateCheckPerformedMigratedMetricDimensionCheckResult;
184
185pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as AttemptsPerDeviceDayMigratedMetricDimensionResult;
187
188pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as AttemptsToReachSuccessMigratedMetricDimensionResult;
190
191#[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
203pub use UpdateCheckIntervalMigratedMetricDimensionResult as UpdateDurationFromFirstSeenMigratedMetricDimensionResult;
205
206pub use UpdateCheckIntervalMigratedMetricDimensionResult as AttemptsToSuccessfulCheckMigratedMetricDimensionResult;
208
209pub use UpdateCheckIntervalMigratedMetricDimensionResult as WaitedForRebootDurationMigratedMetricDimensionResult;
211
212pub use UpdateCheckIntervalMigratedMetricDimensionResult as FailedBootAttemptsMigratedMetricDimensionResult;
214
215#[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#[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#[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#[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}
272pub use ManagedOsMetricDimensionReason as UpdateCheckFailureMigratedMetricDimensionReason;
274
275pub use ManagedOsMetricDimensionReason as UpdateCheckFailureCountMigratedMetricDimensionReason;
277
278#[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#[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}
305pub use ManagedOsMetricDimensionAvailability as UpdateCheckPerformedMigratedMetricDimensionAvailability;
307
308#[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}
322pub use ManagedOsMetricDimensionUpdateResult as UpdateCheckPerformedMigratedMetricDimensionUpdateResult;
324
325#[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}
342pub use ManagedOsMetricDimensionEventType as OmahaEventLostMigratedMetricDimensionEventType;
344
345#[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}
363pub use ManagedOsMetricDimensionEventResult as OmahaEventLostMigratedMetricDimensionEventResult;
365
366#[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}
379pub 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