amazonka-health-1.4.5: Amazon Health APIs and Notifications 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.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.

Synopsis

Creating a Request

describeEventAggregates #

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.
  • deaAggregateField - The only currently supported value is eventTypeCategory .

data DescribeEventAggregates #

See: describeEventAggregates smart constructor.

Instances

Eq DescribeEventAggregates # 
Data DescribeEventAggregates # 

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 # 
Show DescribeEventAggregates # 
Generic DescribeEventAggregates # 
Hashable DescribeEventAggregates # 
ToJSON DescribeEventAggregates # 
NFData DescribeEventAggregates # 

Methods

rnf :: DescribeEventAggregates -> () #

AWSRequest DescribeEventAggregates # 
ToQuery DescribeEventAggregates # 
ToPath DescribeEventAggregates # 
ToHeaders DescribeEventAggregates # 
type Rep DescribeEventAggregates # 
type Rep DescribeEventAggregates = D1 (MetaData "DescribeEventAggregates" "Network.AWS.AWSHealth.DescribeEventAggregates" "amazonka-health-1.4.5-E6M6i11BIouHnurBp0iAtj" 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 DecidedUnpack) (Rec0 EventAggregateField)))))
type Rs DescribeEventAggregates # 

Request Lenses

deaNextToken :: Lens' DescribeEventAggregates (Maybe Text) #

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) #

Values to narrow the results returned.

deaMaxResults :: Lens' DescribeEventAggregates (Maybe Natural) #

The maximum number of items to return in one batch.

deaAggregateField :: Lens' DescribeEventAggregates EventAggregateField #

The only currently supported value is eventTypeCategory .

Destructuring the Response

describeEventAggregatesResponse #

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 #

See: describeEventAggregatesResponse smart constructor.

Instances

Eq DescribeEventAggregatesResponse # 
Data DescribeEventAggregatesResponse # 

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 # 
Show DescribeEventAggregatesResponse # 
Generic DescribeEventAggregatesResponse # 
NFData DescribeEventAggregatesResponse # 
type Rep DescribeEventAggregatesResponse # 
type Rep DescribeEventAggregatesResponse = D1 (MetaData "DescribeEventAggregatesResponse" "Network.AWS.AWSHealth.DescribeEventAggregates" "amazonka-health-1.4.5-E6M6i11BIouHnurBp0iAtj" 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 DecidedUnpack) (Rec0 Int)))))

Response Lenses

drsNextToken :: Lens' DescribeEventAggregatesResponse (Maybe Text) #

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] #

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