Struct aws_sdk_pi::model::ResponseResourceMetricKey
source · [−]#[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. -
The counter metrics listed in Performance Insights operating system counters in the Amazon Aurora 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.
dimensions: Option<HashMap<String, String>>The valid dimensions for the metric.
Implementations
sourceimpl ResponseResourceMetricKey
impl ResponseResourceMetricKey
sourcepub fn metric(&self) -> Option<&str>
pub fn metric(&self) -> Option<&str>
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.
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.
sourceimpl ResponseResourceMetricKey
impl ResponseResourceMetricKey
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResponseResourceMetricKey
Trait Implementations
sourceimpl Clone for ResponseResourceMetricKey
impl Clone for ResponseResourceMetricKey
sourcefn clone(&self) -> ResponseResourceMetricKey
fn clone(&self) -> ResponseResourceMetricKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ResponseResourceMetricKey
impl Debug for ResponseResourceMetricKey
sourceimpl PartialEq<ResponseResourceMetricKey> for ResponseResourceMetricKey
impl PartialEq<ResponseResourceMetricKey> for ResponseResourceMetricKey
sourcefn eq(&self, other: &ResponseResourceMetricKey) -> bool
fn eq(&self, other: &ResponseResourceMetricKey) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ResponseResourceMetricKey) -> bool
fn ne(&self, other: &ResponseResourceMetricKey) -> bool
This method tests for !=.
impl StructuralPartialEq for ResponseResourceMetricKey
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more