Struct aws_sdk_rds::types::PerformanceInsightsMetricQuery
source · #[non_exhaustive]pub struct PerformanceInsightsMetricQuery {
pub group_by: Option<PerformanceInsightsMetricDimensionGroup>,
pub metric: Option<String>,
}Expand description
A single Performance Insights metric query to process. You must provide the metric to the query. If other parameters aren't specified, Performance Insights returns all data points for the specified metric. Optionally, you can request the data points to be aggregated by dimension group (GroupBy) and return only those data points that match your criteria (Filter).
Constraints:
-
Must be a valid Performance Insights query.
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.group_by: Option<PerformanceInsightsMetricDimensionGroup>A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights will return all of the dimensions within that group, unless you provide the names of specific dimensions within that group. You can also request that Performance Insights return a limited number of values for a dimension.
metric: Option<String>The name of a Performance Insights metric to be measured.
Valid Values:
-
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.
Implementations§
source§impl PerformanceInsightsMetricQuery
impl PerformanceInsightsMetricQuery
sourcepub fn group_by(&self) -> Option<&PerformanceInsightsMetricDimensionGroup>
pub fn group_by(&self) -> Option<&PerformanceInsightsMetricDimensionGroup>
A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights will return all of the dimensions within that group, unless you provide the names of specific dimensions within that group. You can also request that Performance Insights return a limited number of values for a dimension.
sourcepub fn metric(&self) -> Option<&str>
pub fn metric(&self) -> Option<&str>
The name of a Performance Insights metric to be measured.
Valid Values:
-
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.
source§impl PerformanceInsightsMetricQuery
impl PerformanceInsightsMetricQuery
sourcepub fn builder() -> PerformanceInsightsMetricQueryBuilder
pub fn builder() -> PerformanceInsightsMetricQueryBuilder
Creates a new builder-style object to manufacture PerformanceInsightsMetricQuery.
Trait Implementations§
source§impl Clone for PerformanceInsightsMetricQuery
impl Clone for PerformanceInsightsMetricQuery
source§fn clone(&self) -> PerformanceInsightsMetricQuery
fn clone(&self) -> PerformanceInsightsMetricQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for PerformanceInsightsMetricQuery
impl PartialEq for PerformanceInsightsMetricQuery
source§fn eq(&self, other: &PerformanceInsightsMetricQuery) -> bool
fn eq(&self, other: &PerformanceInsightsMetricQuery) -> bool
self and other values to be equal, and is used
by ==.