@Generated(value="software.amazon.awssdk:codegen") public final class ResponseResourceMetricKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseResourceMetricKey.Builder,ResponseResourceMetricKey>
An object describing a Performance Insights metric and one or more dimensions for that metric.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResponseResourceMetricKey.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResponseResourceMetricKey.Builder |
builder() |
Map<String,String> |
dimensions()
The valid dimensions for the metric.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDimensions()
For responses, this returns true if the service returned a value for the Dimensions property.
|
int |
hashCode() |
String |
metric()
The name of a Performance Insights metric to be measured.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResponseResourceMetricKey.Builder> |
serializableBuilderClass() |
ResponseResourceMetricKey.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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.
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.
public final boolean hasDimensions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> dimensions()
The valid dimensions for the metric.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDimensions() method.
public ResponseResourceMetricKey.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResponseResourceMetricKey.Builder,ResponseResourceMetricKey>public static ResponseResourceMetricKey.Builder builder()
public static Class<? extends ResponseResourceMetricKey.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.