@Generated(value="software.amazon.awssdk:codegen") public final class MetricQuery extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricQuery.Builder,MetricQuery>
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
).
Modifier and Type | Class and Description |
---|---|
static interface |
MetricQuery.Builder |
Modifier and Type | Method and Description |
---|---|
static MetricQuery.Builder |
builder() |
boolean |
equals(Object obj) |
Map<String,String> |
filter()
One or more filters to apply in the request.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
DimensionGroup |
groupBy()
A specification for how to aggregate the data points from a query result.
|
int |
hashCode() |
String |
metric()
The name of a Performance Insights metric to be measured.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricQuery.Builder> |
serializableBuilderClass() |
MetricQuery.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String metric()
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.
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.
public DimensionGroup groupBy()
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.
public Map<String,String> filter()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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.
public MetricQuery.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MetricQuery.Builder,MetricQuery>
public static MetricQuery.Builder builder()
public static Class<? extends MetricQuery.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.