ektravel commented on code in PR #14579:
URL: https://github.com/apache/druid/pull/14579#discussion_r1265863716


##########
docs/api-reference/supervisor-api.md:
##########
@@ -23,89 +23,3075 @@ sidebar_label: Supervisors
   ~ under the License.
   -->
 
-This document describes the API endpoints to manage and monitor supervisors 
for Apache Druid.
+This document describes the API endpoints to manage and monitor Supervisors 
for Apache Druid.
 
-## Supervisors
+In this document, `http://<SERVICE_IP>:<SERVICE_PORT>` is a placeholder for 
the server address of deployment and the service port. For example, on the 
quickstart configuration, replace `http://<ROUTER_IP>:<ROUTER_PORT>` with 
`http://localhost:8888`.
 
-`GET /druid/indexer/v1/supervisor`
+## Supervisor information
 
-Returns a list of strings of the currently active supervisor ids.
+### Get an array of active Supervisors
 
-`GET /druid/indexer/v1/supervisor?full`
+#### URL
 
-Returns a list of objects of the currently active supervisors.
+<code className="getAPI">GET</code> `/druid/indexer/v1/supervisor`
+
+Retrieves an array of active Supervisors. Returns a response object that 
includes an array of strings representing the names of the active Supervisors. 
If there are no active Supervisors, it returns an empty array.
+
+#### Responses
+
+<!--DOCUSAURUS_CODE_TABS-->
+
+<!--200 SUCCESS-->
+<br/>
+*Successfully retrieved array of active Supervisor IDs* 
+
+<!--END_DOCUSAURUS_CODE_TABS-->
+
+---
+
+#### Sample request
+
+<!--DOCUSAURUS_CODE_TABS-->
+
+<!--cURL-->
+```shell
+curl "http://<ROUTER_IP>:<ROUTER_PORT>/druid/indexer/v1/supervisor"
+```
+<!--HTTP-->
+```HTTP
+GET /druid/indexer/v1/supervisor HTTP/1.1
+Host: http://<ROUTER_IP>:<ROUTER_PORT>
+```
+<!--END_DOCUSAURUS_CODE_TABS-->
+
+#### Sample response
+
+<details>
+  <summary>Click to show sample response</summary>
+  
+  ```json
+  [
+    "wikipedia_stream",
+    "social_media"
+  ]
+  ```
+</details>
+
+### Get an array of active Supervisor objects
+
+#### URL
+
+<code className="getAPI">GET</code> `/druid/indexer/v1/supervisor?full`
+
+Retrieves an array of active Supervisor objects. Each object has properties 
relevant to the Supervisor: `id`, `state`, `detailedState`, `healthy`, and 
`spec`. 
+
+See the following table for details on properties within the response object:
 
 |Field|Type|Description|
 |---|---|---|
-|`id`|String|supervisor unique identifier|
-|`state`|String|basic state of the supervisor. Available 
states:`UNHEALTHY_SUPERVISOR`, `UNHEALTHY_TASKS`, `PENDING`, `RUNNING`, 
`SUSPENDED`, `STOPPING`. Check [Kafka 
Docs](../development/extensions-core/kafka-supervisor-operations.md) for 
details.|
-|`detailedState`|String|supervisor specific state. See documentation of 
specific supervisor for details: 
[Kafka](../development/extensions-core/kafka-ingestion.md) or 
[Kinesis](../development/extensions-core/kinesis-ingestion.md)|
-|`healthy`|Boolean|true or false indicator of overall supervisor health|
-|`spec`|SupervisorSpec|JSON specification of supervisor|
+|`id`|String|Supervisor unique identifier|
+|`state`|String|The basic state of the supervisor. Available 
states:`UNHEALTHY_SUPERVISOR`, `UNHEALTHY_TASKS`, `PENDING`, `RUNNING`, 
`SUSPENDED`, `STOPPING`. Check [Kafka 
Docs](../development/extensions-core/kafka-supervisor-operations.md) for 
details.|
+|`detailedState`|String|The Supervisor specific state. See documentation of 
specific supervisor for details: 
[Kafka](../development/extensions-core/kafka-ingestion.md) or 
[Kinesis](../development/extensions-core/kinesis-ingestion.md)|
+|`healthy`|Boolean|True or false indicator of overall Supervisor health|

Review Comment:
   ```suggestion
   |`healthy`|Boolean|Supervisor health indicator.|
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to