修改召回表的配置。
接口说明
可修改的配置有: ● cron、cronEnabled ● description ● algorithmName ● threshold:注意,如果要修改 ODPS 表的阈值配置信息,必须全量提交,不支持只传入 ODPS 表的阈值配置信息下边的某一项。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
PUT /v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/meta HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
是 |
实例 ID。 |
airec-cn-**** |
| algorithmId |
string |
是 |
指定的召回 ID。 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回参数。 |
||
| result |
object |
召回表信息。 |
|
| gmtModified |
string |
最后更新时间,单位为 UTC 时间。 |
2018-12-07T02:24:26.000Z |
| status |
string |
表示单签召回表的状态。 取值:
|
Running |
| gmtCreate |
string |
创建时间的 UTC 时间。 |
2018-12-07T02:24:26.000Z |
| algorithmId |
string |
指定的召回 ID。 |
abc |
| meta |
object |
Meta 源数据。 |
|
| taskId |
string |
任务 ID。 |
taskId |
| metaType |
string |
算法类型,当前只支持 ODPS。 |
metaType |
| type |
string |
数据源类型,当前只支持 ODPS。 |
ODPS |
| extInfo |
object |
召回表类型包含内容。 |
|
| kvSeparator |
string |
kv 分隔符。 |
: |
| itemSeparator |
string |
Item 分隔符。 |
, |
| category |
string |
召回类别。 |
1_2 |
| threshold |
object |
ODPS 表的阈值配置信息。 |
|
| sourceDataSizeThreshold |
integer |
源数据大小波动阈值。 |
1 |
| sourceDataRecordThreshold |
integer |
源数据条目数波动阈值。 |
1 |
| indexSizeThreshold |
integer |
索引大小波动阈值。 |
1 |
| indexLossThreshold |
integer |
索引丢失阈值。 |
1 |
| tableName |
string |
ODPS 召回表名称。 |
test_table |
| clusterId |
string |
集群 ID。 |
244 |
| cron |
string |
定时调度任务 Cron。 |
* * 24 7 0 |
| description |
string |
召回算法配置描述。 |
test |
| projectName |
string |
ODPS 中的 ProjectName。 |
test |
| algorithmName |
string |
召回算法配置名称。 |
test |
| cronEnabled |
boolean |
是否开启定时启动实验任务配置。 取值:
|
true |
| requestId |
string |
请求的 ID。 |
7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3 |
示例
正常返回示例
JSON格式
{
"result": {
"gmtModified": "2018-12-07T02:24:26.000Z",
"status": "Running",
"gmtCreate": "2018-12-07T02:24:26.000Z",
"algorithmId": "abc",
"meta": {
"taskId": "taskId",
"metaType": "metaType",
"type": "ODPS",
"extInfo": {
"kvSeparator": ":",
"itemSeparator": ","
},
"category": "1_2",
"threshold": {
"sourceDataSizeThreshold": 1,
"sourceDataRecordThreshold": 1,
"indexSizeThreshold": 1,
"indexLossThreshold": 1
},
"tableName": "test_table",
"clusterId": "244",
"cron": "* * 24 7 0",
"description": "test",
"projectName": "test",
"algorithmName": "test",
"cronEnabled": true
}
},
"requestId": "7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。