Path:/profile_platform/openApi/v2/cdpMeta/labelSystem/label/metaInfo
Method: GET
Path-parameters:
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
id | Int | 是 | 2 | 标签id |
Header:
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
X-Tenant | Int | 是 | 1 | 项目id |
Response:
{ "code": 0, "msg": "", "data": { "id":4, "name":"autotest_quanliang03181231", "orgId":1, "projectId":1, "descr":"", "dataSecurityLevel":null, "labelType":"rule", "dataTypeName":"string", "domainId":-2, "position":3, "entityId":1, "entityType":"baseid", "computeType":"offline", "isMautag":0, "syncParams":{ "scheduleConf":{ "frequency":"d", "scheduleTime":"02:00:00" }, "syncType":1 }, "conf":{ "layers":[ { "filter":{ "operator":"And", "filters":[ { "operator":"And", "filters":[ { "operator":"=", "tagId":3, "value":0 } ] } ] }, "name":"标签值1" } ] }, "taskId":100000018, "dimMetId":282, "labelRangeRules":null, "status":0, "createApiTask":false, "realtimeTaskId":null, "realtimeStatus":null, "owner":"admin", "createTime":"2023-03-18 12:42:47", "updater":"admin", "updateTime":"2023-03-18 12:42:50", "abiDimMetId":0, "lastSuccessTaskInstanceId":1192, "latestRunDate":"2023-04-25", "userNum":5124, "values":null } }
字段含义说明
data 返回的是一个 JSON object, 针对关键字段进行说明
Field | Type | Description |
---|---|---|
id | int | 标签id |
name | string | 标签名称 |
orgId | int | 集团id |
projectId | int | 项目id |
descr | string | 标签描述 |
dataTypeName | string | 值类型(枚举类型): int、string、float、datetime |
status | string | 状态 |
labelType | string | 创建类型 |
conf | object | 创建规则 |
syncParams | object | 调度配置 |
taskId | int | 任务id |
owner | string | 创建人 |
createTime | int | 创建时间时间戳 |
updateTime | int | 更新时间时间戳 |
bc
为创建的 RangersClient, 其初始化请参考使用说明, 各语言的 SDK 都提供了类似的接口
调用(Python)::
res = bc.request('/finder/openApi/v2/cdpMeta/labelSystem/label/metainfo/2', headers={'x-Tenant': "1"}) print(res.content) print(json.loads(res.content))
返回结果:
{ "code":0, "msg":"成功", "data":{ "id":2, "name":"\xe6\xb3\xa8\xe5\x86\x8c", "orgId":1, "projectId":1, "descr":"", "dataSecurityLevel":null, "labelType":"rule", "dataTypeName":"string", "domainId":-2, "position":1, "entityId":1, "entityType":"baseid", "computeType":"offline", "isMautag":0, "syncParams":{ "scheduleConf":{ "frequency":"d", "scheduleTime":"00:00:00" }, "syncType":1 }, "conf":{ "layers":[ { "filter":{ "operator":"And", "filters":[ { "operator":"And", "filters":[ { "eventId":25, "eventDatasourceId":19, "eventType":0, "period":{ "last":1, "todayIncluded":false, "interval":"Day", "type":"Last" }, "eventName":"register", "operator":"Done", "aggregate":{ "method":"Count", "condition":{ "operator":"!=", "value":0 } } } ] } ] }, "name":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1" } ] }, "taskId":2, "dimMetId":334, "labelRangeRules":null, "status":0, "createApiTask":false, "realtimeTaskId":null, "realtimeStatus":null, "owner":"admin", "createTime":"2023-06-25 19:26:14", "updater":"admin", "updateTime":"2023-06-25 19:26:16", "abiDimMetId":0, "lastSuccessTaskInstanceId":1061, "latestRunDate":"2023-06-26", "userNum":3570, "realtimeCompensateTaskId":null, "values":null } }