amazonka-cloudwatch-1.4.5: Amazon CloudWatch SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatch.ListMetrics

Contents

Description

List the specified metrics. You can use the returned metrics with GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics .

This operation returns paginated results.

Synopsis

Creating a Request

listMetrics :: ListMetrics #

Creates a value of ListMetrics with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lmMetricName - The name of the metric to filter against.
  • lmNamespace - The namespace to filter against.
  • lmNextToken - The token returned by a previous call to indicate that there is more data available.
  • lmDimensions - The dimensions to filter against.

data ListMetrics #

See: listMetrics smart constructor.

Instances

Eq ListMetrics # 
Data ListMetrics # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListMetrics -> c ListMetrics #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListMetrics #

toConstr :: ListMetrics -> Constr #

dataTypeOf :: ListMetrics -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListMetrics) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListMetrics) #

gmapT :: (forall b. Data b => b -> b) -> ListMetrics -> ListMetrics #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListMetrics -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListMetrics -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListMetrics -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListMetrics -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListMetrics -> m ListMetrics #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListMetrics -> m ListMetrics #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListMetrics -> m ListMetrics #

Read ListMetrics # 
Show ListMetrics # 
Generic ListMetrics # 

Associated Types

type Rep ListMetrics :: * -> * #

Hashable ListMetrics # 
NFData ListMetrics # 

Methods

rnf :: ListMetrics -> () #

AWSPager ListMetrics # 
AWSRequest ListMetrics # 
ToQuery ListMetrics # 
ToPath ListMetrics # 
ToHeaders ListMetrics # 

Methods

toHeaders :: ListMetrics -> [Header] #

type Rep ListMetrics # 
type Rep ListMetrics = D1 (MetaData "ListMetrics" "Network.AWS.CloudWatch.ListMetrics" "amazonka-cloudwatch-1.4.5-6lzLGskgWVL8XlbKNENoWN" False) (C1 (MetaCons "ListMetrics'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lmMetricName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lmNamespace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_lmNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lmDimensions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DimensionFilter]))))))
type Rs ListMetrics # 

Request Lenses

lmMetricName :: Lens' ListMetrics (Maybe Text) #

The name of the metric to filter against.

lmNamespace :: Lens' ListMetrics (Maybe Text) #

The namespace to filter against.

lmNextToken :: Lens' ListMetrics (Maybe Text) #

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

lmDimensions :: Lens' ListMetrics [DimensionFilter] #

The dimensions to filter against.

Destructuring the Response

listMetricsResponse #

Creates a value of ListMetricsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ListMetricsResponse #

See: listMetricsResponse smart constructor.

Instances

Eq ListMetricsResponse # 
Data ListMetricsResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListMetricsResponse -> c ListMetricsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListMetricsResponse #

toConstr :: ListMetricsResponse -> Constr #

dataTypeOf :: ListMetricsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListMetricsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListMetricsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListMetricsResponse -> ListMetricsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListMetricsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListMetricsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListMetricsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListMetricsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListMetricsResponse -> m ListMetricsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListMetricsResponse -> m ListMetricsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListMetricsResponse -> m ListMetricsResponse #

Read ListMetricsResponse # 
Show ListMetricsResponse # 
Generic ListMetricsResponse # 
NFData ListMetricsResponse # 

Methods

rnf :: ListMetricsResponse -> () #

type Rep ListMetricsResponse # 
type Rep ListMetricsResponse = D1 (MetaData "ListMetricsResponse" "Network.AWS.CloudWatch.ListMetrics" "amazonka-cloudwatch-1.4.5-6lzLGskgWVL8XlbKNENoWN" False) (C1 (MetaCons "ListMetricsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lmrsMetrics") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Metric]))) ((:*:) (S1 (MetaSel (Just Symbol "_lmrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lmrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

lmrsNextToken :: Lens' ListMetricsResponse (Maybe Text) #

The token that marks the start of the next batch of returned results.

lmrsResponseStatus :: Lens' ListMetricsResponse Int #

  • - | The response status code.