Copy {
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"data"
],
"properties" : {
"data" : {
"type" : "object" ,
"required" : [
"items" ,
"total" ,
"page" ,
"size" ,
"observed_at" ,
"start_timestamp" ,
"end_timestamp" ,
"exception" ,
"billing_evaluated" ,
"quota_per_usd"
],
"properties" : {
"items" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"required" : [
"task_id" ,
"platform" ,
"model" ,
"status" ,
"created_at" ,
"updated_at" ,
"submit_time" ,
"start_time" ,
"finish_time" ,
"last_activity_at" ,
"stalled_threshold_seconds" ,
"elapsed_since_activity_seconds" ,
"current_task_amount" ,
"reason_codes"
],
"properties" : {
"task_id" : {
"type" : [
"string" ,
"null"
],
"description" : "任务公开 ID"
},
"platform" : {
"type" : [
"string" ,
"null"
],
"description" : "任务平台或插件标识"
},
"model" : {
"type" : [
"string" ,
"null"
],
"description" : "模型公开调用名称(model_name)"
},
"status" : {
"type" : "string" ,
"enum" : [
"NOT_START" ,
"SUBMITTED" ,
"QUEUED" ,
"IN_PROGRESS" ,
"SUCCESS" ,
"FAILURE" ,
"UNKNOWN"
],
"description" : "原生任务状态"
},
"created_at" : {
"type" : "integer" ,
"description" : "创建时间(Unix 秒)"
},
"updated_at" : {
"type" : "integer" ,
"description" : "更新时间(Unix 秒)"
},
"submit_time" : {
"type" : "integer" ,
"description" : "提交时间(Unix 秒)"
},
"start_time" : {
"type" : "integer" ,
"description" : "开始时间(Unix 秒)"
},
"finish_time" : {
"type" : "integer" ,
"description" : "结束时间(Unix 秒)"
},
"last_activity_at" : {
"type" : "integer" ,
"description" : "最近状态活动时间(Unix 秒)"
},
"stalled_threshold_seconds" : {
"type" : "integer" ,
"description" : "判定超时停滞的秒数阈值(非计费时长)"
},
"elapsed_since_activity_seconds" : {
"type" : "integer" ,
"description" : "距最近活动的秒数(非计费时长)"
},
"current_task_amount" : {
"type" : "object" ,
"required" : [
"quota" ,
"credits"
],
"properties" : {
"quota" : {
"type" : [
"string" ,
"null"
],
"description" : "原生 quota 整数字符串(1 USD = 1000000 quota);未知时为 null,绝不补零"
},
"credits" : {
"type" : [
"string" ,
"null"
],
"description" : "四位小数 OneAster 积分字符串(1 USD = 100 积分);未知时为 null"
}
},
"description" : "任务当前持久化 quota 记录,不是原预扣金额,也不能直接视为用户最终净支出"
},
"reason_codes" : {
"type" : "array" ,
"items" : {
"type" : "string" ,
"enum" : [
"task_status_unknown" ,
"task_failed" ,
"task_stalled" ,
"invalid_task_quota" ,
"missing_billing_evidence" ,
"invalid_billing_evidence" ,
"task_changed_during_read" ,
"success_settlement_unconfirmed" ,
"failed_task_has_charge" ,
"missing_request_provenance"
]
},
"description" : "只读异常与账务诊断原因码列表"
}
},
"additionalProperties" : true
}
},
"total" : {
"type" : "string" ,
"description" : "符合条件的候选总数(十进制字符串)"
},
"page" : {
"type" : "integer" ,
"minimum" : 1 ,
"maximum" : 10000
},
"size" : {
"type" : "integer" ,
"minimum" : 1 ,
"maximum" : 100
},
"observed_at" : {
"type" : "integer" ,
"description" : "本次诊断读取时间(Unix 秒)"
},
"start_timestamp" : {
"type" : "integer" ,
"description" : "查询窗口起点(Unix 秒)"
},
"end_timestamp" : {
"type" : "integer" ,
"description" : "查询窗口终点(Unix 秒)"
},
"exception" : {
"type" : "string" ,
"enum" : [
"all" ,
"exceptions" ,
"unknown" ,
"failed" ,
"stalled"
]
},
"billing_evaluated" : {
"type" : "boolean" ,
"const" : false,
"description" : "列表固定为 false,表示尚未评估完整结算证据;须请求详情接口查看 billing 与 settlement_receipt"
},
"quota_per_usd" : {
"type" : "string" ,
"const" : "1000000" ,
"description" : "原生额度换算基准(1 USD = 1000000 quota = 100 积分)"
}
}
}
}
}
}
}
}