pub const CUSTOMER_NAME: &str = "fuchsia";
pub const CUSTOMER_ID: u32 = 1;
pub const PROJECT_NAME: &str = "managed_os";
pub const PROJECT_ID: u32 = 285903809;
pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_UPDATE_CHECK_RESPONSE_TIMING_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_UPDATE_CHECK_INTERVAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 120;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 60;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_10MIN_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_10MIN_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 144;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_LINEAR_HISTOGRAM_10MIN_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 600;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_10SEC_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_10SEC_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 90;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_10SEC_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 10;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 120;
pub const UPDATE_DURATION_MIGRATED_UPDATE_DURATION_HISTOGRAM_1MIN_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 60;
pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_UPDATE_DURATION_FROM_FIRST_SEEN_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MIN_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MIN_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MIN_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MAX_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MAX_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const REQUESTS_PER_CHECK_MIGRATED_REQUESTS_PER_CHECK_PER_DEVICE_MAX_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_ATTEMPTS_TO_SUCCESSFUL_CHECK_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_WAITED_FOR_REBOOT_DURATION_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const FAILED_BOOT_ATTEMPTS_MIGRATED_FAILED_BOOT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_EXPONENTIAL_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 64;
pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const UPDATE_CHECK_PERFORMED_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_CHECK_PERFORMED_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 64;
pub const UPDATE_CHECK_PERFORMED_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const OMAHA_EVENT_LOST_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const OMAHA_EVENT_LOST_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 64;
pub const OMAHA_EVENT_LOST_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 32;
pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1;
pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 32;
pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_DEVICE_COUNT_ATTEMPTS_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const UPDATE_CHECK_RESPONSE_TIME_MIGRATED_METRIC_ID: u32 = 101;
pub const UPDATE_CHECK_INTERVAL_MIGRATED_METRIC_ID: u32 = 102;
pub const UPDATE_DURATION_MIGRATED_METRIC_ID: u32 = 103;
pub const UPDATE_DURATION_FROM_FIRST_SEEN_MIGRATED_METRIC_ID: u32 = 104;
pub const UPDATE_CHECK_FAILURE_MIGRATED_METRIC_ID: u32 = 105;
pub const REQUESTS_PER_CHECK_MIGRATED_METRIC_ID: u32 = 106;
pub const ATTEMPTS_TO_SUCCESSFUL_CHECK_MIGRATED_METRIC_ID: u32 = 107;
pub const WAITED_FOR_REBOOT_DURATION_MIGRATED_METRIC_ID: u32 = 108;
pub const FAILED_BOOT_ATTEMPTS_MIGRATED_METRIC_ID: u32 = 109;
pub const UPDATE_CHECK_FAILURE_COUNT_MIGRATED_METRIC_ID: u32 = 110;
pub const UPDATE_CHECK_PERFORMED_MIGRATED_METRIC_ID: u32 = 111;
pub const OMAHA_EVENT_LOST_MIGRATED_METRIC_ID: u32 = 112;
pub const ATTEMPTS_PER_DEVICE_DAY_MIGRATED_METRIC_ID: u32 = 113;
pub const ATTEMPTS_TO_REACH_SUCCESS_MIGRATED_METRIC_ID: u32 = 114;
pub const UPDATE_CHECK_OPT_OUT_PREFERENCE_MIGRATED_METRIC_ID: u32 = 115;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum UpdateCheckResponseTimeMigratedMetricDimensionResult {
Success = 0,
Failed = 1,
}
impl cobalt_client::traits::AsEventCode for UpdateCheckResponseTimeMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as UpdateDurationMigratedMetricDimensionResult;
pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as RequestsPerCheckMigratedMetricDimensionResult;
pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as UpdateCheckPerformedMigratedMetricDimensionCheckResult;
pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as AttemptsPerDeviceDayMigratedMetricDimensionResult;
pub use UpdateCheckResponseTimeMigratedMetricDimensionResult as AttemptsToReachSuccessMigratedMetricDimensionResult;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum UpdateCheckIntervalMigratedMetricDimensionResult {
Success = 0,
}
impl cobalt_client::traits::AsEventCode for UpdateCheckIntervalMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use UpdateCheckIntervalMigratedMetricDimensionResult as UpdateDurationFromFirstSeenMigratedMetricDimensionResult;
pub use UpdateCheckIntervalMigratedMetricDimensionResult as AttemptsToSuccessfulCheckMigratedMetricDimensionResult;
pub use UpdateCheckIntervalMigratedMetricDimensionResult as WaitedForRebootDurationMigratedMetricDimensionResult;
pub use UpdateCheckIntervalMigratedMetricDimensionResult as FailedBootAttemptsMigratedMetricDimensionResult;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum UpdateCheckIntervalMigratedMetricDimensionClock {
Unreported = 0,
Wall = 1,
Monotonic = 2,
}
impl cobalt_client::traits::AsEventCode for UpdateCheckIntervalMigratedMetricDimensionClock {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum UpdateCheckIntervalMigratedMetricDimensionInitiator {
Unreported = 0,
OnDemand = 1,
ScheduledTask = 2,
}
impl cobalt_client::traits::AsEventCode for UpdateCheckIntervalMigratedMetricDimensionInitiator {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum UpdateDurationFromFirstSeenMigratedMetricDimensionClock {
Unreported = 0,
Monotonic = 1,
Wall = 2,
}
impl cobalt_client::traits::AsEventCode for UpdateDurationFromFirstSeenMigratedMetricDimensionClock {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ManagedOsMetricDimensionReason {
Omaha = 0,
Network = 1,
Proxy = 2,
Configuration = 3,
Internal = 4,
}
impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionReason {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use ManagedOsMetricDimensionReason as UpdateCheckFailureMigratedMetricDimensionReason;
pub use ManagedOsMetricDimensionReason as UpdateCheckFailureCountMigratedMetricDimensionReason;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum UpdateCheckPerformedMigratedMetricDimensionInitiator {
Unreported = 0,
ScheduledTask = 1,
OnDemand = 2,
}
impl cobalt_client::traits::AsEventCode for UpdateCheckPerformedMigratedMetricDimensionInitiator {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ManagedOsMetricDimensionAvailability {
Unreported = 0,
UpdateAvailable = 1,
NoUpdateAvailable = 2,
}
impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionAvailability {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use ManagedOsMetricDimensionAvailability as UpdateCheckPerformedMigratedMetricDimensionAvailability;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ManagedOsMetricDimensionUpdateResult {
Unreported = 0,
None = 1,
Success = 2,
Failed = 3,
}
impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionUpdateResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use ManagedOsMetricDimensionUpdateResult as UpdateCheckPerformedMigratedMetricDimensionUpdateResult;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ManagedOsMetricDimensionEventType {
Unknown = 0,
DownloadComplete = 1,
InstallComplete = 2,
UpdateComplete = 3,
UpdateDownloadStarted = 4,
UpdateDownloadFinished = 5,
RebootedAfterUpdate = 6,
}
impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionEventType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use ManagedOsMetricDimensionEventType as OmahaEventLostMigratedMetricDimensionEventType;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ManagedOsMetricDimensionEventResult {
Unreported = 0,
Error = 1,
Success = 2,
SuccessAndRestartRequired = 3,
SuccessAndAppRestartRequired = 4,
Cancelled = 5,
ErrorInSystemInstaller = 6,
UpdateDeferred = 7,
}
impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionEventResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use ManagedOsMetricDimensionEventResult as OmahaEventLostMigratedMetricDimensionEventResult;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ManagedOsMetricDimensionPreference {
Unknown = 0,
AllowAllUpdates = 1,
AllowOnlySecurityUpdates = 2,
}
impl cobalt_client::traits::AsEventCode for ManagedOsMetricDimensionPreference {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use ManagedOsMetricDimensionPreference as UpdateCheckOptOutPreferenceMigratedMetricDimensionPreference;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct UpdateCheckIntervalMigratedEventCodes {
pub result: UpdateCheckIntervalMigratedMetricDimensionResult,
pub clock: UpdateCheckIntervalMigratedMetricDimensionClock,
pub initiator: UpdateCheckIntervalMigratedMetricDimensionInitiator,
}
impl cobalt_client::traits::AsEventCodes for UpdateCheckIntervalMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.result.as_event_code(),
self.clock.as_event_code(),
self.initiator.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct UpdateDurationFromFirstSeenMigratedEventCodes {
pub result: UpdateDurationFromFirstSeenMigratedMetricDimensionResult,
pub clock: UpdateDurationFromFirstSeenMigratedMetricDimensionClock,
}
impl cobalt_client::traits::AsEventCodes for UpdateDurationFromFirstSeenMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.result.as_event_code(),
self.clock.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct UpdateCheckPerformedMigratedEventCodes {
pub check_result: UpdateCheckPerformedMigratedMetricDimensionCheckResult,
pub initiator: UpdateCheckPerformedMigratedMetricDimensionInitiator,
pub availability: UpdateCheckPerformedMigratedMetricDimensionAvailability,
pub update_result: UpdateCheckPerformedMigratedMetricDimensionUpdateResult,
}
impl cobalt_client::traits::AsEventCodes for UpdateCheckPerformedMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.check_result.as_event_code(),
self.initiator.as_event_code(),
self.availability.as_event_code(),
self.update_result.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct OmahaEventLostMigratedEventCodes {
pub event_type: OmahaEventLostMigratedMetricDimensionEventType,
pub event_result: OmahaEventLostMigratedMetricDimensionEventResult,
}
impl cobalt_client::traits::AsEventCodes for OmahaEventLostMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.event_type.as_event_code(),
self.event_result.as_event_code(),
]
}
}