pub struct AggregationRequest {
pub bucket_size: Option<BucketSize>,
pub buckets: Option<i32>,
pub start_time: String,
pub organization_id: Option<String>,
pub instance_id: Option<String>,
}Fields§
§bucket_size: Option<BucketSize>The size of the bucket
buckets: Option<i32>Number of buckets to return. Defaults to 3 if not provided.
start_time: StringAn ISO-8601 formatted date-time, i.e., 2018-11-13T20:20:39+00:00, that the aggregation should start at. This time will be truncated based on bucket_size, i.e., if bucket_size is 1h, then the start_time will be truncated to the nearest hour.
organization_id: Option<String>The Nile organization id to aggregate on
instance_id: Option<String>The optional Nile instance id to aggregate on
Implementations§
Source§impl AggregationRequest
impl AggregationRequest
pub fn new(start_time: String) -> AggregationRequest
Trait Implementations§
Source§impl Clone for AggregationRequest
impl Clone for AggregationRequest
Source§fn clone(&self) -> AggregationRequest
fn clone(&self) -> AggregationRequest
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 AggregationRequest
impl Debug for AggregationRequest
Source§impl Default for AggregationRequest
impl Default for AggregationRequest
Source§fn default() -> AggregationRequest
fn default() -> AggregationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AggregationRequest
impl<'de> Deserialize<'de> for AggregationRequest
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 PartialEq for AggregationRequest
impl PartialEq for AggregationRequest
Source§impl Serialize for AggregationRequest
impl Serialize for AggregationRequest
impl StructuralPartialEq for AggregationRequest
Auto Trait Implementations§
impl Freeze for AggregationRequest
impl RefUnwindSafe for AggregationRequest
impl Send for AggregationRequest
impl Sync for AggregationRequest
impl Unpin for AggregationRequest
impl UnwindSafe for AggregationRequest
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