Query Stats Action
SinceVersion dev
Request
1. 查看
2. get api/query_stats/<catalog_name>
3. get api/query_stats/<catalog_name>/<db_name>
4. get api/query_stats/<catalog_name>/<db_name>/<tbl_name>
6. 清空
7. delete api/query_stats/<catalog_name>/<db_name>
8. delete api/query_stats/<catalog_name>/<db_name>/<tbl_name>
Description
Get or delete the statistics information of the specified catalog database or table, if it is a doris catalog, you can use default_cluster
Path parameters
<catalog_name>specified catalog name<db_name>specified database name<tbl_name>specified table name
Query parameters
summaryif true, only return summary information, otherwise return all the detailed statistics information of the table, only used in get
Request body
1. GET /api/query_stats/default_cluster/test_query_db/baseall?summary=false
2. {
3. "msg": "success",
4. "code": 0,
5. "data": {
6. "summary": {
7. "query": 2
8. },
9. "detail": {
10. "baseall": {
11. "summary": {
12. "query": 2
13. }
14. }
15. }
16. },
17. "count": 0
18. }
Response
- return statistics information
Example
- use curl
1. curl --location -u root: 'http://127.0.0.1:8030/api/query_stats/default_cluster/test_query_db/baseall?summary=false'
