Path:/finder/openApi/v2/cdpMeta/labelSystem/label/historyData
Method: GET
Content-type: application/json
Path-parameters:
Name | Data type | Is it required? | Describe |
|---|---|---|---|
id | Int | Yes | Tag ID |
showNum | Int | Yes | number of label values |
startDate | String | Yes | Start date (format yyyy-MM-dd) |
endDate | String | Yes | End date (format yyyy-MM-dd) |
Header:
Name | Data type | Is it required? | Describe |
|---|---|---|---|
X-Tenant | Int | Yes | Project ID |
Response:
{ "code":0, "msg":"success", "data":[ { "scheduleTime":"2023-04-20", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"tag value 1", "mappingValue":"tag value 1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":15, "queryDataCost":148 }, { "scheduleTime":"2023-04-21", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"tag value 1", "mappingValue":"tag value 1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":15, "queryDataCost":148 }, { "scheduleTime":"2023-04-22", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"tag value 1", "mappingValue":"tag value 1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":15, "queryDataCost":148 }, { "scheduleTime":"2023-04-23", "distinctNumber":5124, "coverage":"100.00%", "statistics":[ { "count":5124, "originValue":"tag value 1", "mappingValue":"tag value 1", "tagCoverage":"100.00%", "totalCoverage":"100.00%" } ], "queryMauCost":15, "queryDataCost":148 } ] }
Field meaning description
Data returns a JSON object, which is explained for the key field: the same as the query tag latest result API.
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/historyData', headers={'x-Tenant': "1"}, params={'startDate': '2023-06-01', 'endDate': '2023-06-16', 'id': 2, 'showNum': 10}) print(res.content) print(json.loads(res.content))
Return result:
{ "code":0, "msg":"success", "data":[ { "scheduleTime":"2023-06-01", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-02", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-03", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-04", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-05", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-06", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-07", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-08", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-09", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-10", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-11", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-12", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-13", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-14", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-15", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 }, { "scheduleTime":"2023-06-16", "distinctNumber":0, "coverage":"0.00%", "statistics":[ { "count":0, "originValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "mappingValue":"\xe6\xa0\x87\xe7\xad\xbe\xe5\x80\xbc1", "tagCoverage":"NA", "totalCoverage":"0.00%" } ], "queryMauCost":70, "queryDataCost":531 } ] }