execute_query
async
¶
execute_query(
query_statement: QueryStatement,
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
next_token: Optional[ExecuteQueryNextToken] = None,
max_results: Optional[ExecuteQueryMaxResults] = None,
client_token: Optional[ClientToken] = None,
) -> ExecuteQueryResponse
Run SQL queries to retrieve metadata and time-series data from asset models, assets, measurements, metrics, transforms, and aggregates.
Parameters:
-
query_statement(QueryStatement) –The IoT SiteWise query statement.
-
next_token(Optional[ExecuteQueryNextToken], default:None) –The string that specifies the next page of results.
-
max_results(Optional[ExecuteQueryMaxResults], default:None) –The maximum number of results to return at one time.
-
Minimum is 1
-
Maximum is 20000
-
Default is 20000
-
-
client_token(Optional[ClientToken], default:None) –A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
Raises:
-
AccessDeniedException–Access is denied.
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
QueryTimeoutException–The query timed out.
-
ServiceUnavailableException–The requested service is unavailable.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
ValidationException–The validation failed for this query.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotsitewise/_services/async_io_t_site_wise.py
5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 | |