pub struct TelemetryRecord {
pub ts: u64,
pub request_id: Option<String>,
pub msg_id: Option<String>,
pub model: String,
pub attempt: u32,
pub ttft_ms: Option<u64>,
pub total_ms: u64,
pub stop_reason: Option<String>,
pub usage: UsageRecord,
pub ratelimit: Option<RateLimitRecord>,
pub cache_diag: Option<CacheDiagRecord>,
pub context: ContextRecord,
}Expand description
One JSONL record per API call.
Fields§
§ts: u64Unix epoch milliseconds at request completion.
request_id: Option<String>§msg_id: Option<String>Anthropic message id (msg_...) from message_start.
model: String§attempt: u321-based attempt number that succeeded (1 = no retries).
ttft_ms: Option<u64>Milliseconds from request send to first SSE byte.
total_ms: u64Milliseconds from request send to stream close.
stop_reason: Option<String>§usage: UsageRecord§ratelimit: Option<RateLimitRecord>§cache_diag: Option<CacheDiagRecord>§context: ContextRecordImplementations§
Trait Implementations§
Source§impl Clone for TelemetryRecord
impl Clone for TelemetryRecord
Source§fn clone(&self) -> TelemetryRecord
fn clone(&self) -> TelemetryRecord
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 TelemetryRecord
impl Debug for TelemetryRecord
Source§impl Default for TelemetryRecord
impl Default for TelemetryRecord
Source§fn default() -> TelemetryRecord
fn default() -> TelemetryRecord
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TelemetryRecord
impl RefUnwindSafe for TelemetryRecord
impl Send for TelemetryRecord
impl Sync for TelemetryRecord
impl Unpin for TelemetryRecord
impl UnsafeUnpin for TelemetryRecord
impl UnwindSafe for TelemetryRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.