pub struct CacheQuery {
pub start_time: Option<i64>,
pub end_time: Option<i64>,
pub agent: Option<String>,
pub model: Option<String>,
pub provider: Option<String>,
pub project: Option<String>,
pub session: Option<String>,
pub by_model: Option<String>,
pub bucket_secs: Option<u64>,
}Expand description
Query parameters for the cache hit rate / cache economics endpoint.
Fields§
§start_time: Option<i64>§end_time: Option<i64>§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
by_model: Option<String>Pass 1 (or true) to return the cache-economics payload
(per-model read/write split, hit rate, read:write ratio, estimated
savings, plus a time-bucketed series). Without it, the original
per-model hit-rate list is returned unchanged.
bucket_secs: Option<u64>Bucket size in seconds for the economics series (default 3600).
Only used with by_model=1.
Trait Implementations§
Source§impl Debug for CacheQuery
impl Debug for CacheQuery
Source§impl<'de> Deserialize<'de> for CacheQuery
impl<'de> Deserialize<'de> for CacheQuery
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 CacheQuery
impl IntoParams for CacheQuery
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 CacheQuery
impl Serialize for CacheQuery
Auto Trait Implementations§
impl Freeze for CacheQuery
impl RefUnwindSafe for CacheQuery
impl Send for CacheQuery
impl Sync for CacheQuery
impl Unpin for CacheQuery
impl UnsafeUnpin for CacheQuery
impl UnwindSafe for CacheQuery
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