amazonka-health-1.6.0: 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 #

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 #

See: describeEventAggregates smart constructor.

Instances
Eq DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

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

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Show DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Generic DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Associated Types

type Rep DescribeEventAggregates :: * -> * #

Hashable DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

ToJSON DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

AWSPager DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

AWSRequest DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Associated Types

type Rs DescribeEventAggregates :: * #

ToHeaders DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

ToPath DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

ToQuery DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

NFData DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Methods

rnf :: DescribeEventAggregates -> () #

type Rep DescribeEventAggregates # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregates = D1 (MetaData "DescribeEventAggregates" "Network.AWS.AWSHealth.DescribeEventAggregates" "amazonka-health-1.6.0-F7iViukHIETCkBa9Qq00Mc" 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 # 
Instance details

Defined in Network.AWS.AWSHealth.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, between 10 and 100, inclusive.

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

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

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

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Show DescribeEventAggregatesResponse # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Generic DescribeEventAggregatesResponse # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

Associated Types

type Rep DescribeEventAggregatesResponse :: * -> * #

NFData DescribeEventAggregatesResponse # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregatesResponse # 
Instance details

Defined in Network.AWS.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregatesResponse = D1 (MetaData "DescribeEventAggregatesResponse" "Network.AWS.AWSHealth.DescribeEventAggregates" "amazonka-health-1.6.0-F7iViukHIETCkBa9Qq00Mc" 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) #

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.