@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()
Returns true if the Dimensions property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
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.
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.
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()
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.
You can use hasDimensions() to see if a value was sent in this field.
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 © 2021. All rights reserved.