#[repr(u64)]pub enum Metric {
Show 14 variants
HttpDuration = 0,
DatabaseDuration = 1,
ExecutionDuration = 2,
PreparationDuration = 3,
CallbackDuration = 4,
RecoveryDuration = 5,
QueueAge = 6,
CallbackAge = 7,
CacheLookup = 8,
ProcessSelection = 9,
DatabaseRetry = 10,
RecoveryExpired = 11,
ConsumerSlots = 12,
ExecutingPrograms = 13,
}Variants§
HttpDuration = 0
DatabaseDuration = 1
ExecutionDuration = 2
PreparationDuration = 3
CallbackDuration = 4
RecoveryDuration = 5
QueueAge = 6
CallbackAge = 7
CacheLookup = 8
ProcessSelection = 9
DatabaseRetry = 10
RecoveryExpired = 11
ConsumerSlots = 12
ExecutingPrograms = 13
Implementations§
Source§impl Metric
impl Metric
pub const ALL: [Self; 14]
pub fn from_id(id: u64) -> Option<Self>
pub fn name(self) -> &'static str
pub fn kind(self) -> MetricKind
pub fn unit(self) -> &'static str
pub fn accepts(self, outcome: MetricOutcome) -> bool
Sourcepub fn record(self, value: f64, outcome: MetricOutcome)
pub fn record(self, value: f64, outcome: MetricOutcome)
Only fixed enum dimensions are emitted. Negative values are valid only for slot releases; nonfinite values and invalid combinations are ignored.
Trait Implementations§
impl Copy for Metric
impl Eq for Metric
impl StructuralPartialEq for Metric
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnsafeUnpin for Metric
impl UnwindSafe for Metric
Blanket Implementations§
impl<T> ArtifactLease for T
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