amazonka-health-2.0: Amazon Health APIs and Notifications SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AWSHealth.DescribeEventAggregates

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 API operation uses pagination. Specify the nextToken parameter in the next request to return more results.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeEventAggregates Source #

See: newDescribeEventAggregates smart constructor.

Constructors

DescribeEventAggregates' 

Fields

  • filter' :: Maybe EventFilter

    Values to narrow the results returned.

  • maxResults :: Maybe Natural

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

  • nextToken :: 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.

  • aggregateField :: EventAggregateField

    The only currently supported value is eventTypeCategory.

Instances

Instances details
ToJSON DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

ToHeaders DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

ToPath DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

ToQuery DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

AWSPager DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

AWSRequest DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Generic DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Associated Types

type Rep DescribeEventAggregates :: Type -> Type #

Read DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Show DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

NFData DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Methods

rnf :: DescribeEventAggregates -> () #

Eq DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Hashable DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

type AWSResponse DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregates = D1 ('MetaData "DescribeEventAggregates" "Amazonka.AWSHealth.DescribeEventAggregates" "amazonka-health-2.0-97kQZARXu4I8k4sVSmOp5K" 'False) (C1 ('MetaCons "DescribeEventAggregates'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventFilter)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "aggregateField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EventAggregateField))))

newDescribeEventAggregates Source #

Create a value of DescribeEventAggregates with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:filter':DescribeEventAggregates', describeEventAggregates_filter - Values to narrow the results returned.

$sel:maxResults:DescribeEventAggregates', describeEventAggregates_maxResults - The maximum number of items to return in one batch, between 10 and 100, inclusive.

DescribeEventAggregates, describeEventAggregates_nextToken - 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.

$sel:aggregateField:DescribeEventAggregates', describeEventAggregates_aggregateField - The only currently supported value is eventTypeCategory.

Request Lenses

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

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

describeEventAggregates_nextToken :: 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.

describeEventAggregates_aggregateField :: Lens' DescribeEventAggregates EventAggregateField Source #

The only currently supported value is eventTypeCategory.

Destructuring the Response

data DescribeEventAggregatesResponse Source #

See: newDescribeEventAggregatesResponse smart constructor.

Constructors

DescribeEventAggregatesResponse' 

Fields

  • eventAggregates :: Maybe [EventAggregate]

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

  • nextToken :: 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Associated Types

type Rep DescribeEventAggregatesResponse :: Type -> Type #

Read DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Show DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

NFData DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Eq DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregatesResponse = D1 ('MetaData "DescribeEventAggregatesResponse" "Amazonka.AWSHealth.DescribeEventAggregates" "amazonka-health-2.0-97kQZARXu4I8k4sVSmOp5K" 'False) (C1 ('MetaCons "DescribeEventAggregatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventAggregates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EventAggregate])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeEventAggregatesResponse Source #

Create a value of DescribeEventAggregatesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:eventAggregates:DescribeEventAggregatesResponse', describeEventAggregatesResponse_eventAggregates - The number of events in each category that meet the optional filter criteria.

DescribeEventAggregates, describeEventAggregatesResponse_nextToken - 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.

$sel:httpStatus:DescribeEventAggregatesResponse', describeEventAggregatesResponse_httpStatus - The response's http status code.

Response Lenses

describeEventAggregatesResponse_eventAggregates :: Lens' DescribeEventAggregatesResponse (Maybe [EventAggregate]) Source #

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

describeEventAggregatesResponse_nextToken :: 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.