pub struct OperationSnapshot {
pub operation_name: String,
pub total_calls: u64,
pub error_count: u64,
pub error_rate: f64,
pub avg_duration_ms: f64,
pub min_duration_ms: f64,
pub max_duration_ms: f64,
pub last_execution_timestamp: u64,
}Expand description
Snapshot of a single operation’s metrics
Fields§
§operation_name: StringName of the operation
total_calls: u64Total number of calls
error_count: u64Number of errors
error_rate: f64Error rate as a percentage
avg_duration_ms: f64Average duration in milliseconds
min_duration_ms: f64Minimum observed duration in milliseconds
max_duration_ms: f64Maximum observed duration in milliseconds
last_execution_timestamp: u64UNIX timestamp of the most recent execution
Trait Implementations§
Source§impl Clone for OperationSnapshot
impl Clone for OperationSnapshot
Source§fn clone(&self) -> OperationSnapshot
fn clone(&self) -> OperationSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperationSnapshot
impl Debug for OperationSnapshot
Source§impl<'de> Deserialize<'de> for OperationSnapshot
impl<'de> Deserialize<'de> for OperationSnapshot
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
Auto Trait Implementations§
impl Freeze for OperationSnapshot
impl RefUnwindSafe for OperationSnapshot
impl Send for OperationSnapshot
impl Sync for OperationSnapshot
impl Unpin for OperationSnapshot
impl UnsafeUnpin for OperationSnapshot
impl UnwindSafe for OperationSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request