pub const CUSTOMER_NAME: &str = "fuchsia";
pub const CUSTOMER_ID: u32 = 1;
pub const PROJECT_NAME: &str = "software_delivery";
pub const PROJECT_ID: u32 = 4247972873;
pub const CUP_WRITE_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const CUP_WRITE_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const CUP_WRITE_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const CUP_GETINFO_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const CUP_GETINFO_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const CUP_GETINFO_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const LOAD_PERSISTENT_EAGER_PACKAGE_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const LOAD_PERSISTENT_EAGER_PACKAGE_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const LOAD_PERSISTENT_EAGER_PACKAGE_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const OTA_SUCCESSFUL_COMMIT_BOOT_ATTEMPTS_COUNT_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const OTA_SUCCESSFUL_COMMIT_BOOT_ATTEMPTS_COUNT_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const OTA_SUCCESSFUL_COMMIT_BOOT_ATTEMPTS_COUNT_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const OTA_START_MIGRATED_OTA_START_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const OTA_START_MIGRATED_OTA_START_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 50;
pub const OTA_START_MIGRATED_OTA_START_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const OTA_RESULT_ATTEMPTS_MIGRATED_OTA_RESULT_ATTEMPTS_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const OTA_RESULT_ATTEMPTS_MIGRATED_OTA_RESULT_ATTEMPTS_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 50;
pub const OTA_RESULT_ATTEMPTS_MIGRATED_OTA_RESULT_ATTEMPTS_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const OTA_RESULT_DURATION_MIGRATED_OTA_RESULT_DURATION_HIST2_INT_BUCKETS_FLOOR: i64 = 0;
pub const OTA_RESULT_DURATION_MIGRATED_OTA_RESULT_DURATION_HIST2_INT_BUCKETS_NUM_BUCKETS: u32 = 30;
pub const OTA_RESULT_DURATION_MIGRATED_OTA_RESULT_DURATION_HIST2_INT_BUCKETS_INITIAL_STEP: u32 = 1000;
pub const OTA_RESULT_DURATION_MIGRATED_OTA_RESULT_DURATION_HIST2_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const FETCH_BLOB_MIGRATED_FETCH_BLOB_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const FETCH_BLOB_MIGRATED_FETCH_BLOB_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 50;
pub const FETCH_BLOB_MIGRATED_FETCH_BLOB_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const PKG_RESOLVER_STARTUP_DURATION_MIGRATED_PKG_RESOLVER_STARTUP_DURATION_HIST2_INT_BUCKETS_FLOOR: i64 = 0;
pub const PKG_RESOLVER_STARTUP_DURATION_MIGRATED_PKG_RESOLVER_STARTUP_DURATION_HIST2_INT_BUCKETS_NUM_BUCKETS: u32 = 30;
pub const PKG_RESOLVER_STARTUP_DURATION_MIGRATED_PKG_RESOLVER_STARTUP_DURATION_HIST2_INT_BUCKETS_INITIAL_STEP: u32 = 1000;
pub const PKG_RESOLVER_STARTUP_DURATION_MIGRATED_PKG_RESOLVER_STARTUP_DURATION_HIST2_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const REPOSITORY_MANAGER_LOAD_STATIC_CONFIGS_MIGRATED_REPOSITORY_MANAGER_LOAD_STATIC_CONFIGS_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const REPOSITORY_MANAGER_LOAD_STATIC_CONFIGS_MIGRATED_REPOSITORY_MANAGER_LOAD_STATIC_CONFIGS_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 30;
pub const REPOSITORY_MANAGER_LOAD_STATIC_CONFIGS_MIGRATED_REPOSITORY_MANAGER_LOAD_STATIC_CONFIGS_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const CREATE_TUF_CLIENT_MIGRATED_CREATE_TUF_CLIENT_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const CREATE_TUF_CLIENT_MIGRATED_CREATE_TUF_CLIENT_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 30;
pub const CREATE_TUF_CLIENT_MIGRATED_CREATE_TUF_CLIENT_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const UPDATE_TUF_CLIENT_MIGRATED_UPDATE_TUF_CLIENT_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_TUF_CLIENT_MIGRATED_UPDATE_TUF_CLIENT_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 50;
pub const UPDATE_TUF_CLIENT_MIGRATED_UPDATE_TUF_CLIENT_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const RESOLVE_DURATION_MIGRATED_RESOLVE_DURATION_HIST2_INT_BUCKETS_FLOOR: i64 = 0;
pub const RESOLVE_DURATION_MIGRATED_RESOLVE_DURATION_HIST2_INT_BUCKETS_NUM_BUCKETS: u32 = 30;
pub const RESOLVE_DURATION_MIGRATED_RESOLVE_DURATION_HIST2_INT_BUCKETS_INITIAL_STEP: u32 = 1000;
pub const RESOLVE_DURATION_MIGRATED_RESOLVE_DURATION_HIST2_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const PKG_CACHE_OPEN_MIGRATED_PKG_CACHE_OPEN_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const PKG_CACHE_OPEN_MIGRATED_PKG_CACHE_OPEN_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 1000;
pub const PKG_CACHE_OPEN_MIGRATED_PKG_CACHE_OPEN_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const MERKLE_FOR_URL_MIGRATED_MERKLE_FOR_URL_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const MERKLE_FOR_URL_MIGRATED_MERKLE_FOR_URL_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 1000;
pub const MERKLE_FOR_URL_MIGRATED_MERKLE_FOR_URL_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const UPDATE_CHANNEL_CONTROL_SET_TARGET_MIGRATED_UPDATE_CHANNEL_CONTROL_SET_TARGET_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_CHANNEL_CONTROL_SET_TARGET_MIGRATED_UPDATE_CHANNEL_CONTROL_SET_TARGET_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 100;
pub const UPDATE_CHANNEL_CONTROL_SET_TARGET_MIGRATED_UPDATE_CHANNEL_CONTROL_SET_TARGET_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const UPDATE_MANAGER_CONNECTION_MIGRATED_UPDATE_MANAGER_CONNECTION_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_MANAGER_CONNECTION_MIGRATED_UPDATE_MANAGER_CONNECTION_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 100;
pub const UPDATE_MANAGER_CONNECTION_MIGRATED_UPDATE_MANAGER_CONNECTION_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const UPDATE_MANAGER_CHECK_NOW_MIGRATED_UPDATE_MANAGER_CHECK_NOW_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const UPDATE_MANAGER_CHECK_NOW_MIGRATED_UPDATE_MANAGER_CHECK_NOW_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 100;
pub const UPDATE_MANAGER_CHECK_NOW_MIGRATED_UPDATE_MANAGER_CHECK_NOW_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const OTA_VERIFICATION_DURATION_MIGRATED_OTA_VERIFICATION_DURATION_HISTOGRAM2_INT_BUCKETS_FLOOR: i64 = 0;
pub const OTA_VERIFICATION_DURATION_MIGRATED_OTA_VERIFICATION_DURATION_HISTOGRAM2_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const OTA_VERIFICATION_DURATION_MIGRATED_OTA_VERIFICATION_DURATION_HISTOGRAM2_INT_BUCKETS_INITIAL_STEP: u32 = 10000;
pub const OTA_VERIFICATION_DURATION_MIGRATED_OTA_VERIFICATION_DURATION_HISTOGRAM2_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const OTA_VERIFICATION_FAILURE_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const OTA_VERIFICATION_FAILURE_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const OTA_VERIFICATION_FAILURE_MIGRATED_PER_DEVICE_LINEAR_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const RESOLVE_STATUS_MIGRATED_HIST_INT_BUCKETS_FLOOR: i64 = 0;
pub const RESOLVE_STATUS_MIGRATED_HIST_INT_BUCKETS_NUM_BUCKETS: u32 = 100;
pub const RESOLVE_STATUS_MIGRATED_HIST_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const CUP_WRITE_METRIC_ID: u32 = 25;
pub const CUP_GETINFO_METRIC_ID: u32 = 26;
pub const LOAD_PERSISTENT_EAGER_PACKAGE_METRIC_ID: u32 = 27;
pub const OTA_SUCCESSFUL_COMMIT_BOOT_ATTEMPTS_COUNT_METRIC_ID: u32 = 29;
pub const OTA_START_MIGRATED_METRIC_ID: u32 = 102;
pub const OTA_RESULT_ATTEMPTS_MIGRATED_METRIC_ID: u32 = 103;
pub const OTA_RESULT_DURATION_MIGRATED_METRIC_ID: u32 = 104;
pub const FETCH_BLOB_MIGRATED_METRIC_ID: u32 = 106;
pub const PKG_RESOLVER_STARTUP_DURATION_MIGRATED_METRIC_ID: u32 = 109;
pub const REPOSITORY_MANAGER_LOAD_STATIC_CONFIGS_MIGRATED_METRIC_ID: u32 = 110;
pub const CREATE_TUF_CLIENT_MIGRATED_METRIC_ID: u32 = 112;
pub const UPDATE_TUF_CLIENT_MIGRATED_METRIC_ID: u32 = 113;
pub const RESOLVE_DURATION_MIGRATED_METRIC_ID: u32 = 115;
pub const PKG_CACHE_OPEN_MIGRATED_METRIC_ID: u32 = 116;
pub const MERKLE_FOR_URL_MIGRATED_METRIC_ID: u32 = 117;
pub const UPDATE_CHANNEL_CONTROL_SET_TARGET_MIGRATED_METRIC_ID: u32 = 118;
pub const UPDATE_MANAGER_CONNECTION_MIGRATED_METRIC_ID: u32 = 119;
pub const UPDATE_MANAGER_CHECK_NOW_MIGRATED_METRIC_ID: u32 = 120;
pub const OTA_VERIFICATION_DURATION_MIGRATED_METRIC_ID: u32 = 121;
pub const OTA_VERIFICATION_FAILURE_MIGRATED_METRIC_ID: u32 = 122;
pub const RESOLVE_STATUS_MIGRATED_METRIC_ID: u32 = 123;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum CupWriteMetricDimensionResult {
Success = 1,
UnknownUrl = 2,
Verification = 3,
Download = 4,
Storage = 5,
}
impl cobalt_client::traits::AsEventCode for CupWriteMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum CupGetinfoMetricDimensionResult {
Success = 1,
UnknownUrl = 2,
Verification = 3,
NotAvailable = 4,
}
impl cobalt_client::traits::AsEventCode for CupGetinfoMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum LoadPersistentEagerPackageMetricDimensionResult {
Success = 1,
SuccessFallback = 2,
NotAvailable = 3,
Storage = 4,
Verification = 5,
Compatibility = 6,
Resolve = 7,
}
impl cobalt_client::traits::AsEventCode for LoadPersistentEagerPackageMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum SoftwareDeliveryMetricDimensionPaverReportedValue {
True = 1,
False = 2,
}
impl cobalt_client::traits::AsEventCode for SoftwareDeliveryMetricDimensionPaverReportedValue {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use SoftwareDeliveryMetricDimensionPaverReportedValue as OtaSuccessfulCommitBootAttemptsCountMetricDimensionPaverReportedValue;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum SoftwareDeliveryMetricDimensionInitiator {
AutomaticUpdateCheck = 0,
UserInitiatedCheck = 1,
}
impl cobalt_client::traits::AsEventCode for SoftwareDeliveryMetricDimensionInitiator {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use SoftwareDeliveryMetricDimensionInitiator as OtaStartMigratedMetricDimensionInitiator;
pub use SoftwareDeliveryMetricDimensionInitiator as OtaResultAttemptsMigratedMetricDimensionInitiator;
pub use SoftwareDeliveryMetricDimensionInitiator as OtaResultDurationMigratedMetricDimensionInitiator;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum SoftwareDeliveryMetricDimensionPhase {
Tufupdate = 1,
PackageDownload = 2,
ImageWrite = 3,
SuccessPendingReboot = 4,
Success = 5,
ImageCommit = 6,
}
impl cobalt_client::traits::AsEventCode for SoftwareDeliveryMetricDimensionPhase {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use SoftwareDeliveryMetricDimensionPhase as OtaResultAttemptsMigratedMetricDimensionPhase;
pub use SoftwareDeliveryMetricDimensionPhase as OtaResultDurationMigratedMetricDimensionPhase;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum SoftwareDeliveryMetricDimensionStatusCode {
Success = 0,
Error = 1,
ErrorStorage = 2,
ErrorStorageOutOfSpace = 3,
ErrorNetworking = 4,
ErrorUntrustedTufRepo = 5,
Canceled = 6,
}
impl cobalt_client::traits::AsEventCode for SoftwareDeliveryMetricDimensionStatusCode {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use SoftwareDeliveryMetricDimensionStatusCode as OtaResultAttemptsMigratedMetricDimensionStatusCode;
pub use SoftwareDeliveryMetricDimensionStatusCode as OtaResultDurationMigratedMetricDimensionStatusCode;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum FetchBlobMigratedMetricDimensionResult {
Success = 0,
CreateBlob = 1,
BadHttpStatus = 2,
NoMirrors = 3,
ContentLengthMismatch = 4,
UnknownLength = 5,
BlobTooSmall = 6,
BlobTooLarge = 7,
Truncate = 8,
Write = 9,
Hyper = 10,
Http = 11,
BlobUrl = 12,
FidlError = 13,
IoError = 14,
LocalMirror = 15,
NoBlobSource = 16,
ConflictingBlobSources = 17,
BlobHeaderDeadlineExceeded = 18,
BlobBodyDeadlineExceeded = 19,
HttpBadRequest = 20,
HttpUnauthorized = 21,
HttpForbidden = 22,
HttpNotFound = 23,
HttpMethodNotAllowed = 24,
HttpRequestTimeout = 25,
HttpPreconditionFailed = 26,
HttpRangeNotSatisfiable = 27,
HttpTooManyRequests = 28,
HttpInternalServerError = 29,
HttpBadGateway = 30,
HttpServiceUnavailable = 31,
HttpGatewayTimeout = 32,
Http1xx = 33,
Http2xx = 34,
Http3xx = 35,
Http4xx = 36,
Http5xx = 37,
ExpectedHttpStatus206 = 38,
MissingContentRangeHeader = 39,
MalformedContentRangeHeader = 40,
InvalidContentRangeHeader = 41,
ExceededResumptionAttemptLimit = 42,
ContentLengthContentRangeMismatch = 43,
BlobWritten = 44,
}
impl cobalt_client::traits::AsEventCode for FetchBlobMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum SoftwareDeliveryMetricDimensionResumed {
Unset = 0,
False = 1,
True = 2,
}
impl cobalt_client::traits::AsEventCode for SoftwareDeliveryMetricDimensionResumed {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use SoftwareDeliveryMetricDimensionResumed as FetchBlobMigratedMetricDimensionResumed;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum RepositoryManagerLoadStaticConfigsMigratedMetricDimensionResult {
Success = 0,
Io = 1,
Parse = 2,
Overridden = 3,
}
impl cobalt_client::traits::AsEventCode for RepositoryManagerLoadStaticConfigsMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum CreateTufClientMigratedMetricDimensionResult {
Success = 0,
BadSignature = 1,
Encoding = 2,
ExpiredMetadata = 3,
IllegalArgument = 4,
MissingMetadata = 5,
NoSupportedHashAlgorithm = 6,
NotFound = 7,
Opaque = 8,
Programming = 9,
TargetUnavailable = 10,
UnknownHashAlgorithm = 11,
UnknownKeyType = 12,
VerificationFailure = 13,
Http = 14,
Hyper = 15,
DeadlineExceeded = 16,
HttpBadRequest = 17,
HttpUnauthorized = 18,
HttpForbidden = 19,
HttpNotFound = 20,
HttpMethodNotAllowed = 21,
HttpRequestTimeout = 22,
HttpPreconditionFailed = 23,
HttpRangeNotSatisfiable = 24,
HttpTooManyRequests = 25,
HttpInternalServerError = 26,
HttpBadGateway = 27,
HttpServiceUnavailable = 28,
HttpGatewayTimeout = 29,
Http1xx = 30,
Http2xx = 31,
Http3xx = 32,
Http4xx = 33,
Http5xx = 34,
UnexpectedTufErrorVariant = 32767,
}
impl cobalt_client::traits::AsEventCode for CreateTufClientMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use CreateTufClientMigratedMetricDimensionResult as UpdateTufClientMigratedMetricDimensionResult;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ResolveDurationMigratedMetricDimensionResult {
Success = 0,
Failure = 1,
}
impl cobalt_client::traits::AsEventCode for ResolveDurationMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum SoftwareDeliveryMetricDimensionResolverType {
Regular = 0,
Font = 1,
}
impl cobalt_client::traits::AsEventCode for SoftwareDeliveryMetricDimensionResolverType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use SoftwareDeliveryMetricDimensionResolverType as ResolveDurationMigratedMetricDimensionResolverType;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum PkgCacheOpenMigratedMetricDimensionResult {
Success = 0,
NotFound = 1,
Io = 2,
}
impl cobalt_client::traits::AsEventCode for PkgCacheOpenMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum MerkleForUrlMigratedMetricDimensionResult {
Success = 0,
Fidl = 1,
NotFound = 2,
UnexpectedStatus = 3,
TufError = 4,
ParseError = 5,
BlobTooLarge = 6,
InvalidTargetPath = 7,
NoCustomMetadata = 8,
SerdeError = 9,
}
impl cobalt_client::traits::AsEventCode for MerkleForUrlMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum UpdateChannelControlSetTargetMigratedMetricDimensionResult {
Success = 0,
}
impl cobalt_client::traits::AsEventCode for UpdateChannelControlSetTargetMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use UpdateChannelControlSetTargetMigratedMetricDimensionResult as UpdateManagerConnectionMigratedMetricDimensionResult;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum UpdateManagerCheckNowMigratedMetricDimensionResult {
Success = 0,
Internal = 1,
InvalidOptions = 2,
AlreadyInProgress = 3,
Throttled = 4,
}
impl cobalt_client::traits::AsEventCode for UpdateManagerCheckNowMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum OtaVerificationDurationMigratedMetricDimensionResult {
Success = 0,
FailureBlobfs = 1,
FailureNetstack = 2,
}
impl cobalt_client::traits::AsEventCode for OtaVerificationDurationMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use OtaVerificationDurationMigratedMetricDimensionResult as OtaVerificationFailureMigratedMetricDimensionResult;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum SoftwareDeliveryMetricDimensionReason {
Unreported = 0,
Verify = 1,
Fidl = 2,
Timeout = 3,
}
impl cobalt_client::traits::AsEventCode for SoftwareDeliveryMetricDimensionReason {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use SoftwareDeliveryMetricDimensionReason as OtaVerificationFailureMigratedMetricDimensionReason;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ResolveStatusMigratedMetricDimensionResult {
Unset = 0,
Success = 1,
Internal = 2,
AccessDenied = 3,
Io = 4,
BlobNotFound = 5,
PackageNotFound = 6,
RepoNotFound = 7,
NoSpace = 8,
UnavailableBlob = 9,
UnavailableRepoMetadata = 10,
InvalidUrl = 11,
InvalidContext = 12,
}
impl cobalt_client::traits::AsEventCode for ResolveStatusMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct OtaResultAttemptsMigratedEventCodes {
pub initiator: OtaResultAttemptsMigratedMetricDimensionInitiator,
pub phase: OtaResultAttemptsMigratedMetricDimensionPhase,
pub status_code: OtaResultAttemptsMigratedMetricDimensionStatusCode,
}
impl cobalt_client::traits::AsEventCodes for OtaResultAttemptsMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.initiator.as_event_code(),
self.phase.as_event_code(),
self.status_code.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct OtaResultDurationMigratedEventCodes {
pub initiator: OtaResultDurationMigratedMetricDimensionInitiator,
pub phase: OtaResultDurationMigratedMetricDimensionPhase,
pub status_code: OtaResultDurationMigratedMetricDimensionStatusCode,
}
impl cobalt_client::traits::AsEventCodes for OtaResultDurationMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.initiator.as_event_code(),
self.phase.as_event_code(),
self.status_code.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct FetchBlobMigratedEventCodes {
pub result: FetchBlobMigratedMetricDimensionResult,
pub resumed: FetchBlobMigratedMetricDimensionResumed,
}
impl cobalt_client::traits::AsEventCodes for FetchBlobMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.result.as_event_code(),
self.resumed.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct ResolveDurationMigratedEventCodes {
pub result: ResolveDurationMigratedMetricDimensionResult,
pub resolver_type: ResolveDurationMigratedMetricDimensionResolverType,
}
impl cobalt_client::traits::AsEventCodes for ResolveDurationMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.result.as_event_code(),
self.resolver_type.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct OtaVerificationFailureMigratedEventCodes {
pub result: OtaVerificationFailureMigratedMetricDimensionResult,
pub reason: OtaVerificationFailureMigratedMetricDimensionReason,
}
impl cobalt_client::traits::AsEventCodes for OtaVerificationFailureMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.result.as_event_code(),
self.reason.as_event_code(),
]
}
}