Struct aws_sdk_connect::types::MetricInterval
source · #[non_exhaustive]pub struct MetricInterval {
pub interval: Option<IntervalPeriod>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
}
Expand description
The interval period with the start and end time for the metrics.
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.interval: Option<IntervalPeriod>
The interval period provided in the API request.
start_time: Option<DateTime>
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
end_time: Option<DateTime>
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod
is selected THIRTY_MIN
, StartTime
and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime
and EndTime
differing by 30 minutes.
Implementations§
source§impl MetricInterval
impl MetricInterval
sourcepub fn interval(&self) -> Option<&IntervalPeriod>
pub fn interval(&self) -> Option<&IntervalPeriod>
The interval period provided in the API request.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
sourcepub fn end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod
is selected THIRTY_MIN
, StartTime
and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime
and EndTime
differing by 30 minutes.
source§impl MetricInterval
impl MetricInterval
sourcepub fn builder() -> MetricIntervalBuilder
pub fn builder() -> MetricIntervalBuilder
Creates a new builder-style object to manufacture MetricInterval
.
Trait Implementations§
source§impl Clone for MetricInterval
impl Clone for MetricInterval
source§fn clone(&self) -> MetricInterval
fn clone(&self) -> MetricInterval
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricInterval
impl Debug for MetricInterval
source§impl PartialEq for MetricInterval
impl PartialEq for MetricInterval
source§fn eq(&self, other: &MetricInterval) -> bool
fn eq(&self, other: &MetricInterval) -> bool
self
and other
values to be equal, and is used
by ==
.