Path:/openapi/v1/app/{app_id}/tag
Method: GET
Path-parameters: 参考公共参数即可
Response:
{ "code": 200, "message": "success", "data": [ { "id": 240, "app_id": 164314, "category_id": 0, "name": "tag_testxxxx_wyx", "show_name": "testxxxx_wyx", "value_type": "string", "description": "", "status": "success", "toggle": "enable", "create_type": "custom", "tag_rule": null, "refresh_rule": "manual", "creator": "213659", "user_info": null, "process_status": null, "created_at": 1644563482000, "updated_at": 1651728105000 }, { "id": 216, "app_id": 164314, "category_id": 0, "name": "tag_222", "show_name": "2222", "value_type": "string", "description": "", "status": "success", "toggle": "enable", "create_type": "custom", "tag_rule": null, "refresh_rule": "manual", "creator": "224443", "user_info": null, "process_status": null, "created_at": 1641957584000, "updated_at": 1642434178000 } ], "total_execute_time": null }
字段含义说明
data 返回的是一个 JSON array, 针对关键字段进行说明
Field | Type | Description |
---|---|---|
id | int | 标签id |
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 | string | 创建人id |
created_at | int | 创建时间时间戳 |
updated_at | int | 更新时间时间戳 |
bc
为创建的 RangersClient, 其初始化请参考使用说明, 各语言的 SDK 都提供了类似的接口
调用(Python)::
method = 'GET' service_url = '/datatag/openapi/v1/app/164314/tag' resp = bc.request(method=method, service_url=service_url) print(resp.content.decode('utf-8'))
返回结果:
{ "code": 200, "message": "success", "data": [ { "id": 240, "app_id": 164314, "category_id": 0, "name": "tag_testxxxx_wyx", "show_name": "testxxxx_wyx", "value_type": "string", "description": "", "status": "success", "toggle": "enable", "create_type": "custom", "tag_rule": null, "refresh_rule": "manual", "creator": "213659", "user_info": null, "process_status": null, "created_at": 1644563482000, "updated_at": 1651728105000 }, { "id": 216, "app_id": 164314, "category_id": 0, "name": "tag_222", "show_name": "2222", "value_type": "string", "description": "", "status": "success", "toggle": "enable", "create_type": "custom", "tag_rule": null, "refresh_rule": "manual", "creator": "224443", "user_info": null, "process_status": null, "created_at": 1641957584000, "updated_at": 1642434178000 } ], "total_execute_time": null }