pub struct UsageQueryParams {
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>,
}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.
Trait Implementations§
Source§impl Clone for UsageQueryParams
impl Clone for UsageQueryParams
Source§fn clone(&self) -> UsageQueryParams
fn clone(&self) -> UsageQueryParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UsageQueryParams
impl Debug for UsageQueryParams
Source§impl Default for UsageQueryParams
impl Default for UsageQueryParams
Source§fn default() -> UsageQueryParams
fn default() -> UsageQueryParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsageQueryParams
impl RefUnwindSafe for UsageQueryParams
impl Send for UsageQueryParams
impl Sync for UsageQueryParams
impl Unpin for UsageQueryParams
impl UnwindSafe for UsageQueryParams
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