pub struct ModelStat {Show 14 fields
pub completion_tokens: Option<i32>,
pub cost_cents: Option<i32>,
pub cost_pct: Option<f64>,
pub error_rate: Option<f64>,
pub errors: Option<i32>,
pub model: Option<String>,
pub model_count: Option<i32>,
pub p50_ms: Option<f64>,
pub p95_ms: Option<f64>,
pub p99_ms: Option<f64>,
pub prompt_tokens: Option<i32>,
pub provider: Option<String>,
pub requests: Option<i32>,
pub total_tokens: Option<i32>,
}Fields§
§completion_tokens: Option<i32>tokens it answered with
cost_cents: Option<i32>what this model cost, in cents
cost_pct: Option<f64>share of total spend, 0..100
error_rate: Option<f64>share of its calls that failed, 0..1
errors: Option<i32>calls to it that did not succeed
model: Option<String>the model this row is about, or "other" for the fold
model_count: Option<i32>0 only on the "other" fold
p50_ms: Option<f64>median latency, null when no spans carry it
p95_ms: Option<f64>95th-percentile latency, null when unknown
p99_ms: Option<f64>99th-percentile latency, null when unknown
prompt_tokens: Option<i32>tokens sent to it
provider: Option<String>who serves it
requests: Option<i32>calls to this model in the window
total_tokens: Option<i32>prompt plus completion
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelStat
impl<'de> Deserialize<'de> for ModelStat
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
impl StructuralPartialEq for ModelStat
Auto Trait Implementations§
impl Freeze for ModelStat
impl RefUnwindSafe for ModelStat
impl Send for ModelStat
impl Sync for ModelStat
impl Unpin for ModelStat
impl UnsafeUnpin for ModelStat
impl UnwindSafe for ModelStat
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