pub struct Metrics {
pub queued: Option<u64>,
pub retrying: Option<u64>,
pub in_flight: Option<u64>,
pub retries: Option<u64>,
pub bytes_sent: Option<u64>,
pub latency_ms: Option<f64>,
pub last_ok: Option<f64>,
pub last_error: Option<f64>,
pub last_error_text: String,
pub endpoints: Vec<Endpoint>,
pub extra: BTreeMap<String, Value>,
}Expand description
A plugin’s figures (PluginMessage::Metrics). Every field is optional:
send what you know. Totals are since the plugin started.
Fields§
§queued: Option<u64>Calls waiting to be worked on (ready, or waiting to retry).
retrying: Option<u64>Of those, waiting to retry after a failure.
in_flight: Option<u64>Being worked on now.
retries: Option<u64>Tries that failed and will be retried, in total.
bytes_sent: Option<u64>Bytes sent, in total.
latency_ms: Option<f64>How long one piece of work takes (an upload), ms, smoothed.
last_ok: Option<f64>Unix seconds of the last success and the last failure.
last_error: Option<f64>§last_error_text: String§endpoints: Vec<Endpoint>The services it talks to.
extra: BTreeMap<String, Value>Anything else worth showing, by name (shown as it is).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metrics
impl<'de> Deserialize<'de> for Metrics
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
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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