Struct aws_sdk_connect::types::IntervalDetails
source · #[non_exhaustive]pub struct IntervalDetails {
pub time_zone: Option<String>,
pub interval_period: Option<IntervalPeriod>,
}
Expand description
Information about the interval period to use for returning results.
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_zone: Option<String>
The timezone applied to requested metrics.
interval_period: Option<IntervalPeriod>
IntervalPeriod
: An aggregated grouping applied to request metrics. Valid IntervalPeriod
values are: FIFTEEN_MIN
| THIRTY_MIN
| HOUR
| DAY
| WEEK
| TOTAL
.
For example, if IntervalPeriod
is selected THIRTY_MIN
, StartTime
and EndTime
differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the TOTAL
interval period.
The following list describes restrictions on StartTime
and EndTime
based on what IntervalPeriod
is requested.
-
FIFTEEN_MIN
: The difference betweenStartTime
andEndTime
must be less than 3 days. -
THIRTY_MIN
: The difference betweenStartTime
andEndTime
must be less than 3 days. -
HOUR
: The difference betweenStartTime
andEndTime
must be less than 3 days. -
DAY
: The difference betweenStartTime
andEndTime
must be less than 35 days. -
WEEK
: The difference betweenStartTime
andEndTime
must be less than 35 days. -
TOTAL
: The difference betweenStartTime
andEndTime
must be less than 35 days.
Implementations§
source§impl IntervalDetails
impl IntervalDetails
sourcepub fn interval_period(&self) -> Option<&IntervalPeriod>
pub fn interval_period(&self) -> Option<&IntervalPeriod>
IntervalPeriod
: An aggregated grouping applied to request metrics. Valid IntervalPeriod
values are: FIFTEEN_MIN
| THIRTY_MIN
| HOUR
| DAY
| WEEK
| TOTAL
.
For example, if IntervalPeriod
is selected THIRTY_MIN
, StartTime
and EndTime
differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the TOTAL
interval period.
The following list describes restrictions on StartTime
and EndTime
based on what IntervalPeriod
is requested.
-
FIFTEEN_MIN
: The difference betweenStartTime
andEndTime
must be less than 3 days. -
THIRTY_MIN
: The difference betweenStartTime
andEndTime
must be less than 3 days. -
HOUR
: The difference betweenStartTime
andEndTime
must be less than 3 days. -
DAY
: The difference betweenStartTime
andEndTime
must be less than 35 days. -
WEEK
: The difference betweenStartTime
andEndTime
must be less than 35 days. -
TOTAL
: The difference betweenStartTime
andEndTime
must be less than 35 days.
source§impl IntervalDetails
impl IntervalDetails
sourcepub fn builder() -> IntervalDetailsBuilder
pub fn builder() -> IntervalDetailsBuilder
Creates a new builder-style object to manufacture IntervalDetails
.
Trait Implementations§
source§impl Clone for IntervalDetails
impl Clone for IntervalDetails
source§fn clone(&self) -> IntervalDetails
fn clone(&self) -> IntervalDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IntervalDetails
impl Debug for IntervalDetails
source§impl PartialEq for IntervalDetails
impl PartialEq for IntervalDetails
source§fn eq(&self, other: &IntervalDetails) -> bool
fn eq(&self, other: &IntervalDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IntervalDetails
Auto Trait Implementations§
impl Freeze for IntervalDetails
impl RefUnwindSafe for IntervalDetails
impl Send for IntervalDetails
impl Sync for IntervalDetails
impl Unpin for IntervalDetails
impl UnwindSafe for IntervalDetails
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> 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