describe_queries
async
¶
describe_queries(
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
log_group_name: Optional[LogGroupName] = None,
status: Optional[QueryStatus] = None,
max_results: Optional[DescribeQueriesMaxResults] = None,
next_token: Optional[NextToken] = None,
query_language: Optional[QueryLanguage] = None,
) -> DescribeQueriesResponse
Returns a list of CloudWatch Logs Insights queries that are scheduled, running, or have been run 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 includes both interactive queries started directly by users and automated queries executed by scheduled query configurations. Scheduled query executions appear in the results alongside manually initiated queries, providing visibility into all query activity in your account.
Parameters:
-
log_group_name(Optional[LogGroupName], default:None) –Limits the returned queries to only those for the specified log group.
-
status(Optional[QueryStatus], default:None) –Limits the returned queries to only those that have the specified status. Valid values are
Cancelled,Complete,Failed,Running, andScheduled. -
max_results(Optional[DescribeQueriesMaxResults], default:None) –Limits the number of returned queries to the specified number.
-
query_language(Optional[QueryLanguage], default:None) –Limits the returned queries to only the queries that use the specified query language.
Raises:
-
InvalidParameterException–A parameter is specified incorrectly.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service cannot complete the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 | |