擷取訓練記錄。返回結果按開始時間降序排序。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
opensearch:DescribeFunction |
get |
*FunctionTask
|
無 | 無 |
請求文法
GET /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}/tasks HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| appGroupIdentity |
string |
是 |
應用程式名稱 |
app_group_name |
| functionName |
string |
是 |
功能名稱 |
ctr |
| instanceName |
string |
是 |
執行個體名稱 |
test_model_2 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| status |
string |
否 |
任務狀態:
|
success |
| startTime |
integer |
否 |
起始時間大於設定時間,單位毫秒 |
1582214400 |
| endTime |
integer |
否 |
結束時間小於設定時間,單位毫秒 |
1582646399 |
| pageNumber |
integer |
否 |
頁碼(預設為 1) |
1 |
| pageSize |
integer |
否 |
每頁大小(預設為 1) |
10 |
樣本
GET /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test/tasks
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
響應體 |
{ "status": "OK", "requestId": "", "httpCode": 200, "code": "", "message": "", "latency": 123, "totalCount": 1, "result": [ { "functionName": "ctr", "progress": 100, "status": "success", "startTime": 100010, "endTime": 200020, "extendInfo": "{\"recall\":91,\"errors\":[]}", "runId": "trigger__2021-03-05T12:18:41" } ] } |
|
| Status |
string |
狀態代碼 |
200 |
| HttpCode |
integer |
HTTP 狀態代碼。 |
200 |
| TotalCount |
integer |
符合要求的總記錄數 |
2 |
| RequestId |
string |
請求 id |
1638157479281 |
| Message |
string |
請求返回資訊 |
fail |
| Code |
string |
HTTP 狀態代碼 |
200 |
| Result |
array<object> |
返回結果。 |
[ { "functionName": "ctr", "progress": 100, "status": "success", "startTime": 100010, "endTime": 200020, "extendInfo": "{\"recall\":91,\"errors\":[]}", "runId": "trigger__2021-03-05T12:18:41" } ] |
|
object |
結果體 |
{ "functionName": "ctr", "progress": 100, "status": "success", "startTime": 100010, "endTime": 200020, "extendInfo": "{\"recall\":91,\"errors\":[]}", "runId": "trigger__2021-03-05T12:18:41" } |
|
| EndTime |
integer |
結束時間,單位毫秒,0 表示未結束 |
100010 |
| ExtendInfo |
string |
json string,包含模型評價資訊、訓練錯誤資訊等。 |
{\"recall\":91,\"errors\":[]} |
| FunctionName |
string |
功能名稱 |
ctr |
| Progress |
integer |
進度,90 表示 90% |
90 |
| RunId |
string |
任務 ID |
trigger__2021-03-05T12:18:41 |
| StartTime |
integer |
起始時間,單位毫秒 |
100010 |
| Status |
string |
任務狀態
|
success |
| Generation |
string |
第幾次迭代 |
2 |
| Latency |
integer |
請求耗時(單位毫秒) |
123 |
正常返回樣本
{
"status": "OK",
"requestId": "",
"httpCode": 200,
"code": "",
"message": "",
"latency": 123,
"totalCount": 1,
"result": [
{
"functionName": "ctr",
"progress": 100,
"status": "success",
"startTime": 100010,
"endTime": 200020,
"extendInfo": "{\"recall\":91,\"errors\":[]}",
"runId": "trigger__2021-03-05T12:18:41",
"generation": "3"
}
]
}
樣本
正常返回樣本
JSON格式
{
"Status": "200",
"HttpCode": 200,
"TotalCount": 2,
"RequestId": "1638157479281",
"Message": "fail",
"Code": "200",
"Result": [
{
"EndTime": 100010,
"ExtendInfo": "{\\\"recall\\\":91,\\\"errors\\\":[]}",
"FunctionName": "ctr",
"Progress": 90,
"RunId": "trigger__2021-03-05T12:18:41",
"StartTime": 100010,
"Status": "success",
"Generation": "2"
}
],
"Latency": 123
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。