Struct aws_sdk_pi::model::ResponseResourceMetricKey [−][src]
#[non_exhaustive]pub struct ResponseResourceMetricKey {
pub metric: Option<String>,
pub dimensions: Option<HashMap<String, String>>,
}
Expand description
An object describing a Performance Insights metric and one or more dimensions for that metric.
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.metric: 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.
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.
dimensions: Option<HashMap<String, String>>
The valid dimensions for the metric.
Implementations
Creates a new builder-style object to manufacture ResponseResourceMetricKey
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ResponseResourceMetricKey
impl Send for ResponseResourceMetricKey
impl Sync for ResponseResourceMetricKey
impl Unpin for ResponseResourceMetricKey
impl UnwindSafe for ResponseResourceMetricKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more