Description
Gets information about a task.
Request syntax
GET /jobs/{Id}/tasks/{TaskName}
Attribute description
Attribute |
Type |
Required |
Description |
Id |
string |
Yes |
ID of a job. |
TaskName |
string |
Yes |
ID of a task. |
Response
Success
The 200 status code and the following task status information are returned:
{
"TaskName": "taskA"
"State": "Running",
"StartTime": "2016-11-01T15:25:03.020203Z",
"EndTime": "",
"InstanceMetrics": {
"WaitingCount": 0,
"RunningCount": 1,
"FinishedCount": 0,
"FailedCount": 0,
"StoppedCount": 0
}
}
Attribute description
Attribute |
Type |
Required or Not |
Description |
TaskName |
string |
Yes |
Name of a task. |
State |
String |
Yes |
State of a task. |
StartTime |
string |
Yes |
Start time of a task. |
EndTime |
string |
Yes |
End time of a task. |
InstanceMetrics |
object |
Yes |
Details about instance metrics. |
InstanceMetrics
Attribute |
Type |
Required or Not |
Description |
WaitingCount |
int |
Yes |
Number of waiting tasks. |
RunningCount |
int |
Yes |
Number of running tasks. |
FinishedCount |
int |
Yes |
Number of finished tasks. |
FailedCount |
int |
Yes |
Number of failed tasks. |
StoppedCount |
int |
Yes |
Number of stopped tasks. |
Error codes
Error code |
Error message |
Status code |
Syntax |
InvalidResource.NotFound |
Specified resource is not found. |
404 |
The user requested resource does not exist. |