techdocsmith commented on code in PR #14492:
URL: https://github.com/apache/druid/pull/14492#discussion_r1260122960


##########
docs/api-reference/tasks-api.md:
##########
@@ -23,79 +23,1374 @@ sidebar_label: Tasks
   ~ under the License.
   -->
 
-This document describes the API endpoints for task retrieval, submission, and 
deletion for Apache Druid.
+This document describes the API endpoints for task retrieval, submission, and 
deletion for Apache Druid. Tasks are individual jobs performed by Druid to 
complete operations such as ingestion, querying, and compaction.  
 
-## Tasks
+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`.
 
-Note that all _interval_ URL parameters are ISO 8601 strings delimited by a 
`_` instead of a `/`
-as in `2016-06-27_2016-06-28`.
+## Task information and retrieval 
 
-`GET /druid/indexer/v1/tasks`
+### Get an array of tasks
 
-Retrieve list of tasks. Accepts query string parameters `state`, `datasource`, 
`createdTimeInterval`, `max`, and `type`.
+#### URL
+<code class="getAPI">GET</code> `/druid/indexer/v1/tasks`
 
-|Query Parameter |Description |
-|---|---|
-|`state`|filter list of tasks by task state, valid options are `running`, 
`complete`, `waiting`, and `pending`.|
-| `datasource`| return tasks filtered by Druid datasource.|
-| `createdTimeInterval`| return tasks created within the specified interval. |
-| `max`| maximum number of `"complete"` tasks to return. Only applies when 
`state` is set to `"complete"`.|
-| `type`| filter tasks by task type. See [task 
documentation](../ingestion/tasks.md) for more details.|
+Retrieves an array of all tasks in the Druid cluster. Each task object 
includes information on its ID, status, associated datasource, and other 
metadata. For definitions of the response properties, see the [Tasks 
table](../querying/sql-metadata-tables.md#tasks-table).
 
+#### Query parameters
 
-`GET /druid/indexer/v1/completeTasks`
+The endpoint supports a set of optional query parameters to filter results. 
 
-Retrieve list of complete tasks. Equivalent to 
`/druid/indexer/v1/tasks?state=complete`.
+|Parameter|Type|Description|
+|---|---|---|
+|`state`|String|Filter list of tasks by task state, valid options are 
`running`, `complete`, `waiting`, and `pending`.|
+| `datasource`|String| Return tasks filtered by Druid datasource.|
+| `createdTimeInterval`|String (ISO-8601)| Return tasks created within the 
specified interval. The interval string should be delimited by `_` instead of 
`/`. For example, `2023-06-27_2023-06-28`.|

Review Comment:
   ```suggestion
   | `createdTimeInterval`|String (ISO-8601)| Return tasks created within the 
specified interval. Use `_` as the delimiter for the interval string. Do not 
use `/`. For example, `2023-06-27_2023-06-28`.|
   ```



-- 
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