Struct rusoto_pi::MetricQuery
source · [−]pub struct MetricQuery {
pub filter: Option<HashMap<String, String>>,
pub group_by: Option<DimensionGroup>,
pub metric: String,
}
Expand description
A single query to be processed. You must provide the metric to query. If no other parameters are specified, Performance Insights returns all of the data points for that metric. You can optionally request that the data points be aggregated by dimension group ( GroupBy
), and return only those data points that match your criteria (Filter
).
Fields
filter: Option<HashMap<String, String>>
One or more filters to apply in the request. Restrictions:
-
Any number of filters by the same dimension, as specified in the
GroupBy
parameter. -
A single filter for any other dimension in this dimension group.
group_by: Option<DimensionGroup>
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: 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.
Trait Implementations
sourceimpl Clone for MetricQuery
impl Clone for MetricQuery
sourcefn clone(&self) -> MetricQuery
fn clone(&self) -> MetricQuery
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 MetricQuery
impl Debug for MetricQuery
sourceimpl Default for MetricQuery
impl Default for MetricQuery
sourcefn default() -> MetricQuery
fn default() -> MetricQuery
Returns the “default value” for a type. Read more
sourceimpl PartialEq<MetricQuery> for MetricQuery
impl PartialEq<MetricQuery> for MetricQuery
sourcefn eq(&self, other: &MetricQuery) -> bool
fn eq(&self, other: &MetricQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MetricQuery) -> bool
fn ne(&self, other: &MetricQuery) -> bool
This method tests for !=
.
sourceimpl Serialize for MetricQuery
impl Serialize for MetricQuery
impl StructuralPartialEq for MetricQuery
Auto Trait Implementations
impl RefUnwindSafe for MetricQuery
impl Send for MetricQuery
impl Sync for MetricQuery
impl Unpin for MetricQuery
impl UnwindSafe for MetricQuery
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