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 ==
.