docs refinement: json format (#16080)

* docs refinement: json format

* Update docs/api-reference/tasks-api.md

Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com>

---------

Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com>
This commit is contained in:
Sensor 2024-03-11 15:49:14 +08:00 committed by GitHub
parent 2d628cce84
commit 2d62b4f09b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 15 deletions

View File

@ -894,20 +894,20 @@ Host: http://ROUTER_IP:ROUTER_PORT
```json ```json
{ {
'task': 'query-223549f8-b993-4483-b028-1b0d54713cad', "task": "query-223549f8-b993-4483-b028-1b0d54713cad",
'status': { "status": {
'id': 'query-223549f8-b993-4483-b028-1b0d54713cad', "id": "query-223549f8-b993-4483-b028-1b0d54713cad",
'groupId': 'query-223549f8-b993-4483-b028-1b0d54713cad', "groupId": "query-223549f8-b993-4483-b028-1b0d54713cad",
'type': 'query_controller', "type": "query_controller",
'createdTime': '2023-06-22T22:11:28.367Z', "createdTime": "2023-06-22T22:11:28.367Z",
'queueInsertionTime': '1970-01-01T00:00:00.000Z', "queueInsertionTime": "1970-01-01T00:00:00.000Z",
'statusCode': 'RUNNING', "statusCode": "RUNNING",
'status': 'RUNNING', "status": "RUNNING",
'runnerStatusCode': 'RUNNING', "runnerStatusCode": "RUNNING",
'duration': -1, "duration": -1,
'location': {'host': 'localhost', 'port': 8100, 'tlsPort': -1}, "location": {"host": "localhost", "port": 8100, "tlsPort": -1},
'dataSource': 'wikipedia_api', "dataSource": "wikipedia_api",
'errorMsg': None "errorMsg": null
} }
} }
``` ```
@ -1429,7 +1429,7 @@ Host: http://ROUTER_IP:ROUTER_PORT
```json ```json
{ {
'task': 'query-577a83dd-a14e-4380-bd01-c942b781236b' "task": "query-577a83dd-a14e-4380-bd01-c942b781236b"
} }
``` ```