amazonka-cloudwatch-0.3.3: Amazon CloudWatch SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatch.ListMetrics

Contents

Description

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.

http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html

Synopsis

Request

Request constructor

listMetrics :: ListMetrics Source

ListMetrics constructor.

The fields accessible through corresponding lenses are:

Request lenses

lmDimensions :: Lens' ListMetrics [DimensionFilter] Source

A list of dimensions to filter against.

lmMetricName :: Lens' ListMetrics (Maybe Text) Source

The name of the metric to filter against.

lmNamespace :: Lens' ListMetrics (Maybe Text) Source

The namespace to filter against.

lmNextToken :: Lens' ListMetrics (Maybe Text) Source

The token returned by a previous call to indicate that there is more data available.

Response

Response constructor

listMetricsResponse :: ListMetricsResponse Source

ListMetricsResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

lmrMetrics :: Lens' ListMetricsResponse [Metric] Source

A list of metrics used to generate statistics for an AWS account.

lmrNextToken :: Lens' ListMetricsResponse (Maybe Text) Source

A string that marks the start of the next batch of returned results.