pub struct DeliveryMetrics {
pub reliability_report: Option<ReportFamily>,
/* private fields */
}Expand description
The process wide Prometheus registry and the histograms it holds.
Fields§
§reliability_report: Option<ReportFamily>The legacy reliability state gauges, updated on each /metrics request.
Only registered by autoendpoint (see with_reliability_report).
Implementations§
Source§impl DeliveryMetrics
impl DeliveryMetrics
pub fn new() -> Self
Sourcepub fn with_reliability_report() -> Self
pub fn with_reliability_report() -> Self
Also register the legacy reliability state gauges. Only autoendpoint serves these, since only it updates them.
Sourcepub fn observe_delivery(
&self,
path: DeliveryPath,
route: DeliveryRoute,
start_ms: u64,
end_ms: u64,
)
pub fn observe_delivery( &self, path: DeliveryPath, route: DeliveryRoute, start_ms: u64, end_ms: u64, )
Record autopush_delivery_seconds.
Sourcepub fn observe_stored_delivery(
&self,
connected_at_ms: u64,
received_ms: u64,
ack_ms: u64,
)
pub fn observe_stored_delivery( &self, connected_at_ms: u64, received_ms: u64, ack_ms: u64, )
Record the two parts of a stored message’s delivery, split at when it became deliverable (the later of the client connecting and the message being received):
autopush_stored_offline_seconds: receipt to deliverable, the time spent waiting for the client to connect.autopush_stored_delivery_after_connect_seconds: deliverable to ACK.
Trait Implementations§
Source§impl Debug for DeliveryMetrics
impl Debug for DeliveryMetrics
Auto Trait Implementations§
impl !RefUnwindSafe for DeliveryMetrics
impl !UnwindSafe for DeliveryMetrics
impl Freeze for DeliveryMetrics
impl Send for DeliveryMetrics
impl Sync for DeliveryMetrics
impl Unpin for DeliveryMetrics
impl UnsafeUnpin for DeliveryMetrics
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].