pub struct TenantUsageStats {
pub requests_minute: u32,
pub requests_hour: u32,
pub requests_day: u32,
pub tokens_minute: u64,
pub tokens_hour: u64,
pub tokens_day: u64,
pub concurrent: u32,
pub daily_cost_usd: f64,
pub weekly_cost_usd: f64,
pub monthly_cost_usd: f64,
}Expand description
Current usage statistics for a tenant.
Fields§
§requests_minute: u32Requests in current minute
requests_hour: u32Requests in current hour
requests_day: u32Requests in current day
tokens_minute: u64Tokens in current minute
tokens_hour: u64Tokens in current hour
tokens_day: u64Tokens in current day
concurrent: u32Current concurrent requests
daily_cost_usd: f64Cost today in USD
weekly_cost_usd: f64Cost this week in USD
monthly_cost_usd: f64Cost this month in USD
Trait Implementations§
Source§impl Clone for TenantUsageStats
impl Clone for TenantUsageStats
Source§fn clone(&self) -> TenantUsageStats
fn clone(&self) -> TenantUsageStats
Returns a duplicate of the value. Read more
1.0.0 · 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 TenantUsageStats
impl Debug for TenantUsageStats
Source§impl<'de> Deserialize<'de> for TenantUsageStats
impl<'de> Deserialize<'de> for TenantUsageStats
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
Auto Trait Implementations§
impl Freeze for TenantUsageStats
impl RefUnwindSafe for TenantUsageStats
impl Send for TenantUsageStats
impl Sync for TenantUsageStats
impl Unpin for TenantUsageStats
impl UnwindSafe for TenantUsageStats
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