libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
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.CloudWatchLogs.DescribeQueries

Description

Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, or have been executed recently in this account. You can request all queries or limit it to queries of a specific log group or queries with a certain status.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeQueries Source #

See: newDescribeQueries smart constructor.

Constructors

DescribeQueries' 

Fields

Instances

Instances details
Eq DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Read DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Show DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Generic DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Associated Types

type Rep DescribeQueries :: Type -> Type #

NFData DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Methods

rnf :: DescribeQueries -> () #

Hashable DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

ToJSON DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

AWSPager DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

AWSRequest DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Associated Types

type AWSResponse DescribeQueries #

ToHeaders DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

ToPath DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

ToQuery DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

type Rep DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

type Rep DescribeQueries = D1 ('MetaData "DescribeQueries" "Amazonka.CloudWatchLogs.DescribeQueries" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "DescribeQueries'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QueryStatus)) :*: S1 ('MetaSel ('Just "logGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse DescribeQueries Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

newDescribeQueries :: DescribeQueries Source #

Create a value of DescribeQueries 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:status:DescribeQueries', describeQueries_status - Limits the returned queries to only those that have the specified status. Valid values are Cancelled, Complete, Failed, Running, and Scheduled.

$sel:logGroupName:DescribeQueries', describeQueries_logGroupName - Limits the returned queries to only those for the specified log group.

$sel:nextToken:DescribeQueries', describeQueries_nextToken - Undocumented member.

$sel:maxResults:DescribeQueries', describeQueries_maxResults - Limits the number of returned queries to the specified number.

Request Lenses

describeQueries_status :: Lens' DescribeQueries (Maybe QueryStatus) Source #

Limits the returned queries to only those that have the specified status. Valid values are Cancelled, Complete, Failed, Running, and Scheduled.

describeQueries_logGroupName :: Lens' DescribeQueries (Maybe Text) Source #

Limits the returned queries to only those for the specified log group.

describeQueries_maxResults :: Lens' DescribeQueries (Maybe Natural) Source #

Limits the number of returned queries to the specified number.

Destructuring the Response

data DescribeQueriesResponse Source #

See: newDescribeQueriesResponse smart constructor.

Constructors

DescribeQueriesResponse' 

Fields

Instances

Instances details
Eq DescribeQueriesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Read DescribeQueriesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Show DescribeQueriesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Generic DescribeQueriesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Associated Types

type Rep DescribeQueriesResponse :: Type -> Type #

NFData DescribeQueriesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

Methods

rnf :: DescribeQueriesResponse -> () #

type Rep DescribeQueriesResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.DescribeQueries

type Rep DescribeQueriesResponse = D1 ('MetaData "DescribeQueriesResponse" "Amazonka.CloudWatchLogs.DescribeQueries" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "DescribeQueriesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [QueryInfo])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeQueriesResponse Source #

Create a value of DescribeQueriesResponse 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:queries:DescribeQueriesResponse', describeQueriesResponse_queries - The list of queries that match the request.

$sel:nextToken:DescribeQueries', describeQueriesResponse_nextToken - Undocumented member.

$sel:httpStatus:DescribeQueriesResponse', describeQueriesResponse_httpStatus - The response's http status code.

Response Lenses

describeQueriesResponse_queries :: Lens' DescribeQueriesResponse (Maybe [QueryInfo]) Source #

The list of queries that match the request.