@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.
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.
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.
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 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.
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.
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 Object
Object.toString()
public ResponseResourceMetricKey clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.