List the specified metrics. You can use the returned metrics with get_metric_data or get_metric_statistics to get statistical data.
See https://www.paws-r-sdk.com/docs/cloudwatch_list_metrics/ for full documentation.
Usage
cloudwatch_list_metrics(
Namespace = NULL,
MetricName = NULL,
Dimensions = NULL,
NextToken = NULL,
RecentlyActive = NULL,
IncludeLinkedAccounts = NULL,
OwningAccount = NULL
)Arguments
- Namespace
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
- MetricName
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
- Dimensions
The dimensions to filter against. Only the dimension with names that match exactly will be returned. If you specify one dimension name and a metric has that dimension and also other dimensions, it will be returned.
- NextToken
The token returned by a previous call to indicate that there is more data available.
- RecentlyActive
To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value of
PT3H. This is the only valid value for this parameter.The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 50 minutes more than the specified time interval.
- IncludeLinkedAccounts
If you are using this operation in a monitoring account, specify
trueto include metrics from source accounts in the returned data.The default is
false.- OwningAccount
When you use this operation in a monitoring account, use this field to return metrics only from one source account. To do so, specify that source account ID in this field, and also specify
trueforIncludeLinkedAccounts.