pub struct EndpointUsage {
pub calls: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub cached_input_tokens: u64,
pub cache_creation_input_tokens: u64,
pub cost: f64,
pub models: BTreeSet<String>,
}Expand description
Accumulated usage for a single endpoint.
Fields§
§calls: u64Number of calls made.
input_tokens: u64Total input tokens consumed.
output_tokens: u64Total output tokens consumed.
cached_input_tokens: u64Input tokens served from the provider’s prompt cache.
cache_creation_input_tokens: u64Input tokens written to the provider’s prompt cache (cache creation).
cost: f64Accumulated cost in USD.
models: BTreeSet<String>Model names observed on this endpoint, sorted and deduplicated.
Trait Implementations§
Source§impl Clone for EndpointUsage
impl Clone for EndpointUsage
Source§impl Debug for EndpointUsage
impl Debug for EndpointUsage
Auto Trait Implementations§
impl Freeze for EndpointUsage
impl RefUnwindSafe for EndpointUsage
impl Send for EndpointUsage
impl Sync for EndpointUsage
impl Unpin for EndpointUsage
impl UnsafeUnpin for EndpointUsage
impl UnwindSafe for EndpointUsage
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