amazonka-health-1.5.0: Amazon Health APIs and Notifications SDK.

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

Network.AWS.AWSHealth.DescribeEventAggregates

Contents

Description

Returns the number of events of each event type (issue, scheduled change, and account notification). If no filter is specified, the counts of all events in each category are returned.

This operation returns paginated results.

Synopsis

Creating a Request

describeEventAggregates Source #

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

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

  • deaNextToken - If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.
  • deaFilter - Values to narrow the results returned.
  • deaMaxResults - The maximum number of items to return in one batch, between 10 and 100, inclusive.
  • deaAggregateField - The only currently supported value is eventTypeCategory .

data DescribeEventAggregates Source #

See: describeEventAggregates smart constructor.

Instances

Eq DescribeEventAggregates Source # 
Data DescribeEventAggregates Source # 

Methods

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

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

toConstr :: DescribeEventAggregates -> Constr #

dataTypeOf :: DescribeEventAggregates -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeEventAggregates Source # 
Show DescribeEventAggregates Source # 
Generic DescribeEventAggregates Source # 
Hashable DescribeEventAggregates Source # 
ToJSON DescribeEventAggregates Source # 
NFData DescribeEventAggregates Source # 

Methods

rnf :: DescribeEventAggregates -> () #

AWSPager DescribeEventAggregates Source # 
AWSRequest DescribeEventAggregates Source # 
ToQuery DescribeEventAggregates Source # 
ToPath DescribeEventAggregates Source # 
ToHeaders DescribeEventAggregates Source # 
type Rep DescribeEventAggregates Source # 
type Rep DescribeEventAggregates = D1 (MetaData "DescribeEventAggregates" "Network.AWS.AWSHealth.DescribeEventAggregates" "amazonka-health-1.5.0-IypRKIQAA2YC8xaUNVgJO" False) (C1 (MetaCons "DescribeEventAggregates'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_deaNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_deaFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EventFilter)))) ((:*:) (S1 (MetaSel (Just Symbol "_deaMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_deaAggregateField") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 EventAggregateField)))))
type Rs DescribeEventAggregates Source # 

Request Lenses

deaNextToken :: Lens' DescribeEventAggregates (Maybe Text) Source #

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

deaFilter :: Lens' DescribeEventAggregates (Maybe EventFilter) Source #

Values to narrow the results returned.

deaMaxResults :: Lens' DescribeEventAggregates (Maybe Natural) Source #

The maximum number of items to return in one batch, between 10 and 100, inclusive.

deaAggregateField :: Lens' DescribeEventAggregates EventAggregateField Source #

The only currently supported value is eventTypeCategory .

Destructuring the Response

describeEventAggregatesResponse Source #

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

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

  • drsNextToken - If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.
  • drsEventAggregates - The number of events in each category that meet the optional filter criteria.
  • drsResponseStatus - -- | The response status code.

data DescribeEventAggregatesResponse Source #

See: describeEventAggregatesResponse smart constructor.

Instances

Eq DescribeEventAggregatesResponse Source # 
Data DescribeEventAggregatesResponse Source # 

Methods

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

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

toConstr :: DescribeEventAggregatesResponse -> Constr #

dataTypeOf :: DescribeEventAggregatesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeEventAggregatesResponse Source # 
Show DescribeEventAggregatesResponse Source # 
Generic DescribeEventAggregatesResponse Source # 
NFData DescribeEventAggregatesResponse Source # 
type Rep DescribeEventAggregatesResponse Source # 
type Rep DescribeEventAggregatesResponse = D1 (MetaData "DescribeEventAggregatesResponse" "Network.AWS.AWSHealth.DescribeEventAggregates" "amazonka-health-1.5.0-IypRKIQAA2YC8xaUNVgJO" False) (C1 (MetaCons "DescribeEventAggregatesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_drsEventAggregates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EventAggregate]))) (S1 (MetaSel (Just Symbol "_drsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

drsNextToken :: Lens' DescribeEventAggregatesResponse (Maybe Text) Source #

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

drsEventAggregates :: Lens' DescribeEventAggregatesResponse [EventAggregate] Source #

The number of events in each category that meet the optional filter criteria.