查询应用下单任务调用统计
1. 请求
1.1 请求地址
区域 | 请求地址 |
---|---|
国内 | https://api.open.tuputech.com/v3/management/statistics/secret-task/<secretId> |
提示
<secretId>
需替换为您的应用 SID
,请联系客户经理为您开通及配置。关于 SID
详见 常见问题(FAQ)。
1.2 请求方法
POST
1.3 请求头
Content-Type: application/json
1.4 请求参数
参数名称 | 类型 | 是否必需 | 说明 |
---|---|---|---|
timestamp | Int | 是 | 当前服务器的 Unix 时间戳,可以是毫秒或秒级 |
nonce | Float | 是 | 随机数(建议使用 Unix 时间戳或若干位随机整数) |
signature | String | 是 |
|
startDate | String | 是 | 时间范围,起始日期, 时间格式 yyyy-MM-dd |
endDate | String | 是 | 时间范围,结束日期, 时间格式 yyyy-MM-dd |
taskId | String | 是 | 需要查询的识别任务 ID |
1.5 请求示例
{
"timestamp": "<timestamp>",
"nonce": "<nonce>",
"signature": "<signature>",
"startDate": "2022-11-25",
"endDate": "2022-12-02"
}
2. 响应
2.1 响应内容
参数名称 | 类型 | 说明 |
---|---|---|
json | String | 响应内容 JSON 转义后的字符串 |
signature | String | 响应内容签名 |
2.2 响应参数
参数名称 | 类型 | 是否可能为空 | 说明 |
---|---|---|---|
data | Array<trend> | 否 | 调用总览信息,详见 trend 参数说明 |
trend 参数说明
参数名称 | 类型 | 是否可能为空 | 说明 |
---|---|---|---|
date | String | 否 | 日期 |
total | Int | 否 | 识别任务请求总数 |
imageTotal | Int | 是 | 任务包含图片数 |
reviews | Int | 否 | 识别结果,复审数 |
certain | Int | 否 | 识别结果,确定数 |
duration | Float | 是 | 语音识别总时长 |
reviewDuration | Float | 是 | 语音识别复审时长 |
labelStatistics | Object<LabelStatistics> | 是 | 各标签识别数量情况,详见 LabelStatistics 参数说明 |
LabelStatistics 参数说明
参数名称 | 类型 | 是否可能为空 | 说明 |
---|---|---|---|
label | Int | 否 | 标签值 |
total | Int | 否 | 标签识别总数 |
reviews | Int | 否 | 识别结果,复审数 |
certain | Int | 否 | 识别结果,确定数 |
2.3 响应示例
{
"json": "{\"code\":0,\"data\":[{\"date\":\"2022-12-05\",\"duration\":0,\"reviewDuration\":0,\"total\":3206,\"review\":37,\"certain\":3169,\"imageTotal\":0,\"labelStatistics\":[{\"label\":0,\"total\":0,\"review\":0,\"certain\":0},{\"label\":1,\"total\":22,\"review\":16,\"certain\":6},{\"label\":2,\"total\":3184,\"review\":21,\"certain\":3163}]}],\"message\":\"success\",\"nonce\":0.529239971980256,\"timestamp\":1670836441}",
"signature": "HAyYsKkH+okca8PEJrThYm+4x7zfhV1TKBX2w8pTXfVIfA6I9vi+6f9laoi77sLlTtfGcvziP6R+OkEfyvajBguvGKh51ZepRJoUXcxzy+4JZsxTZOhUHmtYibbcoweCSEXZzBbFAQSk6W+MV5RI44bouGtHvsYGiLqAGVpfTHA="
}
json
字段示例
{
"code": 0,
"data": [
{
"date": "2022-12-05",
"duration": 0,
"reviewDuration": 0,
"total": 3206,
"review": 37,
"certain": 3169,
"imageTotal": 0,
"labelStatistics": [
{
"label": 0,
"total": 0,
"review": 0,
"certain": 0
},
{
"label": 1,
"total": 22,
"review": 16,
"certain": 6
},
{
"label": 2,
"total": 3184,
"review": 21,
"certain": 3163
}
]
}
],
"message": "success",
"nonce": 0.529239971980256,
"timestamp": 1670836441
}