pub const CUSTOMER_NAME: &str = "fuchsia";
pub const CUSTOMER_ID: u32 = 1;
pub const PROJECT_NAME: &str = "time";
pub const PROJECT_ID: u32 = 6;
pub const HTTPSDATE_POLL_LATENCY_MIGRATED_INT_BUCKETS_FLOOR: i64 = 0;
pub const HTTPSDATE_POLL_LATENCY_MIGRATED_INT_BUCKETS_NUM_BUCKETS: u32 = 50;
pub const HTTPSDATE_POLL_LATENCY_MIGRATED_INT_BUCKETS_STEP_SIZE: u32 = 20000;
pub const HTTPSDATE_BOUND_SIZE_MIGRATED_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const HTTPSDATE_BOUND_SIZE_MIGRATED_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 40;
pub const HTTPSDATE_BOUND_SIZE_MIGRATED_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 50000;
pub const TIMEKEEPER_SQRT_COVARIANCE_MIGRATED_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const TIMEKEEPER_SQRT_COVARIANCE_MIGRATED_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 200;
pub const TIMEKEEPER_SQRT_COVARIANCE_MIGRATED_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 5000;
pub const TIMEKEEPER_CLOCK_CORRECTION_MIGRATED_FINE_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const TIMEKEEPER_CLOCK_CORRECTION_MIGRATED_FINE_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 200;
pub const TIMEKEEPER_CLOCK_CORRECTION_MIGRATED_FINE_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 5000;
pub const TIMEKEEPER_CLOCK_CORRECTION_MIGRATED_COARSE_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 1000000;
pub const TIMEKEEPER_CLOCK_CORRECTION_MIGRATED_COARSE_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 59;
pub const TIMEKEEPER_CLOCK_CORRECTION_MIGRATED_COARSE_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1000000;
pub const TIMEKEEPER_MONITOR_DIFFERENCE_MIGRATED_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const TIMEKEEPER_MONITOR_DIFFERENCE_MIGRATED_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 100;
pub const TIMEKEEPER_MONITOR_DIFFERENCE_MIGRATED_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 20000;
pub const HTTPSDATE_POLL_OFFSET_MIGRATED_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const HTTPSDATE_POLL_OFFSET_MIGRATED_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 100;
pub const HTTPSDATE_POLL_OFFSET_MIGRATED_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 10000;
pub const TIMEKEEPER_FREQUENCY_ABS_ESTIMATE_MIGRATED_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 999800;
pub const TIMEKEEPER_FREQUENCY_ABS_ESTIMATE_MIGRATED_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 400;
pub const TIMEKEEPER_FREQUENCY_ABS_ESTIMATE_MIGRATED_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const TIMEKEEPER_LIFECYCLE_EVENTS_MIGRATED_METRIC_ID: u32 = 11;
pub const TIMEKEEPER_TIME_SOURCE_EVENTS_MIGRATED_METRIC_ID: u32 = 12;
pub const REAL_TIME_CLOCK_EVENTS_MIGRATED_METRIC_ID: u32 = 13;
pub const HTTPSDATE_POLL_LATENCY_MIGRATED_METRIC_ID: u32 = 14;
pub const HTTPSDATE_BOUND_SIZE_MIGRATED_METRIC_ID: u32 = 15;
pub const TIMEKEEPER_TRACK_EVENTS_MIGRATED_METRIC_ID: u32 = 16;
pub const TIMEKEEPER_SQRT_COVARIANCE_MIGRATED_METRIC_ID: u32 = 17;
pub const TIMEKEEPER_CLOCK_CORRECTION_MIGRATED_METRIC_ID: u32 = 18;
pub const TIMEKEEPER_MONITOR_DIFFERENCE_MIGRATED_METRIC_ID: u32 = 19;
pub const HTTPSDATE_POLL_OFFSET_MIGRATED_METRIC_ID: u32 = 20;
pub const TIMEKEEPER_FREQUENCY_ABS_ESTIMATE_MIGRATED_METRIC_ID: u32 = 24;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimekeeperLifecycleEventsMigratedMetricDimensionEventType {
InitializedBeforeUtcStart = 0,
InitializedAfterUtcStart = 1,
ReadFromStash = 2,
StartedUtcFromTimeSource = 3,
StartedUtcFromRtc = 4,
}
impl cobalt_client::traits::AsEventCode for TimekeeperLifecycleEventsMigratedMetricDimensionEventType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimekeeperTimeSourceEventsMigratedMetricDimensionEventType {
SampleRejectedStatusNotOk = 0,
SampleRejectedMonotonicInFuture = 1,
SampleRejectedMonotonicTooOld = 2,
SampleRejectedBeforeBackstop = 3,
SampleRejectedTooCloseToPrevious = 4,
LaunchFailed = 5,
RestartedStreamFailed = 6,
RestartedCallFailed = 7,
RestartedSampleTimeOut = 8,
}
impl cobalt_client::traits::AsEventCode for TimekeeperTimeSourceEventsMigratedMetricDimensionEventType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimeMetricDimensionRole {
Primary = 0,
Fallback = 1,
Gating = 2,
Monitor = 3,
}
impl cobalt_client::traits::AsEventCode for TimeMetricDimensionRole {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TimeMetricDimensionRole as TimekeeperTimeSourceEventsMigratedMetricDimensionRole;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimeMetricDimensionExperiment {
None = 0,
A = 1,
B = 2,
}
impl cobalt_client::traits::AsEventCode for TimeMetricDimensionExperiment {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TimeMetricDimensionExperiment as TimekeeperTimeSourceEventsMigratedMetricDimensionExperiment;
pub use TimeMetricDimensionExperiment as TimekeeperTrackEventsMigratedMetricDimensionExperiment;
pub use TimeMetricDimensionExperiment as TimekeeperSqrtCovarianceMigratedMetricDimensionExperiment;
pub use TimeMetricDimensionExperiment as TimekeeperClockCorrectionMigratedMetricDimensionExperiment;
pub use TimeMetricDimensionExperiment as TimekeeperMonitorDifferenceMigratedMetricDimensionExperiment;
pub use TimeMetricDimensionExperiment as TimekeeperFrequencyAbsEstimateMigratedMetricDimensionExperiment;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum RealTimeClockEventsMigratedMetricDimensionEventType {
NoDevices = 0,
MultipleDevices = 1,
ConnectionFailed = 2,
ReadFailed = 3,
ReadInvalidBeforeBackstop = 4,
ReadSucceeded = 5,
WriteFailed = 6,
WriteSucceeded = 7,
StartedFromBackstop = 8,
}
impl cobalt_client::traits::AsEventCode for RealTimeClockEventsMigratedMetricDimensionEventType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimeMetricDimensionPhase {
Initial = 0,
Converge = 1,
Maintain = 2,
}
impl cobalt_client::traits::AsEventCode for TimeMetricDimensionPhase {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TimeMetricDimensionPhase as HttpsdateBoundSizeMigratedMetricDimensionPhase;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimekeeperTrackEventsMigratedMetricDimensionEventType {
EstimatedOffsetUpdated = 0,
EstimatedFrequencyUpdated = 1,
CorrectionNotRequired = 2,
CorrectionByStep = 3,
CorrectionByNominalRateSlew = 4,
CorrectionByMaxDurationSlew = 5,
ClockUpdateTimeStep = 6,
ClockUpdateBeginSlew = 7,
ClockUpdateEndSlew = 8,
ClockUpdateReduceError = 9,
ClockUpdateIncreaseError = 10,
ClockUpdateChangeFrequency = 11,
FrequencyWindowDiscardedBeforeWindow = 12,
FrequencyWindowDiscardedSampleCount = 13,
FrequencyWindowDiscardedLeapSecond = 14,
MaxErrorBoundSet = 15,
}
impl cobalt_client::traits::AsEventCode for TimekeeperTrackEventsMigratedMetricDimensionEventType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimeMetricDimensionTrack {
Primary = 0,
Monitor = 1,
}
impl cobalt_client::traits::AsEventCode for TimeMetricDimensionTrack {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TimeMetricDimensionTrack as TimekeeperTrackEventsMigratedMetricDimensionTrack;
pub use TimeMetricDimensionTrack as TimekeeperSqrtCovarianceMigratedMetricDimensionTrack;
pub use TimeMetricDimensionTrack as TimekeeperClockCorrectionMigratedMetricDimensionTrack;
pub use TimeMetricDimensionTrack as TimekeeperFrequencyAbsEstimateMigratedMetricDimensionTrack;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimeMetricDimensionDirection {
Negative = 0,
Positive = 1,
}
impl cobalt_client::traits::AsEventCode for TimeMetricDimensionDirection {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TimeMetricDimensionDirection as TimekeeperClockCorrectionMigratedMetricDimensionDirection;
pub use TimeMetricDimensionDirection as TimekeeperMonitorDifferenceMigratedMetricDimensionDirection;
pub use TimeMetricDimensionDirection as HttpsdatePollOffsetMigratedMetricDimensionDirection;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimeMetricDimensionRttBucket {
Underflow = 0,
Overflow = 101,
}
impl cobalt_client::traits::AsEventCode for TimeMetricDimensionRttBucket {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TimeMetricDimensionRttBucket as HttpsdatePollOffsetMigratedMetricDimensionRttBucket;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum TimeMetricDimensionIteration {
First = 0,
Second = 1,
Subsequent = 2,
}
impl cobalt_client::traits::AsEventCode for TimeMetricDimensionIteration {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use TimeMetricDimensionIteration as TimekeeperFrequencyAbsEstimateMigratedMetricDimensionIteration;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct TimekeeperTimeSourceEventsMigratedEventCodes {
pub event_type: TimekeeperTimeSourceEventsMigratedMetricDimensionEventType,
pub role: TimekeeperTimeSourceEventsMigratedMetricDimensionRole,
pub experiment: TimekeeperTimeSourceEventsMigratedMetricDimensionExperiment,
}
impl cobalt_client::traits::AsEventCodes for TimekeeperTimeSourceEventsMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.event_type.as_event_code(),
self.role.as_event_code(),
self.experiment.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct TimekeeperTrackEventsMigratedEventCodes {
pub event_type: TimekeeperTrackEventsMigratedMetricDimensionEventType,
pub track: TimekeeperTrackEventsMigratedMetricDimensionTrack,
pub experiment: TimekeeperTrackEventsMigratedMetricDimensionExperiment,
}
impl cobalt_client::traits::AsEventCodes for TimekeeperTrackEventsMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.event_type.as_event_code(),
self.track.as_event_code(),
self.experiment.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct TimekeeperSqrtCovarianceMigratedEventCodes {
pub track: TimekeeperSqrtCovarianceMigratedMetricDimensionTrack,
pub experiment: TimekeeperSqrtCovarianceMigratedMetricDimensionExperiment,
}
impl cobalt_client::traits::AsEventCodes for TimekeeperSqrtCovarianceMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.track.as_event_code(),
self.experiment.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct TimekeeperClockCorrectionMigratedEventCodes {
pub direction: TimekeeperClockCorrectionMigratedMetricDimensionDirection,
pub track: TimekeeperClockCorrectionMigratedMetricDimensionTrack,
pub experiment: TimekeeperClockCorrectionMigratedMetricDimensionExperiment,
}
impl cobalt_client::traits::AsEventCodes for TimekeeperClockCorrectionMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.direction.as_event_code(),
self.track.as_event_code(),
self.experiment.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct TimekeeperMonitorDifferenceMigratedEventCodes {
pub direction: TimekeeperMonitorDifferenceMigratedMetricDimensionDirection,
pub experiment: TimekeeperMonitorDifferenceMigratedMetricDimensionExperiment,
}
impl cobalt_client::traits::AsEventCodes for TimekeeperMonitorDifferenceMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.direction.as_event_code(),
self.experiment.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct HttpsdatePollOffsetMigratedEventCodes {
pub rtt_bucket: HttpsdatePollOffsetMigratedMetricDimensionRttBucket,
pub direction: HttpsdatePollOffsetMigratedMetricDimensionDirection,
}
impl cobalt_client::traits::AsEventCodes for HttpsdatePollOffsetMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.rtt_bucket.as_event_code(),
self.direction.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct TimekeeperFrequencyAbsEstimateMigratedEventCodes {
pub iteration: TimekeeperFrequencyAbsEstimateMigratedMetricDimensionIteration,
pub track: TimekeeperFrequencyAbsEstimateMigratedMetricDimensionTrack,
pub experiment: TimekeeperFrequencyAbsEstimateMigratedMetricDimensionExperiment,
}
impl cobalt_client::traits::AsEventCodes for TimekeeperFrequencyAbsEstimateMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.iteration.as_event_code(),
self.track.as_event_code(),
self.experiment.as_event_code(),
]
}
}