文档

ModifyFilteringAlgorithmMeta - ModifyFilteringAlgorithmMeta

修改召回表的配置。

接口说明

可修改的配置有: ● cron、cronEnabled ● description ● algorithmName ● threshold:注意,如果要修改 ODPS 表的阈值配置信息,必须全量提交,不支持只传入 ODPS 表的阈值配置信息下边的某一项。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

PUT /v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/meta

请求参数

名称类型必填描述示例值
instanceIdstring

实例 ID。

airec-cn-****
algorithmIdstring

指定的召回 ID。

1

返回参数

名称类型描述示例值
object

返回参数。

resultobject

召回表信息。

gmtModifiedstring

最后更新时间,单位为 UTC 时间。

2018-12-07T02:24:26.000Z
statusstring

表示单签召回表的状态。

取值:

  • Draft:草稿。

  • Running:运行中。

  • Offline:已下线。

  • Deleted:已删除。

Running
gmtCreatestring

创建时间的 UTC 时间。

2018-12-07T02:24:26.000Z
algorithmIdstring

指定的召回 ID。

abc
metaobject

Meta 源数据。

taskIdstring

任务 ID。

taskId
metaTypestring

算法类型,当前只支持 ODPS。

metaType
typestring

数据源类型,当前只支持 ODPS。

ODPS
extInfoobject

召回表类型包含内容。

kvSeparatorstring

kv 分隔符。

:
itemSeparatorstring

Item 分隔符。

,
categorystring

召回类别。

1_2
thresholdobject

ODPS 表的阈值配置信息。

sourceDataSizeThresholdinteger

源数据大小波动阈值。

1
sourceDataRecordThresholdinteger

源数据条目数波动阈值。

1
indexSizeThresholdinteger

索引大小波动阈值。

1
indexLossThresholdinteger

索引丢失阈值。

1
tableNamestring

ODPS 召回表名称。

test_table
clusterIdstring

集群 ID。

244
cronstring

定时调度任务 Cron。

* * 24 7 0
descriptionstring

召回算法配置描述。

test
projectNamestring

ODPS 中的 ProjectName。

test
algorithmNamestring

召回算法配置名称。

test
cronEnabledboolean

是否开启定时启动实验任务配置。

取值:

  • true:开启。

  • false:关闭。

true
requestIdstring

请求的 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"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈