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.
Up to 500 results are returned for any one call. To retrieve further results, use returned
NextToken
values with subsequent ListMetrics
operations.
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.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
List up to 500 valid metrics for which there is recorded data available.
// List metrics $cw = new AmazonCloudWatch(); $response = $cw->list_metrics(); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/cloudwatch.class.php | Toggle source view (15 lines) | View on GitHub