pub struct UsageQueryParams {Show 14 fields
pub start_time: u64,
pub end_time: Option<u64>,
pub bucket_width: Option<UsageBucketWidth>,
pub project_ids: Option<Vec<String>>,
pub user_ids: Option<Vec<String>>,
pub api_key_ids: Option<Vec<String>>,
pub models: Option<Vec<String>>,
pub batch: Option<bool>,
pub group_by: Option<Vec<UsageGroupBy>>,
pub limit: Option<u32>,
pub page: Option<String>,
pub line_items: Option<Vec<String>>,
pub vector_store_ids: Option<Vec<String>>,
pub context_levels: Option<Vec<String>>,
}administration-types only.Expand description
Query parameters for organization usage endpoints.
Fields§
§start_time: u64Start time (Unix seconds) of the query time range, inclusive.
end_time: Option<u64>End time (Unix seconds) of the query time range, exclusive.
bucket_width: Option<UsageBucketWidth>Width of each time bucket in response. Currently 1m, 1h and 1d are supported, default to 1d.
project_ids: Option<Vec<String>>Return only usage for these projects.
user_ids: Option<Vec<String>>Return only usage for these users.
api_key_ids: Option<Vec<String>>Return only usage for these API keys.
models: Option<Vec<String>>Return only usage for these models.
batch: Option<bool>If true, return batch jobs only. If false, return non-batch jobs only. By default, return both.
group_by: Option<Vec<UsageGroupBy>>Group the usage data by the specified fields.
limit: Option<u32>Specifies the number of buckets to return.
page: Option<String>A cursor for use in pagination. Corresponding to the next_page field from the previous response.
line_items: Option<Vec<String>>Return only costs for these line items.
vector_store_ids: Option<Vec<String>>Return file-search usage for these vector stores.
context_levels: Option<Vec<String>>Return web-search usage for these context levels: low, medium, or high.
Trait Implementations§
Source§impl Clone for UsageQueryParams
impl Clone for UsageQueryParams
Source§fn clone(&self) -> UsageQueryParams
fn clone(&self) -> UsageQueryParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more