network_policy_metrics_registry/
network_policy_metrics_registry.rspub const CUSTOMER_NAME: &str = "fuchsia";
pub const CUSTOMER_ID: u32 = 1;
pub const PROJECT_NAME: &str = "network_policy";
pub const PROJECT_ID: u32 = 18;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_MINUTELY_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_MINUTELY_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 60;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_MINUTELY_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 60000000;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_15_MINUTELY_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_15_MINUTELY_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 24;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_15_MINUTELY_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 900000000;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_HOURLY_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_HOURLY_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 96;
pub const DURATION_METRIC_TEMPLATE_FLEETWIDE_HISTOGRAMS_HOURLY_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 3600000000;
pub const OCCURRENCE_METRIC_TEMPLATE_DEVICE_DAILY_SUM_HISTOGRAMS_INT_BUCKETS_FLOOR: i64 = 0;
pub const OCCURRENCE_METRIC_TEMPLATE_DEVICE_DAILY_SUM_HISTOGRAMS_INT_BUCKETS_NUM_BUCKETS: u32 = 100;
pub const OCCURRENCE_METRIC_TEMPLATE_DEVICE_DAILY_SUM_HISTOGRAMS_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const REACHABILITY_LOST_DEVICE_DAILY_SUM_HISTOGRAMS_INT_BUCKETS_FLOOR: i64 = 0;
pub const REACHABILITY_LOST_DEVICE_DAILY_SUM_HISTOGRAMS_INT_BUCKETS_NUM_BUCKETS: u32 = 100;
pub const REACHABILITY_LOST_DEVICE_DAILY_SUM_HISTOGRAMS_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_MINUTELY_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_MINUTELY_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 60;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_MINUTELY_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 60000000;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_15_MINUTELY_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_15_MINUTELY_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 24;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_15_MINUTELY_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 900000000;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_HOURLY_BUCKETS_INT_BUCKETS_FLOOR: i64 = 0;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_HOURLY_BUCKETS_INT_BUCKETS_NUM_BUCKETS: u32 = 96;
pub const REACHABILITY_LOST_DURATION_FLEETWIDE_HISTOGRAMS_HOURLY_BUCKETS_INT_BUCKETS_STEP_SIZE: u32 = 3600000000;
pub const DEVICE_COUNTS_METRIC_TEMPLATE_METRIC_ID: u32 = 1;
pub const DURATION_METRIC_TEMPLATE_METRIC_ID: u32 = 2;
pub const OCCURRENCE_METRIC_TEMPLATE_METRIC_ID: u32 = 3;
pub const REACHABILITY_GLOBAL_SNAPSHOT_DURATION_METRIC_ID: u32 = 100;
pub const REACHABILITY_STATE_UP_OR_ABOVE_DURATION_METRIC_ID: u32 = 101;
pub const REACHABILITY_GLOBAL_DEFAULT_ROUTE_DURATION_METRIC_ID: u32 = 102;
pub const REACHABILITY_GLOBAL_DEFAULT_ROUTE_OCCURRENCE_METRIC_ID: u32 = 103;
pub const REACHABILITY_LOST_METRIC_ID: u32 = 104;
pub const INTERNET_AVAILABLE_GATEWAY_LOST_METRIC_ID: u32 = 105;
pub const INTERNET_AVAILABLE_GATEWAY_NOT_PINGABLE_METRIC_ID: u32 = 106;
pub const INTERNET_AVAILABLE_GATEWAY_NOT_DISCOVERABLE_METRIC_ID: u32 = 107;
pub const REACHABILITY_LOST_DURATION_METRIC_ID: u32 = 108;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ReachabilityGlobalSnapshotDurationMetricDimensionRouteConfig {
Ipv4Only = 1,
Ipv6Only = 2,
Ipv4Ipv6 = 3,
}
impl cobalt_client::traits::AsEventCode for ReachabilityGlobalSnapshotDurationMetricDimensionRouteConfig {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use ReachabilityGlobalSnapshotDurationMetricDimensionRouteConfig as ReachabilityGlobalDefaultRouteDurationMetricDimensionDefaultRoute;
pub use ReachabilityGlobalSnapshotDurationMetricDimensionRouteConfig as ReachabilityGlobalDefaultRouteOccurrenceMetricDimensionDefaultRoute;
pub use ReachabilityGlobalSnapshotDurationMetricDimensionRouteConfig as ReachabilityLostMetricDimensionRouteConfig;
pub use ReachabilityGlobalSnapshotDurationMetricDimensionRouteConfig as ReachabilityLostDurationMetricDimensionRouteConfig;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum ReachabilityGlobalSnapshotDurationMetricDimensionInternetAvailable {
Yes = 1,
No = 2,
}
impl cobalt_client::traits::AsEventCode for ReachabilityGlobalSnapshotDurationMetricDimensionInternetAvailable {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use ReachabilityGlobalSnapshotDurationMetricDimensionInternetAvailable as ReachabilityGlobalSnapshotDurationMetricDimensionGatewayReachable;
pub use ReachabilityGlobalSnapshotDurationMetricDimensionInternetAvailable as ReachabilityGlobalSnapshotDurationMetricDimensionDnsActive;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum NetworkPolicyMetricDimensionHttpStatus {
Neither = 1,
HttpOnly = 2,
HttpsOnly = 3,
Both = 4,
}
impl cobalt_client::traits::AsEventCode for NetworkPolicyMetricDimensionHttpStatus {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use NetworkPolicyMetricDimensionHttpStatus as ReachabilityGlobalSnapshotDurationMetricDimensionHttpStatus;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct ReachabilityGlobalSnapshotDurationEventCodes {
pub route_config: ReachabilityGlobalSnapshotDurationMetricDimensionRouteConfig,
pub internet_available: ReachabilityGlobalSnapshotDurationMetricDimensionInternetAvailable,
pub gateway_reachable: ReachabilityGlobalSnapshotDurationMetricDimensionGatewayReachable,
pub dns_active: ReachabilityGlobalSnapshotDurationMetricDimensionDnsActive,
pub http_status: ReachabilityGlobalSnapshotDurationMetricDimensionHttpStatus,
}
impl cobalt_client::traits::AsEventCodes for ReachabilityGlobalSnapshotDurationEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.route_config.as_event_code(),
self.internet_available.as_event_code(),
self.gateway_reachable.as_event_code(),
self.dns_active.as_event_code(),
self.http_status.as_event_code(),
]
}
}