Class PerformanceInsightsMetricQuery
- java.lang.Object
-
- software.amazon.awssdk.services.rds.model.PerformanceInsightsMetricQuery
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PerformanceInsightsMetricQuery.Builder,PerformanceInsightsMetricQuery>
@Generated("software.amazon.awssdk:codegen") public final class PerformanceInsightsMetricQuery extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PerformanceInsightsMetricQuery.Builder,PerformanceInsightsMetricQuery>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePerformanceInsightsMetricQuery.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PerformanceInsightsMetricQuery.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)PerformanceInsightsMetricDimensionGroupgroupBy()A specification for how to aggregate the data points from a query result.inthashCode()Stringmetric()The name of a Performance Insights metric to be measured.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PerformanceInsightsMetricQuery.Builder>serializableBuilderClass()PerformanceInsightsMetricQuery.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
groupBy
public final PerformanceInsightsMetricDimensionGroup 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.
- Returns:
- 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
public final String metric()
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.avganddb.sampledload.avgare the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, withdb.load.avgshowing the scaled values,db.sampledload.avgshowing the raw values, anddb.sampledload.avgless thandb.load.avg. For most use cases, you can querydb.load.avgonly.- Returns:
- 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.avganddb.sampledload.avgare the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, withdb.load.avgshowing the scaled values,db.sampledload.avgshowing the raw values, anddb.sampledload.avgless thandb.load.avg. For most use cases, you can querydb.load.avgonly. -
-
-
toBuilder
public PerformanceInsightsMetricQuery.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PerformanceInsightsMetricQuery.Builder,PerformanceInsightsMetricQuery>
-
builder
public static PerformanceInsightsMetricQuery.Builder builder()
-
serializableBuilderClass
public static Class<? extends PerformanceInsightsMetricQuery.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-