pub struct CostQuery {
pub session_id: Option<String>,
pub agent_id: Option<String>,
pub tool_server: Option<String>,
pub tool_name: Option<String>,
pub since: Option<u64>,
pub until: Option<u64>,
pub currency: Option<String>,
pub limit: Option<usize>,
pub group_by: GroupBy,
}Expand description
Query parameters for cost aggregation.
All filters are optional. When omitted, the query matches all records. Multiple filters are ANDed together.
Fields§
§session_id: Option<String>Filter by session ID.
agent_id: Option<String>Filter by agent ID.
tool_server: Option<String>Filter by tool server.
tool_name: Option<String>Filter by tool name.
since: Option<u64>Start of time range (inclusive, Unix seconds).
until: Option<u64>End of time range (exclusive, Unix seconds).
currency: Option<String>Currency filter – only include costs in this currency.
limit: Option<usize>Maximum number of detailed records to return.
group_by: GroupByAggregation group-by dimension.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CostQuery
impl<'de> Deserialize<'de> for CostQuery
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 CostQuery
impl RefUnwindSafe for CostQuery
impl Send for CostQuery
impl Sync for CostQuery
impl Unpin for CostQuery
impl UnsafeUnpin for CostQuery
impl UnwindSafe for CostQuery
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