pub enum MetricType {
ErrorRate,
ResponseTime,
RequestCount,
MemoryUsage,
CpuUsage,
DiskUsage,
ActiveConnections,
HealthCheckFailures,
Custom(String),
}
Expand description
Types of metrics that can be monitored
Variants§
ErrorRate
ResponseTime
RequestCount
MemoryUsage
CpuUsage
DiskUsage
ActiveConnections
HealthCheckFailures
Custom(String)
Trait Implementations§
Source§impl Clone for MetricType
impl Clone for MetricType
Source§fn clone(&self) -> MetricType
fn clone(&self) -> MetricType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetricType
impl Debug for MetricType
Source§impl<'de> Deserialize<'de> for MetricType
impl<'de> Deserialize<'de> for MetricType
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MetricType
Display implementations for better formatting
impl Display for MetricType
Display implementations for better formatting
Auto Trait Implementations§
impl Freeze for MetricType
impl RefUnwindSafe for MetricType
impl Send for MetricType
impl Sync for MetricType
impl Unpin for MetricType
impl UnwindSafe for MetricType
Blanket Implementations§
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
Mutably borrows from an owned value. Read more