execute_query
¶
execute_query(
query_statement: QueryStatement,
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = 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/io_t_site_wise.py
5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 | |