#[non_exhaustive]pub struct ResponseResourceMetricKeyBuilder { /* private fields */ }
Expand description
A builder for ResponseResourceMetricKey
.
Implementations§
source§impl ResponseResourceMetricKeyBuilder
impl ResponseResourceMetricKeyBuilder
sourcepub fn metric(self, input: impl Into<String>) -> Self
pub fn metric(self, input: impl Into<String>) -> Self
The name of a Performance Insights metric to be measured.
Valid values for Metric
are:
-
db.load.avg
- A scaled representation of the number of active sessions for the database engine. -
db.sampledload.avg
- The raw number of active sessions for the database engine. -
The counter metrics listed in Performance Insights operating system counters in the Amazon Aurora User Guide.
-
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS User Guide.
If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg
and db.sampledload.avg
are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg
showing the scaled values, db.sampledload.avg
showing the raw values, and db.sampledload.avg
less than db.load.avg
. For most use cases, you can query db.load.avg
only.
sourcepub fn set_metric(self, input: Option<String>) -> Self
pub fn set_metric(self, input: Option<String>) -> Self
The name of a Performance Insights metric to be measured.
Valid values for Metric
are:
-
db.load.avg
- A scaled representation of the number of active sessions for the database engine. -
db.sampledload.avg
- The raw number of active sessions for the database engine. -
The counter metrics listed in Performance Insights operating system counters in the Amazon Aurora User Guide.
-
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS User Guide.
If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg
and db.sampledload.avg
are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg
showing the scaled values, db.sampledload.avg
showing the raw values, and db.sampledload.avg
less than db.load.avg
. For most use cases, you can query db.load.avg
only.
sourcepub fn get_metric(&self) -> &Option<String>
pub fn get_metric(&self) -> &Option<String>
The name of a Performance Insights metric to be measured.
Valid values for Metric
are:
-
db.load.avg
- A scaled representation of the number of active sessions for the database engine. -
db.sampledload.avg
- The raw number of active sessions for the database engine. -
The counter metrics listed in Performance Insights operating system counters in the Amazon Aurora User Guide.
-
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS User Guide.
If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg
and db.sampledload.avg
are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg
showing the scaled values, db.sampledload.avg
showing the raw values, and db.sampledload.avg
less than db.load.avg
. For most use cases, you can query db.load.avg
only.
sourcepub fn dimensions(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn dimensions(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to dimensions
.
To override the contents of this collection use set_dimensions
.
The valid dimensions for the metric.
sourcepub fn set_dimensions(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_dimensions(self, input: Option<HashMap<String, String>>) -> Self
The valid dimensions for the metric.
sourcepub fn get_dimensions(&self) -> &Option<HashMap<String, String>>
pub fn get_dimensions(&self) -> &Option<HashMap<String, String>>
The valid dimensions for the metric.
sourcepub fn build(self) -> Result<ResponseResourceMetricKey, BuildError>
pub fn build(self) -> Result<ResponseResourceMetricKey, BuildError>
Consumes the builder and constructs a ResponseResourceMetricKey
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseResourceMetricKeyBuilder
impl Clone for ResponseResourceMetricKeyBuilder
source§fn clone(&self) -> ResponseResourceMetricKeyBuilder
fn clone(&self) -> ResponseResourceMetricKeyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseResourceMetricKeyBuilder
impl Default for ResponseResourceMetricKeyBuilder
source§fn default() -> ResponseResourceMetricKeyBuilder
fn default() -> ResponseResourceMetricKeyBuilder
source§impl PartialEq for ResponseResourceMetricKeyBuilder
impl PartialEq for ResponseResourceMetricKeyBuilder
source§fn eq(&self, other: &ResponseResourceMetricKeyBuilder) -> bool
fn eq(&self, other: &ResponseResourceMetricKeyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseResourceMetricKeyBuilder
Auto Trait Implementations§
impl Freeze for ResponseResourceMetricKeyBuilder
impl RefUnwindSafe for ResponseResourceMetricKeyBuilder
impl Send for ResponseResourceMetricKeyBuilder
impl Sync for ResponseResourceMetricKeyBuilder
impl Unpin for ResponseResourceMetricKeyBuilder
impl UnwindSafe for ResponseResourceMetricKeyBuilder
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