@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseResourceMetricKey extends Object implements Serializable, Cloneable, StructuredPojo
An object describing a Performance Insights metric and one or more dimensions for that metric.
| Constructor and Description |
|---|
ResponseResourceMetricKey() |
| Modifier and Type | Method and Description |
|---|---|
ResponseResourceMetricKey |
addDimensionsEntry(String key,
String value)
Add a single Dimensions entry
|
ResponseResourceMetricKey |
clearDimensionsEntries()
Removes all the entries added into Dimensions.
|
ResponseResourceMetricKey |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getDimensions()
The valid dimensions for the metric.
|
String |
getMetric()
The name of a Performance Insights metric to be measured.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDimensions(Map<String,String> dimensions)
The valid dimensions for the metric.
|
void |
setMetric(String metric)
The name of a Performance Insights metric to be measured.
|
String |
toString()
Returns a string representation of this object.
|
ResponseResourceMetricKey |
withDimensions(Map<String,String> dimensions)
The valid dimensions for the metric.
|
ResponseResourceMetricKey |
withMetric(String metric)
The name of a Performance Insights metric to be measured.
|
public void setMetric(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.
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS 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.
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.
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS 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 String getMetric()
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.
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS 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.
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS 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 ResponseResourceMetricKey withMetric(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.
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS 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.
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.
The counter metrics listed in Performance Insights operating system counters in the Amazon RDS 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 Map<String,String> getDimensions()
The valid dimensions for the metric.
public void setDimensions(Map<String,String> dimensions)
The valid dimensions for the metric.
dimensions - The valid dimensions for the metric.public ResponseResourceMetricKey withDimensions(Map<String,String> dimensions)
The valid dimensions for the metric.
dimensions - The valid dimensions for the metric.public ResponseResourceMetricKey addDimensionsEntry(String key, String value)
public ResponseResourceMetricKey clearDimensionsEntries()
public String toString()
toString in class ObjectObject.toString()public ResponseResourceMetricKey clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.