pub struct TopSpansQuery {
pub start_time: Option<i64>,
pub end_time: Option<i64>,
pub limit: Option<usize>,
pub sort_by: TopSpanSort,
pub truncated_only: bool,
pub agent: Option<String>,
pub model: Option<String>,
pub provider: Option<String>,
pub project: Option<String>,
pub session: Option<String>,
}Expand description
Query parameters for top-spans endpoint
Fields§
§start_time: Option<i64>Start time (nanoseconds since Unix epoch)
end_time: Option<i64>End time (nanoseconds since Unix epoch)
limit: Option<usize>Maximum number of spans to return (default 20, capped at 100)
sort_by: TopSpanSortSort dimension: total_tokens (default), duration, output_input_ratio (output divided by all input context), cache_efficiency
truncated_only: boolWhen true, return only spans with finish_reason max_tokens or length
agent: Option<String>Agent family filter: claude, opencode, or codex
model: Option<String>Model name filter
provider: Option<String>Provider filter
project: Option<String>Project id filter (opencode data only)
session: Option<String>Session id filter
Trait Implementations§
Source§impl Debug for TopSpansQuery
impl Debug for TopSpansQuery
Source§impl<'de> Deserialize<'de> for TopSpansQuery
impl<'de> Deserialize<'de> for TopSpansQuery
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
Source§impl IntoParams for TopSpansQuery
impl IntoParams for TopSpansQuery
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Source§impl Serialize for TopSpansQuery
impl Serialize for TopSpansQuery
Auto Trait Implementations§
impl Freeze for TopSpansQuery
impl RefUnwindSafe for TopSpansQuery
impl Send for TopSpansQuery
impl Sync for TopSpansQuery
impl Unpin for TopSpansQuery
impl UnsafeUnpin for TopSpansQuery
impl UnwindSafe for TopSpansQuery
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