This is an automated email from the ASF dual-hosted git repository. dzamo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/drill-site.git
commit 9244fe0c22f5777142600e4b556423c1aad58671 Author: James Turton <[email protected]> AuthorDate: Mon Jan 31 11:41:59 2022 +0200 Document profiles REST API call variations. --- .../rest-api/010-rest-api-introduction.md | 33 ++++++++++++++-------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/_docs/en/developer-information/rest-api/010-rest-api-introduction.md b/_docs/en/developer-information/rest-api/010-rest-api-introduction.md index 0d3cdce..adf3bc3 100644 --- a/_docs/en/developer-information/rest-api/010-rest-api-introduction.md +++ b/_docs/en/developer-information/rest-api/010-rest-api-introduction.md @@ -193,18 +193,27 @@ Get the profiles of running and completed queries. **Response Body** - { - "runningQueries" : [ ], - "finishedQueries" : [ { - "queryId" : "29b2e988-35e7-4c85-3151-32c7d3347f15", - "time" : "11/18/2015 16:23:19", - "location" : "http://localhost:8047/profile/29b2e988-35e7-4c85-3151-32c7d3347f15.json", - "foreman" : "10.250.50.31", - "query" : "select * from dfs.`/Users/joe-user/apache-drill-1.4.0/sample-data/donuts.json` where name= 'Cake'", - "state" : "COMPLETED", - "user" : "anonymous" - }, - . . . +```json +{ + "runningQueries" : [ ], + "finishedQueries" : [ { + "queryId" : "29b2e988-35e7-4c85-3151-32c7d3347f15", + "time" : "11/18/2015 16:23:19", + "location" : "http://localhost:8047/profile/29b2e988-35e7-4c85-3151-32c7d3347f15.json", + "foreman" : "10.250.50.31", + "query" : "select * from dfs.`/Users/joe-user/apache-drill-1.4.0/sample-data/donuts.json` where name= 'Cake'", + "state" : "COMPLETED", + "user" : "anonymous" + }, + . . . +} +``` + +#### Supported variations +``` +GET /profiles/[running|completed] +GET /profiles/json?status=[all|running|completed] +``` ----------
