|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudwatch.model.ListMetricsRequest
public class ListMetricsRequest
Container for the parameters to the ListMetrics operation
.
Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with GetMetricStatistics
to obtain
statistical data for a given metric.
NOTE: Up to 500 results are returned for any one call. To retrieve further results, use returned NextToken values with subsequent ListMetrics operations.
NOTE: If you create a metric with the PutMetricData action, allow up to fifteen minutes for the metric to appear in calls to the ListMetrics action.
AmazonCloudWatch.listMetrics(ListMetricsRequest)
Constructor Summary | |
---|---|
ListMetricsRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<DimensionFilter> |
getDimensions()
A list of dimensions to filter against. |
String |
getMetricName()
The name of the metric to filter against. |
String |
getNamespace()
The namespace to filter against. |
String |
getNextToken()
The token returned by a previous call to indicate that there is more data available. |
int |
hashCode()
|
void |
setDimensions(Collection<DimensionFilter> dimensions)
A list of dimensions to filter against. |
void |
setMetricName(String metricName)
The name of the metric to filter against. |
void |
setNamespace(String namespace)
The namespace to filter against. |
void |
setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ListMetricsRequest |
withDimensions(Collection<DimensionFilter> dimensions)
A list of dimensions to filter against. |
ListMetricsRequest |
withDimensions(DimensionFilter... dimensions)
A list of dimensions to filter against. |
ListMetricsRequest |
withMetricName(String metricName)
The name of the metric to filter against. |
ListMetricsRequest |
withNamespace(String namespace)
The namespace to filter against. |
ListMetricsRequest |
withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ListMetricsRequest()
Method Detail |
---|
public String getNamespace()
Constraints:
Length: 1 - 255
Pattern: [^:].*
public void setNamespace(String namespace)
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace to filter against.public ListMetricsRequest withNamespace(String namespace)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace to filter against.
public String getMetricName()
Constraints:
Length: 1 - 255
public void setMetricName(String metricName)
Constraints:
Length: 1 - 255
metricName
- The name of the metric to filter against.public ListMetricsRequest withMetricName(String metricName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
metricName
- The name of the metric to filter against.
public List<DimensionFilter> getDimensions()
Constraints:
Length: 0 - 10
public void setDimensions(Collection<DimensionFilter> dimensions)
Constraints:
Length: 0 - 10
dimensions
- A list of dimensions to filter against.public ListMetricsRequest withDimensions(DimensionFilter... dimensions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
dimensions
- A list of dimensions to filter against.
public ListMetricsRequest withDimensions(Collection<DimensionFilter> dimensions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
dimensions
- A list of dimensions to filter against.
public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The token returned by a previous call to indicate that there is more
data available.public ListMetricsRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The token returned by a previous call to indicate that there is more
data available.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |