networking_metrics_registry/
networking_metrics_registry.rspub mod networking_metrics_registry {
pub const CUSTOMER_NAME: &str = "fuchsia";
pub const CUSTOMER_ID: u32 = 1;
pub const PROJECT_NAME: &str = "networking";
pub const PROJECT_ID: u32 = 1;
pub const SOCKET_COUNT_MAX_SOCKET_COUNT_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const SOCKET_COUNT_MAX_SOCKET_COUNT_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const SOCKET_COUNT_MAX_SOCKET_COUNT_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const SOCKET_COUNT_MAX_SOCKET_COUNT_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const SOCKET_COUNT_MAX_SOCKET_COUNT_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const SOCKET_COUNT_MAX_SOCKET_COUNT_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const SOCKET_COUNT_MAX_SOCKET_COUNT_PER_DEVICE_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const SOCKET_COUNT_MAX_SOCKET_COUNT_PER_DEVICE_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_TCP_CONNECTIONS_ESTABLISHED_TOTAL_INT_BUCKETS_FLOOR: i64 = 0;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_TCP_CONNECTIONS_ESTABLISHED_TOTAL_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_TCP_CONNECTIONS_ESTABLISHED_TOTAL_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_TCP_CONNECTIONS_ESTABLISHED_TOTAL_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_TCP_CONNECTIONS_ESTABLISHED_TOTAL_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_TCP_CONNECTIONS_ESTABLISHED_TOTAL_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_TCP_CONNECTIONS_ESTABLISHED_TOTAL_PER_DEVICE_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_TCP_CONNECTIONS_ESTABLISHED_TOTAL_PER_DEVICE_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const SOCKETS_CREATED_SOCKETS_CREATED_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const SOCKETS_CREATED_SOCKETS_CREATED_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const SOCKETS_CREATED_SOCKETS_CREATED_PER_DEVICE_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const SOCKETS_CREATED_SOCKETS_CREATED_PER_DEVICE_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const SOCKETS_DESTROYED_SOCKETS_DESTROYED_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const SOCKETS_DESTROYED_SOCKETS_DESTROYED_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const SOCKETS_DESTROYED_SOCKETS_DESTROYED_PER_DEVICE_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const SOCKETS_DESTROYED_SOCKETS_DESTROYED_PER_DEVICE_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const PACKETS_SENT_PACKETS_SENT_INT_BUCKETS_FLOOR: i64 = 0;
pub const PACKETS_SENT_PACKETS_SENT_INT_BUCKETS_NUM_BUCKETS: u32 = 16;
pub const PACKETS_SENT_PACKETS_SENT_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const PACKETS_SENT_PACKETS_SENT_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const PACKETS_RECEIVED_PACKETS_RECEIVED_INT_BUCKETS_FLOOR: i64 = 0;
pub const PACKETS_RECEIVED_PACKETS_RECEIVED_INT_BUCKETS_NUM_BUCKETS: u32 = 16;
pub const PACKETS_RECEIVED_PACKETS_RECEIVED_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const PACKETS_RECEIVED_PACKETS_RECEIVED_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const BYTES_SENT_BYTES_SENT_INT_BUCKETS_FLOOR: i64 = 0;
pub const BYTES_SENT_BYTES_SENT_INT_BUCKETS_NUM_BUCKETS: u32 = 16;
pub const BYTES_SENT_BYTES_SENT_INT_BUCKETS_INITIAL_STEP: u32 = 100;
pub const BYTES_SENT_BYTES_SENT_INT_BUCKETS_STEP_MULTIPLIER: u32 = 10;
pub const BYTES_RECEIVED_BYTES_RECEIVED_INT_BUCKETS_FLOOR: i64 = 0;
pub const BYTES_RECEIVED_BYTES_RECEIVED_INT_BUCKETS_NUM_BUCKETS: u32 = 16;
pub const BYTES_RECEIVED_BYTES_RECEIVED_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const BYTES_RECEIVED_BYTES_RECEIVED_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const TCP_CONNECTIONS_CLOSED_TCP_CONNECTIONS_CLOSED_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const TCP_CONNECTIONS_CLOSED_TCP_CONNECTIONS_CLOSED_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const TCP_CONNECTIONS_CLOSED_TCP_CONNECTIONS_CLOSED_PER_DEVICE_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const TCP_CONNECTIONS_CLOSED_TCP_CONNECTIONS_CLOSED_PER_DEVICE_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const TCP_CONNECTIONS_RESET_TCP_CONNECTIONS_RESET_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const TCP_CONNECTIONS_RESET_TCP_CONNECTIONS_RESET_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const TCP_CONNECTIONS_RESET_TCP_CONNECTIONS_RESET_PER_DEVICE_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const TCP_CONNECTIONS_RESET_TCP_CONNECTIONS_RESET_PER_DEVICE_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const TCP_CONNECTIONS_TIMED_OUT_TCP_CONNECTIONS_TIMED_OUT_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const TCP_CONNECTIONS_TIMED_OUT_TCP_CONNECTIONS_TIMED_OUT_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const TCP_CONNECTIONS_TIMED_OUT_TCP_CONNECTIONS_TIMED_OUT_PER_DEVICE_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 25;
pub const TCP_CONNECTIONS_TIMED_OUT_TCP_CONNECTIONS_TIMED_OUT_PER_DEVICE_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const SOCKET_OPTION_OPERATION_MAX_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 1;
pub const SOCKET_OPTION_OPERATION_MAX_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 8;
pub const SOCKET_OPTION_OPERATION_MAX_PER_DEVICE_MAX_INT_BUCKETS_INITIAL_STEP: u32 = 4;
pub const SOCKET_OPTION_OPERATION_MAX_PER_DEVICE_MAX_INT_BUCKETS_STEP_MULTIPLIER: u32 = 4;
pub const NEED_MORE_FRAGMENTS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_FLOOR: i64 = 0;
pub const NEED_MORE_FRAGMENTS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_NUM_BUCKETS: u32 = 16;
pub const NEED_MORE_FRAGMENTS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const NEED_MORE_FRAGMENTS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const CONNTRACK_NUM_CONNECTIONS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_FLOOR: i64 = 0;
pub const CONNTRACK_NUM_CONNECTIONS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_NUM_BUCKETS: u32 = 16;
pub const CONNTRACK_NUM_CONNECTIONS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const CONNTRACK_NUM_CONNECTIONS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const CONNTRACK_TABLE_LIMIT_HITS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_FLOOR: i64 = 0;
pub const CONNTRACK_TABLE_LIMIT_HITS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_NUM_BUCKETS: u32 = 16;
pub const CONNTRACK_TABLE_LIMIT_HITS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const CONNTRACK_TABLE_LIMIT_HITS_PER_DEVICE_HISTOGRAMS_1DAY_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const CONNTRACK_TABLE_LIMIT_DROPS_DEVICE_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const CONNTRACK_TABLE_LIMIT_DROPS_DEVICE_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 16;
pub const CONNTRACK_TABLE_LIMIT_DROPS_DEVICE_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 10;
pub const CONNTRACK_TABLE_LIMIT_DROPS_DEVICE_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const SOCKET_COUNT_MAX_METRIC_ID: u32 = 15;
pub const TCP_CONNECTIONS_ESTABLISHED_TOTAL_METRIC_ID: u32 = 22;
pub const DHCP_V6_CONFIGURATION_METRIC_ID: u32 = 26;
pub const SOCKETS_CREATED_METRIC_ID: u32 = 28;
pub const SOCKETS_DESTROYED_METRIC_ID: u32 = 29;
pub const PACKETS_SENT_METRIC_ID: u32 = 30;
pub const PACKETS_RECEIVED_METRIC_ID: u32 = 31;
pub const BYTES_SENT_METRIC_ID: u32 = 32;
pub const BYTES_RECEIVED_METRIC_ID: u32 = 33;
pub const TCP_CONNECTIONS_CLOSED_METRIC_ID: u32 = 34;
pub const TCP_CONNECTIONS_RESET_METRIC_ID: u32 = 35;
pub const TCP_CONNECTIONS_TIMED_OUT_METRIC_ID: u32 = 36;
pub const AVAILABLE_DYNAMIC_IPV6_ADDRESS_CONFIG_METRIC_ID: u32 = 37;
pub const SOCKET_OPTION_OPERATION_MAX_METRIC_ID: u32 = 38;
pub const NEED_MORE_FRAGMENTS_METRIC_ID: u32 = 39;
pub const CONNTRACK_NUM_CONNECTIONS_METRIC_ID: u32 = 40;
pub const CONNTRACK_TABLE_LIMIT_HITS_METRIC_ID: u32 = 41;
pub const CONNTRACK_TABLE_LIMIT_DROPS_METRIC_ID: u32 = 42;
pub const STACK_MIGRATION_USER_SETTING_METRIC_ID: u32 = 500;
pub const STACK_MIGRATION_AUTOMATED_SETTING_METRIC_ID: u32 = 501;
pub const STACK_MIGRATION_CURRENT_BOOT_METRIC_ID: u32 = 502;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum NetworkingMetricDimensionConfigurationFromNdpra {
NoConfiguration = 0,
ManagedAddress = 1,
OtherConfigurations = 2,
}
impl cobalt_client::traits::AsEventCode for NetworkingMetricDimensionConfigurationFromNdpra {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use NetworkingMetricDimensionConfigurationFromNdpra as DhcpV6ConfigurationMetricDimensionConfigurationFromNdpra;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum NetworkingMetricDimensionDynamicIpv6AddressSource {
NoGlobalSlaacOrDhcpv6ManagedAddress = 0,
GlobalSlaacOnly = 1,
Dhcpv6ManagedAddressOnly = 2,
GlobalSlaacAndDhcpv6ManagedAddress = 3,
}
impl cobalt_client::traits::AsEventCode for NetworkingMetricDimensionDynamicIpv6AddressSource {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use NetworkingMetricDimensionDynamicIpv6AddressSource as AvailableDynamicIpv6AddressConfigMetricDimensionDynamicIpv6AddressSource;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum NetworkingMetricDimensionOperation {
Unknown = 0,
Get = 1,
Set = 2,
}
impl cobalt_client::traits::AsEventCode for NetworkingMetricDimensionOperation {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use NetworkingMetricDimensionOperation as SocketOptionOperationMaxMetricDimensionOperation;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum NetworkingMetricDimensionSocketOption {
Unknown = 0,
AcceptConn = 1,
AddIpMembership = 2,
AddIpv6membership = 3,
BindToDevice = 4,
Broadcast = 5,
DropIpMembership = 6,
DropIpv6Membership = 7,
Error = 8,
IpMulticastInterface = 9,
IpMulticastLoopback = 10,
IpMulticastTtl = 11,
IpPacketInfo = 12,
IpReceiveTtl = 13,
IpReceiveTypeOfService = 14,
IpTtl = 15,
IpTypeOfService = 16,
Ipv6MulticastHops = 17,
Ipv6MulticastInterface = 18,
Ipv6MulticastLoopback = 19,
Ipv6Only = 20,
Ipv6ReceiveHopLimit = 21,
Ipv6ReceivePacketInfo = 22,
Ipv6ReceiveTrafficClass = 23,
Ipv6TrafficClass = 24,
Ipv6UnicastHops = 25,
KeepAlive = 26,
Linger = 27,
NoCheck = 28,
OutOfBandInline = 29,
ReceiveBuffer = 30,
ReuseAddress = 31,
ReusePort = 32,
SendBuffer = 33,
TcpCongestion = 34,
TcpCork = 35,
TcpDeferAccept = 36,
TcpInfo = 37,
TcpKeepAliveCount = 38,
TcpKeepAliveIdle = 39,
TcpKeepAliveInterval = 40,
TcpLinger = 41,
TcpMaxSegment = 42,
TcpNoDelay = 43,
TcpQuickAck = 44,
TcpSynCount = 45,
TcpUserTimeout = 46,
TcpWindowClamp = 47,
Timestamp = 48,
}
impl cobalt_client::traits::AsEventCode for NetworkingMetricDimensionSocketOption {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use NetworkingMetricDimensionSocketOption as SocketOptionOperationMaxMetricDimensionSocketOption;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum NetworkingMetricDimensionIpVersion {
Ipv4 = 4,
Ipv6 = 6,
}
impl cobalt_client::traits::AsEventCode for NetworkingMetricDimensionIpVersion {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use NetworkingMetricDimensionIpVersion as NeedMoreFragmentsMetricDimensionIpVersion;
pub use NetworkingMetricDimensionIpVersion as ConntrackNumConnectionsMetricDimensionIpVersion;
pub use NetworkingMetricDimensionIpVersion as ConntrackTableLimitHitsMetricDimensionIpVersion;
pub use NetworkingMetricDimensionIpVersion as ConntrackTableLimitDropsMetricDimensionIpVersion;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum StackMigrationUserSettingMetricDimensionNetstackVersion {
NoSelection = 1,
Netstack2 = 2,
Netstack3 = 3,
}
impl cobalt_client::traits::AsEventCode for StackMigrationUserSettingMetricDimensionNetstackVersion {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use StackMigrationUserSettingMetricDimensionNetstackVersion as StackMigrationAutomatedSettingMetricDimensionNetstackVersion;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum StackMigrationCurrentBootMetricDimensionNetstackVersion {
Netstack2 = 2,
Netstack3 = 3,
}
impl cobalt_client::traits::AsEventCode for StackMigrationCurrentBootMetricDimensionNetstackVersion {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct SocketOptionOperationMaxEventCodes {
pub operation: SocketOptionOperationMaxMetricDimensionOperation,
pub socket_option: SocketOptionOperationMaxMetricDimensionSocketOption,
}
impl cobalt_client::traits::AsEventCodes for SocketOptionOperationMaxEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.operation.as_event_code(),
self.socket_option.as_event_code(),
]
}
}
}