CloudWatchInternetMonitor / Client / get_query_status
get_query_status#
- CloudWatchInternetMonitor.Client.get_query_status(**kwargs)#
Returns the current status of a query for the Amazon CloudWatch Internet Monitor query interface, for a specified query ID and monitor. When you run a query, check the status to make sure that the query has
SUCCEEDEDbefore you review the results.QUEUED: The query is scheduled to run.RUNNING: The query is in progress but not complete.SUCCEEDED: The query completed sucessfully.FAILED: The query failed due to an error.CANCELED: The query was canceled.
See also: AWS API Documentation
Request Syntax
response = client.get_query_status( MonitorName='string', QueryId='string' )
- Parameters:
MonitorName (string) –
[REQUIRED]
The name of the monitor.
QueryId (string) –
[REQUIRED]
The ID of the query that you want to return the status for. A
QueryIdis an internally-generated dentifier for a specific query.
- Return type:
dict
- Returns:
Response Syntax
{ 'Status': 'QUEUED'|'RUNNING'|'SUCCEEDED'|'FAILED'|'CANCELED' }
Response Structure
(dict) –
Status (string) –
The current status for a query.
Exceptions
CloudWatchInternetMonitor.Client.exceptions.InternalServerExceptionCloudWatchInternetMonitor.Client.exceptions.AccessDeniedExceptionCloudWatchInternetMonitor.Client.exceptions.ThrottlingExceptionCloudWatchInternetMonitor.Client.exceptions.LimitExceededExceptionCloudWatchInternetMonitor.Client.exceptions.ValidationException