pub struct GetDataUsageRequest {
pub date_range: Option<DateRange>,
pub resolution: Option<Duration>,
pub aggregate: Vec<i32>,
pub dimension_filters: Vec<Dimension>,
}
Fields§
§date_range: Option<DateRange>
Date request interval
resolution: Option<Duration>
Aggregation resolution. Minimum supported value is 1h
Do note that to avoid overloading the service we enforce resolution limits that depend on the server configuration. This is configured by the server. This means that, for instance, requests with 1 hour resolution for an interval of 30 days will be rejected but accepted for 1 day interval.
Resolution must be between 1 hour and date_range interval
aggregate: Vec<i32>
List of aggregate parameters. i.e. if AggregateBy is [AGGREGATE_BY_PILLAR, AGGREGATE_BY_PRIORITY], then the response will stream data aggregated by pillar and priority.
dimension_filters: Vec<Dimension>
Dimensions to filter by. When used together with aggregation it is pointless to filter by dimension keys that are not aggregated. i.e. if we filter by Dimension [ {“subsystem”, “subsystem1”}] we only return entries that at least have that dimension i.e. [{“subsystem”, “subsystem1”}, {“application”, “application1”}]
Implementations§
source§impl GetDataUsageRequest
impl GetDataUsageRequest
sourcepub fn aggregate(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AggregateBy>>
pub fn aggregate( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AggregateBy>>
Returns an iterator which yields the valid enum values contained in aggregate
.
sourcepub fn push_aggregate(&mut self, value: AggregateBy)
pub fn push_aggregate(&mut self, value: AggregateBy)
Appends the provided enum value to aggregate
.
Trait Implementations§
source§impl Clone for GetDataUsageRequest
impl Clone for GetDataUsageRequest
source§fn clone(&self) -> GetDataUsageRequest
fn clone(&self) -> GetDataUsageRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetDataUsageRequest
impl Debug for GetDataUsageRequest
source§impl Default for GetDataUsageRequest
impl Default for GetDataUsageRequest
source§impl<'de> Deserialize<'de> for GetDataUsageRequest
impl<'de> Deserialize<'de> for GetDataUsageRequest
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 Message for GetDataUsageRequest
impl Message for GetDataUsageRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for GetDataUsageRequest
impl PartialEq for GetDataUsageRequest
source§impl Serialize for GetDataUsageRequest
impl Serialize for GetDataUsageRequest
impl StructuralPartialEq for GetDataUsageRequest
Auto Trait Implementations§
impl Freeze for GetDataUsageRequest
impl RefUnwindSafe for GetDataUsageRequest
impl Send for GetDataUsageRequest
impl Sync for GetDataUsageRequest
impl Unpin for GetDataUsageRequest
impl UnwindSafe for GetDataUsageRequest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request