#[repr(i32)]pub enum MetricDetail {
DetailProcess = 0,
DetailFrontend = 1,
DetailCluster = 2,
DetailBackend = 3,
}Expand description
label-cardinality knob for the metrics drain.
Mirrors HAProxy’s process|frontend|backend|server extra-counters opt-in:
a higher level enables more granular labels (and thus more keys), letting
operators bound the StatsD keyspace explicitly.
Each level is a SUPERSET of the previous one.
Variants§
DetailProcess = 0
proxy-only counters (legacy default before opt-in landed)
DetailFrontend = 1
adds per-listener (frontend) breakdown for accept/connection counters
DetailCluster = 2
adds per-cluster aggregation (current default)
DetailBackend = 3
adds per-backend aggregation (cluster + backend, highest cardinality)
Implementations§
Source§impl MetricDetail
impl MetricDetail
Source§impl MetricDetail
impl MetricDetail
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for MetricDetail
impl Clone for MetricDetail
Source§fn clone(&self) -> MetricDetail
fn clone(&self) -> MetricDetail
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetricDetail
impl Debug for MetricDetail
Source§impl Default for MetricDetail
impl Default for MetricDetail
Source§fn default() -> MetricDetail
fn default() -> MetricDetail
Source§impl<'de> Deserialize<'de> for MetricDetail
impl<'de> Deserialize<'de> for MetricDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<MetricDetail> for MetricDetailLevel
impl From<MetricDetail> for MetricDetailLevel
Source§fn from(detail: MetricDetail) -> Self
fn from(detail: MetricDetail) -> Self
Reverse of [From<MetricDetailLevel> for MetricDetail] — used by the
worker side to convert the protobuf wire enum back into the
configuration enum before passing it to sozu_lib::metrics::setup.
Source§impl From<MetricDetail> for i32
impl From<MetricDetail> for i32
Source§fn from(value: MetricDetail) -> i32
fn from(value: MetricDetail) -> i32
Source§impl From<MetricDetailLevel> for MetricDetail
impl From<MetricDetailLevel> for MetricDetail
Source§fn from(level: MetricDetailLevel) -> Self
fn from(level: MetricDetailLevel) -> Self
Source§impl Hash for MetricDetail
impl Hash for MetricDetail
Source§impl Ord for MetricDetail
impl Ord for MetricDetail
Source§fn cmp(&self, other: &MetricDetail) -> Ordering
fn cmp(&self, other: &MetricDetail) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MetricDetail
impl PartialEq for MetricDetail
Source§fn eq(&self, other: &MetricDetail) -> bool
fn eq(&self, other: &MetricDetail) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MetricDetail
impl PartialOrd for MetricDetail
Source§impl Serialize for MetricDetail
impl Serialize for MetricDetail
Source§impl TryFrom<i32> for MetricDetail
impl TryFrom<i32> for MetricDetail
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<MetricDetail, UnknownEnumValue>
fn try_from(value: i32) -> Result<MetricDetail, UnknownEnumValue>
impl Copy for MetricDetail
impl Eq for MetricDetail
impl StructuralPartialEq for MetricDetail
Auto Trait Implementations§
impl Freeze for MetricDetail
impl RefUnwindSafe for MetricDetail
impl Send for MetricDetail
impl Sync for MetricDetail
impl Unpin for MetricDetail
impl UnsafeUnpin for MetricDetail
impl UnwindSafe for MetricDetail
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.