pub struct UsageCodeInterpreterSessionsParams {
pub start_time: i64,
pub end_time: Option<i64>,
pub bucket_width: Option<UsageCodeInterpreterSessionsParamsBucketWidth>,
pub project_ids: Option<Vec<String>>,
pub group_by: Option<Vec<UsageCodeInterpreterSessionsParamsGroupBy>>,
pub limit: Option<i64>,
pub page: Option<String>,
}
Fields§
§start_time: i64
Start time (Unix seconds) of the query time range, inclusive.
end_time: Option<i64>
End time (Unix seconds) of the query time range, exclusive.
bucket_width: Option<UsageCodeInterpreterSessionsParamsBucketWidth>
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.
group_by: Option<Vec<UsageCodeInterpreterSessionsParamsGroupBy>>
Group the usage data by the specified fields. Support fields include project_id
.
limit: Option<i64>
Specifies the number of buckets to return.
bucket_width=1d
: default: 7, max: 31bucket_width=1h
: default: 24, max: 168bucket_width=1m
: default: 60, max: 1440
page: Option<String>
A cursor for use in pagination. Corresponding to the next_page
field from the previous response.
Implementations§
Source§impl UsageCodeInterpreterSessionsParams
impl UsageCodeInterpreterSessionsParams
Sourcepub fn builder() -> UsageCodeInterpreterSessionsParamsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> UsageCodeInterpreterSessionsParamsBuilder<((), (), (), (), (), (), ())>
Create a builder for building UsageCodeInterpreterSessionsParams
.
On the builder, call .start_time(...)
, .end_time(...)
(optional), .bucket_width(...)
(optional), .project_ids(...)
(optional), .group_by(...)
(optional), .limit(...)
(optional), .page(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of UsageCodeInterpreterSessionsParams
.
Trait Implementations§
Source§impl Clone for UsageCodeInterpreterSessionsParams
impl Clone for UsageCodeInterpreterSessionsParams
Source§fn clone(&self) -> UsageCodeInterpreterSessionsParams
fn clone(&self) -> UsageCodeInterpreterSessionsParams
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for UsageCodeInterpreterSessionsParams
impl<'de> Deserialize<'de> for UsageCodeInterpreterSessionsParams
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>,
Source§impl PartialEq for UsageCodeInterpreterSessionsParams
impl PartialEq for UsageCodeInterpreterSessionsParams
Source§fn eq(&self, other: &UsageCodeInterpreterSessionsParams) -> bool
fn eq(&self, other: &UsageCodeInterpreterSessionsParams) -> bool
self
and other
values to be equal, and is used by ==
.