pub(crate) struct MetricsResponse {
pub(crate) reflectors_count: i64,
pub(crate) streams_total: i64,
pub(crate) streams_pending: i64,
pub(crate) streams_uploaded: i64,
pub(crate) streams_failed: i64,
}Expand description
JSON response body for the /metrics endpoint.
Aggregated counters across the reflectors and streams tables. Not
Prometheus-formatted — this is an operational snapshot meant for human
inspection or k8s health checks, not long-term time-series storage.
Fields§
§reflectors_count: i64Total rows in the reflectors table.
streams_total: i64Total captured streams.
streams_pending: i64Streams awaiting upload.
streams_uploaded: i64Streams successfully uploaded to the Rdio API.
streams_failed: i64Streams that failed permanently (max retries exceeded or hard error).
Trait Implementations§
Source§impl Debug for MetricsResponse
impl Debug for MetricsResponse
Auto Trait Implementations§
impl Freeze for MetricsResponse
impl RefUnwindSafe for MetricsResponse
impl Send for MetricsResponse
impl Sync for MetricsResponse
impl Unpin for MetricsResponse
impl UnwindSafe for MetricsResponse
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more