Path:/openapi/v1/app/{app_id}/tag/{tag_name}
Method: GET
Path-parameters: 参考公共参数即可
Response:
{ "code": 200, "message": "success", "data": { "id": 456, "app_id": 164314, "category_id": 0, "name": "tag_test_tag", "show_name": "测试标签", "value_type": "string", "description": "", "status": "fail", "toggle": "enable", "create_type": "upload", "tag_rule": { "rules": null, "sql": null, "file": { "detail": { "name": "user_tag.csv" }, "file_key": "tag_upload_uuid/164314/20220523/c93ab7cbd0d24c2584a662f85e12cb02.json" } }, "refresh_rule": "manual", "creator": "10000340", "user_info": null, "process_status": null, "created_at": 1653301122000, "updated_at": 1653301290000 }, "total_execute_time": null }
字段含义说明
data 返回的是一个 JSON object, 针对关键字段进行说明
Field | Type | Description |
---|---|---|
app_id | int | 应用id |
name | string | 标签名称 |
show_name | string | 标签展示名 |
value_type | string | 值类型(枚举类型): int、string、float、datetime |
description | string | 描述 |
status | string | 计算状态 |
create_type | string | 创建类型 |
tag_rule | object | 创建规则 |
refresh_rule | string | 刷新类型:manual、daily |
creator | int | 创建人id |
created_at | int | 创建时间时间戳 |
updated_at | int | 更新时间时间戳 |
bc
为创建的 RangersClient, 其初始化请参考使用说明, 各语言的 SDK 都提供了类似的接口
调用(Python)::
method = 'GET' service_url = '/datatag/openapi/v1/app/164314/tag/tag_test_tag' resp = bc.request(method=method, service_url=service_url) print(resp.content.decode('utf-8'))
返回结果:
{ "code": 200, "message": "success", "data": { "id": 456, "app_id": 164314, "category_id": 0, "name": "tag_test_tag", "show_name": "测试标签", "value_type": "string", "description": "", "status": "fail", "toggle": "enable", "create_type": "upload", "tag_rule": { "rules": null, "sql": null, "file": { "detail": { "name": "user_tag.csv" }, "file_key": "tag_upload_uuid/164314/20220523/c93ab7cbd0d24c2584a662f85e12cb02.json" } }, "refresh_rule": "manual", "creator": "10000340", "user_info": null, "process_status": null, "created_at": 1653301122000, "updated_at": 1653301290000 }, "total_execute_time": null }