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

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Data DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.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 Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Show DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Generic DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Associated Types

type Rep DescribeEventAggregates :: Type -> Type #

Hashable DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

ToJSON DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

AWSPager DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

AWSRequest DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Associated Types

type Rs DescribeEventAggregates :: Type #

ToHeaders DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

ToPath DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

ToQuery DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

NFData DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Methods

rnf :: DescribeEventAggregates -> () #

type Rep DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregates = D1 (MetaData "DescribeEventAggregates" "Network.AWS.AWSHealth.DescribeEventAggregates" "amazonka-health-1.6.1-BRRcu5UluZl9SYo4GukvCE" False) (C1 (MetaCons "DescribeEventAggregates'" PrefixI True) ((S1 (MetaSel (Just "_deaNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_deaFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EventFilter))) :*: (S1 (MetaSel (Just "_deaMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_deaAggregateField") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 EventAggregateField))))
type Rs DescribeEventAggregates Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

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 # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Data DescribeEventAggregatesResponse Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

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 # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Show DescribeEventAggregatesResponse Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Generic DescribeEventAggregatesResponse Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Associated Types

type Rep DescribeEventAggregatesResponse :: Type -> Type #

NFData DescribeEventAggregatesResponse Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregatesResponse Source # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregatesResponse = D1 (MetaData "DescribeEventAggregatesResponse" "Network.AWS.AWSHealth.DescribeEventAggregates" "amazonka-health-1.6.1-BRRcu5UluZl9SYo4GukvCE" False) (C1 (MetaCons "DescribeEventAggregatesResponse'" PrefixI True) (S1 (MetaSel (Just "_drsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_drsEventAggregates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EventAggregate])) :*: S1 (MetaSel (Just "_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.