table 数据批量查询接口
开发中
POST
https://api.flashcat.cloud/api/n9e/log-query-batch
最后修改时间:2025-01-10 07:31:36
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/api/n9e/log-query-batch' \
--header 'Content-Type: application/json' \
--header 'X-User-Token;' \
--data-raw '{"queries":[{"ds_cate":"tdengine","ds_id":8,"ref":"A","query":{"ref":"A","query":"select * from sensor_data.sensor_readings;"}}]}'
响应示例响应示例
{ "dat": { "total": 0, "list": [ { "data": [ { "annotations": "{}", "callbacks": "", "cate": "prometheus", "cluster": "prom_new", "datasource_id": 52, "first_trigger_time": 1701165000, "group_id": 19, "group_name": "智能告警演示", "hash": "cda0e131e2dbbf42624906b61a309c06", "id": 1, "is_recovered": 0, "last_eval_time": 1701165000, "notify_channels": "dingtalk", "notify_cur_number": 1, "notify_groups": "8", "notify_recovered": 1, "prom_eval_interval": 30, "prom_for_duration": 0, "prom_ql": "", "recover_time": 0, "rule_algo": "", "rule_config": "{\"algo_params\":{\"lower_bound\":1,\"lower_times_num\":0.1,\"seasonal_duration\":86400,\"upper_bound\":1,\"upper_times_num\":1},\"algorithm\":\"holtwinters\",\"checked\":true,\"prom_ql\":\"cpu_usage_idle\",\"severity\":2}", "rule_id": 255, "rule_name": "cpu空闲率智能告警2", "rule_note": "", "rule_prod": "anomaly", "runbook_url": "", "severity": 0, "tags": "__name__=cpu_usage_idle,,agent_isp=all,,agent_region=all,,cpu=cpu-total,,ident=VM-16-17-centos,,rulename=cpu空闲率智能告警2,,uuid=10716919060718518327", "target_ident": "VM-16-17-centos", "target_note": "", "trigger_time": 1701165000, "trigger_value": "89.91272" }, { "annotations": "{}", "callbacks": "", "cate": "prometheus", "cluster": "prom_new", "datasource_id": 52, "first_trigger_time": 1701165000, "group_id": 19, "group_name": "智能告警演示", "hash": "961f1bcd306d16c70e6a98f7db4eed55", "id": 2, "is_recovered": 1, "last_eval_time": 1701165052, "notify_channels": "dingtalk", "notify_cur_number": 1, "notify_groups": "8", "notify_recovered": 1, "prom_eval_interval": 30, "prom_for_duration": 0, "prom_ql": "", "recover_time": 1701165052, "rule_algo": "", "rule_config": "{\"algo_params\":{\"lower_bound\":1,\"lower_times_num\":0.1,\"seasonal_duration\":86400,\"upper_bound\":1,\"upper_times_num\":1},\"algorithm\":\"holtwinters\",\"checked\":true,\"prom_ql\":\"cpu_usage_idle\",\"severity\":2}", "rule_id": 255, "rule_name": "cpu空闲率智能告警2", "rule_note": "", "rule_prod": "anomaly", "runbook_url": "", "severity": 0, "tags": "__name__=cpu_usage_idle,,busigroup=defaultbusigroup,,cpu=cpu-total,,ident=VM-16-17-centos,,rulename=cpu空闲率智能告警2,,service=n9e,,uuid=15701701126077015173", "target_ident": "VM-16-17-centos", "target_note": "", "trigger_time": 1701165000, "trigger_value": "90.16421" }, { "annotations": "{}", "callbacks": "", "cate": "prometheus", "cluster": "0prom123", "datasource_id": 77, "first_trigger_time": 1701129490, "group_id": 6, "group_name": "testb", "hash": "6955ff76610ab29b6c6510fb8b4f32e8", "id": 3, "is_recovered": 0, "last_eval_time": 1701165058, "notify_channels": "email", "notify_cur_number": 589, "notify_groups": "11", "notify_recovered": 1, "prom_eval_interval": 15, "prom_for_duration": 30, "prom_ql": "net_bytes_recv>100", "recover_time": 0,
请求参数
Body 参数application/json
返回响应
修改于 2025-01-10 07:31:36