#[non_exhaustive]pub struct GetResourceMetricsOutput {
pub aligned_start_time: Option<DateTime>,
pub aligned_end_time: Option<DateTime>,
pub identifier: Option<String>,
pub metric_list: Option<Vec<MetricKeyDataPoints>>,
pub next_token: Option<String>,
/* private fields */
}
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.aligned_start_time: Option<DateTime>
The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds
). AlignedStartTime
will be less than or equal to the value of the user-specified StartTime
.
aligned_end_time: Option<DateTime>
The end time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds
). AlignedEndTime
will be greater than or equal to the value of the user-specified Endtime
.
identifier: Option<String>
An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances
, the identifier is returned as DbiResourceId
.
metric_list: Option<Vec<MetricKeyDataPoints>>
An array of metric results, where each array element contains all of the data points for a particular dimension.
next_token: Option<String>
An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords
.
Implementations§
source§impl GetResourceMetricsOutput
impl GetResourceMetricsOutput
sourcepub fn aligned_start_time(&self) -> Option<&DateTime>
pub fn aligned_start_time(&self) -> Option<&DateTime>
The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds
). AlignedStartTime
will be less than or equal to the value of the user-specified StartTime
.
sourcepub fn aligned_end_time(&self) -> Option<&DateTime>
pub fn aligned_end_time(&self) -> Option<&DateTime>
The end time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds
). AlignedEndTime
will be greater than or equal to the value of the user-specified Endtime
.
sourcepub fn identifier(&self) -> Option<&str>
pub fn identifier(&self) -> Option<&str>
An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances
, the identifier is returned as DbiResourceId
.
sourcepub fn metric_list(&self) -> &[MetricKeyDataPoints]
pub fn metric_list(&self) -> &[MetricKeyDataPoints]
An array of metric results, where each array element contains all of the data points for a particular dimension.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .metric_list.is_none()
.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords
.
source§impl GetResourceMetricsOutput
impl GetResourceMetricsOutput
sourcepub fn builder() -> GetResourceMetricsOutputBuilder
pub fn builder() -> GetResourceMetricsOutputBuilder
Creates a new builder-style object to manufacture GetResourceMetricsOutput
.
Trait Implementations§
source§impl Clone for GetResourceMetricsOutput
impl Clone for GetResourceMetricsOutput
source§fn clone(&self) -> GetResourceMetricsOutput
fn clone(&self) -> GetResourceMetricsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetResourceMetricsOutput
impl Debug for GetResourceMetricsOutput
source§impl PartialEq for GetResourceMetricsOutput
impl PartialEq for GetResourceMetricsOutput
source§fn eq(&self, other: &GetResourceMetricsOutput) -> bool
fn eq(&self, other: &GetResourceMetricsOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetResourceMetricsOutput
impl RequestId for GetResourceMetricsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetResourceMetricsOutput
Auto Trait Implementations§
impl Freeze for GetResourceMetricsOutput
impl RefUnwindSafe for GetResourceMetricsOutput
impl Send for GetResourceMetricsOutput
impl Sync for GetResourceMetricsOutput
impl Unpin for GetResourceMetricsOutput
impl UnwindSafe for GetResourceMetricsOutput
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