QUERY DETAIL

从FE获取所有的查询细节,获取关于查询执行的相关信息。 FE会返回在event_time之后的查询细节,其中event_time单位会精确到毫秒。

  1. curl -X GET http://fe_host:fe_http_port/api/query_detail?event_time=1592054515284

查询信息会以JSON格式返回。

  1. [
  2. {
  3. "eventTime": 1592201405063,
  4. "queryId": "a0a9259df9844029-845331577440a3bd",
  5. "startTime": 1592201405055,
  6. "endTime": 1592201405063,
  7. "latency": 8,
  8. "state": "FINISHED",
  9. "database": "test",
  10. "sql": "select * from table1"
  11. },
  12. {
  13. "eventTime": 1592201420842,
  14. "queryId": "21cd79c3e1634e8a-bdac090c7e7bcc36",
  15. "startTime": 1592201420834,
  16. "endTime": 1592201420842,
  17. "latency": 8,
  18. "state": "FINISHED",
  19. "database": "test",
  20. "sql": "select * from table1"
  21. }
  22. ]