V2.5 Query Command Job Statistics¶
Query the data analysis information of tasks to issue commands to a batch of devices.
Request Format¶
POST https://{apigw-address}/connect-service/v2.5/commands?action=queryStatistics
Request Parameters (URI)¶
Name  | 
Location (Path/Query)  | 
Mandatory/Optional  | 
Data Type  | 
Description  | 
|---|---|---|---|---|
orgId  | 
Query  | 
Mandatory  | 
String  | 
The organization ID which the asset belongs to. How to get orgId>>  | 
jobId  | 
Query  | 
Mandatory  | 
String  | 
Command Job ID.  | 
Response Parameters¶
Name  | 
Data Type  | 
Description  | 
|---|---|---|
code  | 
number  | 
Failed or succeeded to create an alert. 0: succeeded, -1: failed.  | 
msg  | 
String  | 
Returns   | 
requestId  | 
String  | 
A unique ID to identify a request.  | 
data  | 
StatusCount Struct Array  | 
See StatusCount Struct.  | 
StatusCount Struct ¶
Name  | 
Data Type  | 
Description  | 
|---|---|---|
total  | 
Integer  | 
Total.  | 
init  | 
Integer  | 
Initialization.  | 
published  | 
Integer  | 
Published  | 
inProgress  | 
Integer  | 
In progress.  | 
succeed  | 
Integer  | 
Successfully.  | 
failed  | 
Integer  | 
Failed.  | 
canceled  | 
Integer  | 
Cancel.  | 
ttlTimeout  | 
Integer  | 
ttl timeout.  | 
rspTimeout  | 
Integer  | 
rsp timeout.  | 
Samples¶
Request Sample¶
url: https://{apigw-address}/connect-service/v2.5/commands?action=queryJobStatistics&jobId=jobId&orgId=yourOrgId
method: POST
Return Sample¶
{
    "code": 0,
    "msg": "OK",
    "requestId": "7a0a5dee-2b47-4241-95fa-48c6d9a41e23",
    "data": {
        "total": 1,
        "init": 1,
        "published": 0,
        "inProgress": 0,
        "succeed": 0,
        "failed": 0,
        "canceled": 0,
        "ttlTimeout": 0,
        "rspTimeout": 0
    }
}