pub(crate) struct StreamStatusCounts {
pub(crate) total: i64,
pub(crate) pending: i64,
pub(crate) uploaded: i64,
pub(crate) failed: i64,
}Expand description
Aggregated counts of streams grouped by upload_status.
Used by the HTTP API /metrics endpoint for operational visibility.
Any stream row whose upload_status is NULL or an unrecognized value is
bucketed into unknown so the total always sums back to the full row
count of the streams table.
Fields§
§total: i64Total rows in the streams table.
pending: i64Rows with upload_status = 'pending'.
uploaded: i64Rows with upload_status = 'uploaded'.
failed: i64Rows with upload_status = 'failed'.
Trait Implementations§
Source§impl Debug for StreamStatusCounts
impl Debug for StreamStatusCounts
Source§impl Default for StreamStatusCounts
impl Default for StreamStatusCounts
Source§fn default() -> StreamStatusCounts
fn default() -> StreamStatusCounts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamStatusCounts
impl RefUnwindSafe for StreamStatusCounts
impl Send for StreamStatusCounts
impl Sync for StreamStatusCounts
impl Unpin for StreamStatusCounts
impl UnwindSafe for StreamStatusCounts
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