All docs This doc
                                                                                                                                                                                                                                                                                                                                   
||
Skip to end of metadata
Go to start of metadata

Query records in Siddhi store

Overview

DescriptionQueries records in the Siddhi store. For more information, see Managing Stored Data via REST API.
API Context/stores/query
HTTP MethodPOST
Request/Response Formatapplication/json
AuthenticationBasic
Usernameadmin
Passwordadmin
RuntimeWorker

curl command syntax

curl -X POST https://localhost:9443/stores/query -H "content-type: application/json" -u "admin:admin" 
-d '{"appName" : "AggregationTest", "query" : "from stockAggregation select *" }' -k


Sample curl command

curl -X POST https://localhost:9444/stores/query -H "content-type: application/json" -u "admin:admin" -d '{"appName" : "ApiRequestSummary", "query" : "from API_REQUEST_SUMMARY within 1586249325000L, 1586335725000L per \"days\" select userId, apiPublisher, sum(totalRequestCount) as net_total_requests group by userId, apiPublisher order by net_total_requests DESC;" }' -k

Sample output

{"records":[["admin","admin",66]]}

Response

HTTP Status Code

200 or 404

For descriptions of the HTTP status codes, see HTTP Status Codes.

  • No labels