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

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

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

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

  • aggregateField :: EventAggregateField

    The only currently supported value is eventTypeCategory.

Instances

Instances details
Eq DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Read DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

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

NFData DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Methods

rnf :: DescribeEventAggregates -> () #

Hashable DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

ToJSON 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

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

type Rep DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

type Rep DescribeEventAggregates = D1 ('MetaData "DescribeEventAggregates" "Amazonka.AWSHealth.DescribeEventAggregates" "libZSservicesZSamazonka-healthZSamazonka-health" 'False) (C1 ('MetaCons "DescribeEventAggregates'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventFilter))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "aggregateField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EventAggregateField))))
type AWSResponse DescribeEventAggregates Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

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

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

Request Lenses

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_maxResults :: Lens' DescribeEventAggregates (Maybe Natural) Source #

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

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

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

  • eventAggregates :: Maybe [EventAggregate]

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Read DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Show DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Generic DescribeEventAggregatesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventAggregates

Associated Types

type Rep DescribeEventAggregatesResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-healthZSamazonka-health" 'False) (C1 ('MetaCons "DescribeEventAggregatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "eventAggregates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EventAggregate])) :*: 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:nextToken: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:eventAggregates:DescribeEventAggregatesResponse', describeEventAggregatesResponse_eventAggregates - The number of events in each category that meet the optional filter criteria.

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

Response Lenses

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.

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

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