get_query_results
¶
get_query_results(
workspace_name: WorkspaceName,
query_id: QueryId,
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = None,
max_results: Optional[QueryMaxResults] = None,
next_token: Optional[QueryNextToken] = None,
) -> GetQueryResultsResponse
Retrieves the paginated results of a query. Returns empty rows if the query is not yet complete.
Parameters:
-
workspace_name(WorkspaceName) –The name of the workspace associated with the query.
-
query_id(QueryId) –The unique identifier for the query execution.
-
max_results(Optional[QueryMaxResults], default:None) –The maximum number of results to return for each paginated request.
-
next_token(Optional[QueryNextToken], default:None) –The token to be used for the next set of paginated results.
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.
-
ResourceNotFoundException–The requested resource can't be found.
-
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.
-
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
6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 | |