#[non_exhaustive]pub struct RelativeAggregationDuration {
pub time_dimension: TimeDimension,
pub time_value: i32,
}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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time_dimension: TimeDimensionThe type of time period that the timeValue field represents.
time_value: i32The 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
Implementations§
source§impl RelativeAggregationDuration
impl RelativeAggregationDuration
sourcepub fn time_dimension(&self) -> &TimeDimension
pub fn time_dimension(&self) -> &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
source§impl RelativeAggregationDuration
impl RelativeAggregationDuration
sourcepub fn builder() -> RelativeAggregationDurationBuilder
pub fn builder() -> RelativeAggregationDurationBuilder
Creates a new builder-style object to manufacture RelativeAggregationDuration.
Trait Implementations§
source§impl Clone for RelativeAggregationDuration
impl Clone for RelativeAggregationDuration
source§fn clone(&self) -> RelativeAggregationDuration
fn clone(&self) -> RelativeAggregationDuration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RelativeAggregationDuration
impl Debug for RelativeAggregationDuration
impl StructuralPartialEq for RelativeAggregationDuration
Auto Trait Implementations§
impl Freeze for RelativeAggregationDuration
impl RefUnwindSafe for RelativeAggregationDuration
impl Send for RelativeAggregationDuration
impl Sync for RelativeAggregationDuration
impl Unpin for RelativeAggregationDuration
impl UnwindSafe for RelativeAggregationDuration
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more