pub struct StatsResponse {
pub uptime_seconds: u64,
pub requests_total: u64,
pub errors_total: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub tokens_prompt_total: u64,
pub tokens_generated_total: u64,
pub last_request_age_seconds: Option<f64>,
pub generating_now: usize,
pub recent: Vec<RecentRequest>,
}Fields§
§uptime_seconds: u64§requests_total: u64§errors_total: u64§cache_hits: u64§cache_misses: u64§tokens_prompt_total: u64§tokens_generated_total: u64§last_request_age_seconds: Option<f64>Seconds since the last request finished; null when none has.
generating_now: usizeStreamed generations decoding right now – the ones that could
be stopped by POST /v1/cancel at this instant.
Not a queue depth: nothing is queued in front of a decode here, so this counts work in progress, not work waiting. Named for what it is so no one reads a backlog into it.
recent: Vec<RecentRequest>Newest last, capped server-side. See RecentRequest.
Trait Implementations§
Source§impl Clone for StatsResponse
impl Clone for StatsResponse
Source§fn clone(&self) -> StatsResponse
fn clone(&self) -> StatsResponse
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 StatsResponse
impl Debug for StatsResponse
Source§impl<'de> Deserialize<'de> for StatsResponse
impl<'de> Deserialize<'de> for StatsResponse
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
Source§impl PartialEq for StatsResponse
impl PartialEq for StatsResponse
Source§impl Serialize for StatsResponse
impl Serialize for StatsResponse
impl StructuralPartialEq for StatsResponse
Auto Trait Implementations§
impl Freeze for StatsResponse
impl RefUnwindSafe for StatsResponse
impl Send for StatsResponse
impl Sync for StatsResponse
impl Unpin for StatsResponse
impl UnsafeUnpin for StatsResponse
impl UnwindSafe for StatsResponse
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