pub struct AnalyticsEventWithAgent {
pub event_id: String,
pub timestamp_ms: i64,
pub event_type: String,
pub model: String,
pub provider: String,
pub input_tokens: i64,
pub output_tokens: i64,
pub cost_micros: i64,
pub agent_id: i64,
pub agent_name: String,
pub error_code: Option<String>,
pub error_message: Option<String>,
}Expand description
Event with agent name
Fields§
§event_id: String§timestamp_ms: i64§event_type: String§model: String§provider: String§input_tokens: i64§output_tokens: i64§cost_micros: i64§agent_id: i64§agent_name: String§error_code: Option<String>§error_message: Option<String>Trait Implementations§
Source§impl Debug for AnalyticsEventWithAgent
impl Debug for AnalyticsEventWithAgent
Source§impl<'a, R: Row> FromRow<'a, R> for AnalyticsEventWithAgent
impl<'a, R: Row> FromRow<'a, R> for AnalyticsEventWithAgent
Auto Trait Implementations§
impl Freeze for AnalyticsEventWithAgent
impl RefUnwindSafe for AnalyticsEventWithAgent
impl Send for AnalyticsEventWithAgent
impl Sync for AnalyticsEventWithAgent
impl Unpin for AnalyticsEventWithAgent
impl UnwindSafe for AnalyticsEventWithAgent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more