From 154e866b87ad90e08798e1cc527eff2857a55002 Mon Sep 17 00:00:00 2001 From: Guangdong Liu <804167098@qq.com> Date: Fri, 13 Sep 2024 09:36:35 +0800 Subject: [PATCH] [Feature][Rest Api] Additional rest api documentation. (#7645) Co-authored-by: gdliu3 --- docs/en/seatunnel-engine/rest-api.md | 30 ++++++++++++++++++++++++++++ docs/zh/seatunnel-engine/rest-api.md | 29 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/docs/en/seatunnel-engine/rest-api.md b/docs/en/seatunnel-engine/rest-api.md index 3ffd4b4a685..a1ddc76e539 100644 --- a/docs/en/seatunnel-engine/rest-api.md +++ b/docs/en/seatunnel-engine/rest-api.md @@ -69,6 +69,33 @@ network: ------------------------------------------------------------------------------------------ +### Returns thread dump information for the current node. + +
+ GET /hazelcast/rest/maps/thread-dump (Returns thread dump information for the current node.) + +#### Parameters + + +#### Responses + +```json +[ + { + "threadName": "", + "threadId": 0, + "threadState": "", + "stackTrace": "" + } +] +``` + +
+ +------------------------------------------------------------------------------------------ + + + ### Returns An Overview And State Of All Jobs
@@ -278,6 +305,9 @@ When we can't get the job info, the response will be: ```json [ { + "isMaster": "true", + "host": "localhost", + "port": "5801", "processors":"8", "physical.memory.total":"16.0G", "physical.memory.free":"16.3M", diff --git a/docs/zh/seatunnel-engine/rest-api.md b/docs/zh/seatunnel-engine/rest-api.md index b01cdc8016a..3965a76ff25 100644 --- a/docs/zh/seatunnel-engine/rest-api.md +++ b/docs/zh/seatunnel-engine/rest-api.md @@ -68,6 +68,32 @@ network: ------------------------------------------------------------------------------------------ +### 返回当前节点的线程堆栈信息。 + +
+ GET /hazelcast/rest/maps/thread-dump (返回当前节点的线程堆栈信息。) + +#### Parameters + + +#### Responses + +```json +[ + { + "threadName": "", + "threadId": 0, + "threadState": "", + "stackTrace": "" + } +] +``` + +
+ +------------------------------------------------------------------------------------------ + + ### 返回所有作业及其当前状态的概览
@@ -277,6 +303,9 @@ network: ```json [ { + "isMaster": "true", + "host": "localhost", + "port": "5801", "processors":"8", "physical.memory.total":"16.0G", "physical.memory.free":"16.3M",