#[non_exhaustive]pub struct RelativeAggregationDuration { /* private fields */ }Expand description
Specifies the time window that utterance statistics are returned for. The time window is always relative to the last time that the that utterances were aggregated. For example, if the ListAggregatedUtterances operation is called at 1600, the time window is set to 1 hour, and the last refresh time was 1530, only utterances made between 1430 and 1530 are returned.
You can choose the time window that statistics should be returned for.
-
Hours - You can request utterance statistics for 1, 3, 6, 12, or 24 hour time windows. Statistics are refreshed every half hour for 1 hour time windows, and hourly for the other time windows.
-
Days - You can request utterance statistics for 3 days. Statistics are refreshed every 6 hours.
-
Weeks - You can see statistics for one or two weeks. Statistics are refreshed every 12 hours for one week time windows, and once per day for two week time windows.
Implementations
sourceimpl RelativeAggregationDuration
impl RelativeAggregationDuration
sourcepub fn time_dimension(&self) -> Option<&TimeDimension>
pub fn time_dimension(&self) -> Option<&TimeDimension>
The type of time period that the timeValue field represents.
sourcepub fn time_value(&self) -> i32
pub fn time_value(&self) -> i32
The period of the time window to gather statistics for. The valid value depends on the setting of the timeDimension field.
-
Hours- 1/3/6/12/24 -
Days- 3 -
Weeks- 1/2
sourceimpl RelativeAggregationDuration
impl RelativeAggregationDuration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RelativeAggregationDuration.
Trait Implementations
sourceimpl Clone for RelativeAggregationDuration
impl Clone for RelativeAggregationDuration
sourcefn clone(&self) -> RelativeAggregationDuration
fn clone(&self) -> RelativeAggregationDuration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RelativeAggregationDuration
impl Debug for RelativeAggregationDuration
sourceimpl PartialEq<RelativeAggregationDuration> for RelativeAggregationDuration
impl PartialEq<RelativeAggregationDuration> for RelativeAggregationDuration
sourcefn eq(&self, other: &RelativeAggregationDuration) -> bool
fn eq(&self, other: &RelativeAggregationDuration) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RelativeAggregationDuration) -> bool
fn ne(&self, other: &RelativeAggregationDuration) -> bool
This method tests for !=.
impl StructuralPartialEq for RelativeAggregationDuration
Auto Trait Implementations
impl RefUnwindSafe for RelativeAggregationDuration
impl Send for RelativeAggregationDuration
impl Sync for RelativeAggregationDuration
impl Unpin for RelativeAggregationDuration
impl UnwindSafe for RelativeAggregationDuration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more