搜索看看
数据开放接口 / 获取监控数据表列表接口
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/dbTable/agentList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06" } 返回结果: { "msg":"", "code":"0", "data":[ { "dateStr":"12-27 21:22:43", "tableCount":3521, "active":"1", "remark":"cpu列表", "dbInfoId":"1475307375949905920", "tableName":"count", "createTime":1640611363000, "whereVal":"SELECT COUNT(*) FROM CPU_STATE", "id":"1475307501531561984", "value":3521 } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可", } 返回结果: { "msg":"错误信息", "code":"0成功1错误", "data":[ { "dateStr":"12-27 21:22:43", "tableCount":"sql执行结果的取出列值", "active":"监控状态,1监控中,2已停止", "remark":"cpu列表", "dbInfoId":"数据源ID,出于安全考虑已隐藏", "tableName":"sql执行结果的取值列名", "createTime":"添加时间,毫秒", "whereVal":"统计sql,出于安全考虑已隐藏", "id":"1475307501531561984", "value":"暂未用,和tableCount相同" } ] }