Path:/profile_platform/openApi/v2/cdpMeta/labelSystem/label/metaInfo
Method: GET
Path-parameters:
Name | Data type | Is it required? | Describe |
|---|---|---|---|
id | Int | Yes | Tag ID |
Header:
Name | Data type | Is it required? | Describe |
|---|---|---|---|
X-Tenant | Int | Yes | Project 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":"tag value 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 } }
Field meaning description
Data returns a JSON object, specifying key fields
Field | Type | Description |
|---|---|---|
id | int | Tag ID |
name | string | label name |
orgId | int | Group ID |
projectId | int | Project ID |
descr | string | label description |
dataTypeName | string | Value types (enumeration types): int, string, float, datetime |
status | string | state |
labelType | string | Create type |
conf | object | Create rules |
syncParams | object | scheduling configuration |
taskId | int | Task ID |
owner | string | founder |
createTime | int | Create timestamp |
updateTime | int | Updatetimestamp |
Bc is the RangersClient created. For its initialization, please refer to the "OpenAPI SDK Instructions". SDKs in various languages provide similar interfaces.
Call (Python):
res = bc.request('/finder/openApi/v2/cdpMeta/labelSystem/label/metainfo/2', headers={'x-Tenant': "1"}) print(res.content) print(json.loads(res.content))
Return result:
{ "code":0, "msg":"success", "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 } }