V2.5 Query Command Job Statistics


Query command job statistics.

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 OK if successful. Other returned values indicate failure.

requestId

String

A unique ID to identify a request.

data

StatusCount Struct Array

See StatusCount Struct.

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