华为云用户手册

  • 响应示例 状态码: 200 OK,请求响应成功。 { "front_alarm_notify_results" : [ { "id" : 1741, "gmt_create" : "2022-10-09 22:58:27", "notify_type" : "RECOVER", "alarm_rule_id" : 3, "template_id" : 2, "alarm_data_event_id" : 42, "notify_status" : false, "alarm_content" : "CPU0.017使用率为0.017" }, { "id" : 1735, "gmt_create" : "2022-10-09 22:58:26", "notify_type" : "RECOVER", "alarm_rule_id" : 3, "template_id" : 2, "alarm_data_event_id" : 42, "notify_status" : false, "alarm_content" : "CPU0.017使用率为0.017" }, { "id" : 682, "gmt_create" : "2022-10-09 21:20:11", "notify_type" : "RECOVER", "alarm_rule_id" : 3, "template_id" : 2, "alarm_data_event_id" : 42, "notify_status" : false, "alarm_content" : "CPU0.017使用率为0.017" }, { "id" : 639, "gmt_create" : "2022-10-09 21:16:04", "notify_type" : "ALARM", "alarm_rule_id" : 3, "template_id" : 2, "alarm_data_event_id" : 42, "notify_status" : false, "alarm_content" : "CPU0.021使用率为0.021" } ], "total_count" : 4 }
  • 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 从 IAM 服务获取的用户Token。 x-business-id 是 Long 应用id,用于鉴权。 表2 请求Body参数 参数 是否必选 参数类型 描述 page 否 Integer 页码。 page_size 否 Integer 每页数量。 alarm_data_id 是 Integer 告警事件id。 region 是 String region英文名称。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "node_list" : [ { "node_id" : 11, "node_name" : "apm-pu-task:xxx-roma-2", "hint" : null } ], "line_list" : [ { "start_node_id" : null, "end_node_id" : 11, "span_id" : "1", "client_info" : null, "server_info" : { "start_time" : 1666684411910, "time_used" : 1, "argument" : "(GET)(/apm2/health/v1/health-check)(200)", "event_id" : "1" }, "hint" : "(1)((GET)(/apm2/health/v1/health-check)(200))", "id" : "1+1" } ], "global_trace_id" : null }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 global_trace_id String 全局traceId。 line_list Array of TraceTopologyLine objects 组件之间调用指向线列表。 node_list Array of TraceTopologyNode objects 组件节点列表。 表4 TraceTopologyLine 参数 参数类型 描述 start_node_id Long 开始节点id。 end_node_id Long 结束节点id。 span_id String 调用跨度id。 client_info TraceTopologyLineInfo object 客户端看到的信息。 server_info TraceTopologyLineInfo object 服务端信息。 id String id。 hint String 获取一条线的提示信息。 表5 TraceTopologyLineInfo 参数 参数类型 描述 start_time Long 开始时间。 time_used Long 耗时。 argument String 参数信息,比如调用的url信息等。 event_id String event的id。 表6 TraceTopologyNode 参数 参数类型 描述 node_id Long 节点id。 node_name String 节点名称。 hint String 节点提示字段。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "env_tags" : [ { "name" : "xxx-roma-2", "businessId" : 162, "uuid" : "e9c8f632*********cbfcfa148c0", "descp" : null, "creatorId" : null, "envIdList" : null, "id" : 72, "gmt_create" : "2022-10-25T02:18:44.000+00:00", "gmt_modify" : "2022-10-25T02:18:44.000+00:00" } ], "total_count" : 1 }
  • 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 从IAM服务获取的用户Token。 x-business-id 是 Long 应用id。 表2 请求Body参数 参数 是否必选 参数类型 描述 business_id 是 Long 应用id。 keyword 否 String 关键字。 page_enable 否 Boolean 是否分页。 page_number 否 Integer 每页容量。 page_size 否 Integer 当前页码。
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 env_tags Array of CmdbTagEntity objects 环境标签数据列表。 total_count Integer 总条数。 表4 CmdbTagEntity 参数 参数类型 描述 name String 环境标签名称。 business_id Long 应用id。 uuid String UUID。 descp String 描述信息。 creator_id Long 创建者id。 env_id_list Array of integers 环境id列表。 id Long 环境标签id。 gmt_create String 创建时间。 gmt_modify String 修改时间。
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 topology_tree TopologyTree object 拓扑树信息。 表4 TopologyTree 参数 参数类型 描述 tree Array of TreeNode objects 拓扑树节点。 表5 TreeNode 参数 参数类型 描述 id String 拓扑树节点id。 parent String 拓扑树节点的父节点。 real_id Long 拓扑树节点的实际id。 name String 拓扑树节点名称。 display_name String 拓扑树节点展示名称。 app_name String 组件名称。 app_id Long 组件id。 is_admin Boolean 是否是管理节点。 is_root Boolean 是否是根节点。 business_id Long 应用id。 node_type String 节点类型。 枚举值: BUSINESS SUB_BUSINESS APPLICATION ENVIRONMENT region String 区域。 is_default Boolean 是否是默认的节点。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "topology_tree" : { "tree" : [ { "id" : "162-55-11", "parent" : "162-55", "real_id" : 11, "name" : "apm-pu-task", "display_name" : "apm-pu-task", "app_name" : null, "app_id" : null, "is_admin" : false, "is_root" : false, "business_id" : 162, "node_type" : "APPLICATION", "is_default" : false, "region" : null }, { "id" : "162-55", "parent" : "162", "real_id" : 55, "name" : "App", "display_name" : "App", "app_name" : null, "app_id" : null, "is_admin" : false, "is_root" : false, "business_id" : 162, "node_type" : "SUB_BUSINESS", "is_default" : false, "region" : null }, { "id" : "162", "parent" : null, "real_id" : 162, "name" : "LubanApm", "display_name" : "LubanApm", "app_name" : null, "app_id" : null, "is_admin" : false, "is_root" : true, "business_id" : 162, "node_type" : "BUSINESS", "is_default" : false, "region" : null }, { "id" : "162-55-11-11", "parent" : "162-55-11", "real_id" : 11, "name" : "xxx-roma-2", "display_name" : "xxx-roma-2", "app_name" : "apm-pu-task", "app_id" : 11, "is_admin" : false, "is_root" : false, "business_id" : 162, "node_type" : "ENVIRONMENT", "is_default" : false, "region" : "xxx-roma-2" } ] } }
  • 修订记录 发布日期 修订记录 2024-04-30 新增接口TRACING。 2024-03-04 新增接口PROFILING。 2024-01-17 新增接口获取一个监控项的详情。 2023-08-30 新增状态码以及相关描述,“400 Bad Request,语义或参数有误。” 2023-08-08 接口请求实例描述优化。 2022-12-30 新增以下接口: 查询应用下所有探针 更改实例的采集状态 删除agent 根据组件id删除指定的组件 查询单个应用的详情 查询子应用详情 查询告警列表 查询告警消息列表 查询应用全局拓扑图 查询组件环境拓扑图 查询URL跟踪配置列表 查询URL跟踪Region环境列表 查询URL跟踪视图列表 查询URL跟踪视图详情 2022-11-10 新增23个API接口: 对指定区域下的组件和环境及其探针情况进行搜索 保存监控项 查询监控项列表 查询开通的region 查询所有的支持的region 获取应用树 查询环境标签 获取组件列表 获取组件下的环境列表 查询监控项配置信息 调用链拓扑图 获取event的详情 查询span数据 获取一个trace的所有调用链数据 获取趋势图 获取汇总表格数据 获取原始数据表格 获取原始数据详情 获取实例信息列表 获取监控项信息 创建aksk 查询租户的aksk 删除aksk 2021-12-10 新增以下接口: 查询master地址 获取ak/sk 2021-11-26 第一次正式发布。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "instance_info_list" : [ { "instance_id" : 15, "business_name" : null, "business_id" : null, "app_name" : null, "host_name" : "apm2-apm-pu-task-6b5bbfc84d-rxlhr", "instance_name" : "default", "ip_address" : "*.*.*.*", "env_id" : null, "agent_version" : "2.2.8", "last_heartbeat" : 1666682386000, "register_time" : 1666664387000, "last_modify_user_id" : null, "instance_status" : 0, "last_modify_user_name" : null, "last_modify_time" : 0 }, { "instance_id" : 16, "business_name" : null, "business_id" : null, "app_name" : null, "host_name" : "apm2-apm-pu-task-6b5bbfc84d-gtrrs", "instance_name" : "default", "ip_address" : "*.*.*.*", "env_id" : null, "agent_version" : "2.2.8", "last_heartbeat" : 1666682377000, "register_time" : 1666664436000, "last_modify_user_id" : null, "instance_status" : 0, "last_modify_user_name" : null, "last_modify_time" : 0 } ], "total_count" : 2, "online_count" : 0, "offline_count" : 0, "disable_count" : 0 }
  • 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 从IAM服务获取的用户Token。 x-business-id 是 Long 应用id。 表2 请求Body参数 参数 是否必选 参数类型 描述 env_id 是 Long 环境id。 page 是 Integer 当前页码。 page_size 否 Integer 每页数据容量。 keyword 否 String 关键字。 status 否 Integer 实例状态。 return_count 否 Boolean 是否返回计数结果。
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 instance_info_list Array of InstanceInfo objects 实例信息列表。 total_count Integer 实例总数。 online_count Integer 在线实例总数。 offline_count Integer 离线实例总数。 disable_count Integer 停止实例总数。 表4 InstanceInfo 参数 参数类型 描述 instance_id Long 实例id。 business_name String 应用名称。 business_id Long 应用id。 app_name String 组件名称。 host_name String 主机名称。 instance_name String 实例名称。 ip_address String 主机ip地址。 env_id Long 环境ID。 agent_version String Javaagent版本。 last_heartbeat Long 最后心跳时间。 register_time Long 注册时间。 last_modify_user_id String 最后修改用户id。 instance_status Integer 实例状态。 last_modify_user_name String 最后修改用户名称。 last_modify_time Long 最后修改时间。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "span_event_list" : [ { "global_trace_id" : "16-1666684411910-1326", "global_path" : null, "trace_id" : "16-1666684411910-1326", "span_id" : "1", "env_id" : 11, "instance_id" : 16, "app_id" : 11, "biz_id" : 162, "domain_id" : 1, "source" : "/apm2/health/v1/health-check", "real_source" : "/apm2/health/v1/health-check", "start_time" : 1666684411910, "time_used" : 1, "code" : 200, "class_name" : "org/apache/catalina/core/StandardHostValve", "is_async" : false, "tags" : { }, "has_error" : false, "error_reasons" : null, "type" : "Tomcat", "http_method" : "GET", "biz_code" : null, "event_id" : "1", "next_spanId" : null, "source_event_id" : null, "method" : "invoke", "children_event_count" : 0, "discard" : [ ], "argument" : "(GET)(/apm2/health/v1/health-check)(200)", "attachment" : null, "host_name" : "apm2-apm-pu-task-6b5bbfc84d-gtrrs", "ip_address" : "*.*.*.*", "instance_name" : "default", "region" : "xxx-roma-2", "env_name" : "xxx-roma-2", "app_name" : "apm-pu-task", "indent" : 0, "id" : "1+1" } ] }
  • 响应示例 状态码: 200 OK,请求响应成功。 { "business_nodes" : [ { "default" : true, "id" : 2, "gmt_create" : null, "gmt_modify" : null, "name" : "apm", "display_name" : "apm", "is_default" : true, "inner_domain_id" : 1, "eps_id" : "**********" } ] }
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 business_nodes Array of BusinessNodeModel objects 获取应用列表数据结构。 表3 BusinessNodeModel 参数 参数类型 描述 default Boolean 默认应用。 display_name String 应用展示名称。 eps_id String 企业项目的id。 gmt_create String 创建时间。 gmt_modify String 修改时间。 id Long 应用id。 inner_domain_id Integer 内部租户id。 is_default Boolean 是否是默认的应用。 name String 应用的英文名称。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "envs" : [ { "id" : 11, "gmt_create" : null, "gmt_modify" : null, "app_id" : 11, "business_name" : null, "inner_domain_id" : null, "name" : "xxx-roma-2", "is_default" : false, "app_name" : null, "business_id" : 162, "region" : "xxx-roma-2" } ] }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 envs Array of EnvNodeModel objects 环境信息列表。 表4 EnvNodeModel 参数 参数类型 描述 id Long 环境id。 gmt_create String 创建时间。 gmt_modify String 修改时间。 app_id Long 组件id。 business_name String 应用名称。 inner_domain_id Integer 租户id。 name String 环境名称。 is_default Boolean 是否是默认环境。 app_name String 组件名称。 business_id Long 应用id。 region String 区域。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "event_info" : { "global_trace_id" : "16-1666684411910-1326", "global_path" : null, "trace_id" : "16-1666684411910-1326", "span_id" : "1", "env_id" : 11, "instance_id" : 16, "app_id" : 11, "biz_id" : 162, "domain_id" : 1, "source" : "/apm2/health/v1/health-check", "real_source" : "/apm2/health/v1/health-check", "start_time" : 1666684411910, "time_used" : 1, "code" : 200, "class_name" : "org/apache/catalina/core/StandardHostValve", "is_async" : false, "tags" : { "httpMethod" : "GET", "remoteAddr" : "*.*.*.*" }, "has_error" : false, "error_reasons" : null, "type" : "Tomcat", "http_method" : "GET", "biz_code" : null, "event_id" : "1", "next_spanId" : null, "source_event_id" : null, "method" : "invoke", "children_event_count" : 0, "discard" : [ ], "argument" : "(GET)(/apm2/health/v1/health-check)(200)", "attachment" : { "bizName" : "LubanApm", "instanceName" : "apm2-apm-pu-task-6b5bbfc84d-gtrrs:172.16.3.7:default", "envName" : "xxx-roma-2", "appName" : "apm-pu-task", "projectId" : "420a7f6d790349c1bbeec18aefe36404", "domainId" : "f9b2ea53c6eb48078435d499a3b03419" }, "host_name" : "apm2-apm-pu-task-6b5bbfc84d-gtrrs", "ip_address" : "*.*.*.*", "instance_name" : "default", "region" : null, "env_name" : "xxx-roma-2", "app_name" : "apm-pu-task", "indent" : 0, "id" : "1+1" } }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 total_page Integer 总页数。 total_count Integer 总个数。 online_count Integer 正常个数。 offline_count Integer 心跳异常个数。 disable_count Integer 被关闭的个数。 agent_info_list Array of InstanceInfo objects agent地址列表。 表4 InstanceInfo 参数 参数类型 描述 instance_id Long 实例id。 business_name String 应用名称。 business_id Long 应用id。 app_name String 组件名称。 host_name String 主机名称。 instance_name String 实例名称。 ip_address String 主机ip地址。 env_id Long 环境ID。 agent_version String Javaagent版本。 last_heartbeat Long 最后心跳时间。 register_time Long 注册时间。 last_modify_user_id String 最后修改用户id。 instance_status Integer 实例状态,0表示启用,1表示停用,2表示离线。 last_modify_user_name String 最后修改用户名称。 last_modify_time Long 最后修改时间。
  • 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 从IAM服务获取的用户Token。 x-business-id 是 Long 应用id。 表2 请求Body参数 参数 是否必选 参数类型 描述 business_id 是 Long 应用id。 env_id 否 Long 环境id status 否 String 探针状态。 枚举值: online disable offline region 是 String region英文名称。 order_by_status 否 String 是否按照采集状态排序,默认不填则不按状态排序,填y则按照状态排序。 page 是 Integer 需要查询的页码,最小数为1。 page_size 否 Integer 查询结果每页最多显示的条数。 keyword 否 String 关键字。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "total_page" : 1, "total_count" : 1, "online_count" : 1, "offline_count" : 0, "disable_count" : 0, "agent_info_list" : [ { "instance_id" : 5298, "business_name" : "LubanApm", "business_id" : null, "app_name" : "apm-data-deliver/xx-xxxx-xxx", "host_name" : "szv*******1", "instance_name" : "default", "ip_address" : "*.*.*.*", "env_id" : 1105, "agent_version" : "2.1.16", "last_heartbeat" : 1669684246000, "register_time" : 1657762671000, "last_modify_user_id" : "70iWY********VHVd", "instance_status" : 0, "last_modify_user_name" : "yWX", "last_modify_time" : 1667839085000 } ] }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 tx_node_list Array of TxNode objects 组件节点列表。 tx_line_list Array of TxLine objects 组件之间调用指向线列表。 表4 TxNode 参数 参数类型 描述 tx_node_id String 节点id。 tx_node_name String 节点名称。 tx_node_type String 节点类型。 表5 TxLine 参数 参数类型 描述 tx_from_node String 开始节点。 tx_to_node String 结束节点。 invoke_count Long 调用次数。 rt Double 平均响应时间。 error_count Long 错误数。 type String 类型。 direction String 指向。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "tx_node_list" : [ { "tx_node_id" : "48", "tx_node_name" : "apm-api:xx-xxxx-xxx-az1", "tx_node_type" : "env", "tx_env_id" : 48 }, { "tx_node_id" : "11.108.243.78:3306:apm2_cmdb", "tx_node_name" : "11.108.243.78:3306:apm2_cmdb", "tx_node_type" : "Mysql", "tx_env_id" : null }, { "tx_node_id" : "user", "tx_node_name" : "user", "tx_node_type" : "user", "tx_env_id" : null }, { "tx_node_id" : "295", "tx_node_name" : "lubanops-api:xx-xxxx-xxx", "tx_node_type" : "env", "tx_env_id" : 295 }, { "tx_node_id" : "11.108.242.168:3306:apm2_region", "tx_node_name" : "11.108.242.168:3306:apm2_region", "tx_node_type" : "Mysql", "tx_env_id" : null }, { "tx_node_id" : "54", "tx_node_name" : "apm-front:xx-xxxx-xxx", "tx_node_type" : "env", "tx_env_id" : 54 }, { "tx_node_id" : "Elasticsearch:11.108.246.171:9200,11.108.246.24:9200,11.108.246.47:9200", "tx_node_name" : "Elasticsearch:11.108.246.171:9200,11.108.246.24:9200,11.108.246.47:9200", "tx_node_type" : "EsRestClient", "tx_env_id" : null } ], "tx_line_list" : [ { "tx_from_node" : "54", "tx_to_node" : "48", "invoke_count" : 364, "rt" : 28.065934065934066, "error_count" : 0, "type" : "HttpClient", "direction" : "out" }, { "tx_from_node" : "48", "tx_to_node" : "Elasticsearch:11.108.246.171:9200,11.108.246.24:9200,11.108.246.47:9200", "invoke_count" : 359, "rt" : 18.08635097493036, "error_count" : 0, "type" : "EsRestClient", "direction" : "out" }, { "tx_from_node" : "295", "tx_to_node" : "54", "invoke_count" : 365, "rt" : 49.87123287671233, "error_count" : 0, "type" : "HttpClient", "direction" : "out" }, { "tx_from_node" : "54", "tx_to_node" : "11.108.242.168:3306:apm2_region", "invoke_count" : 48, "rt" : 2.3541666666666665, "error_count" : 0, "type" : "Mysql", "direction" : "out" }, { "tx_from_node" : "54", "tx_to_node" : "48", "invoke_count" : 359, "rt" : 19.220055710306408, "error_count" : 0, "type" : "Url", "direction" : "in" }, { "tx_from_node" : "user", "tx_to_node" : "295", "invoke_count" : 365, "rt" : 50.92876712328767, "error_count" : 0, "type" : "Url", "direction" : "in" }, { "tx_from_node" : "295", "tx_to_node" : "54", "invoke_count" : 364, "rt" : 29.354395604395606, "error_count" : 0, "type" : "Url", "direction" : "in" }, { "tx_from_node" : "295", "tx_to_node" : "11.108.243.78:3306:apm2_cmdb", "invoke_count" : 58, "rt" : 0.5862068965517241, "error_count" : 0, "type" : "Mysql", "direction" : "out" } ] }
  • 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 从IAM服务获取的用户Token。 x-business-id 是 Long 应用id。 表2 请求Body参数 参数 是否必选 参数类型 描述 tx_name 是 String 事务名称。 start_time 是 String 开始时间。 end_time 是 String 结束时间。
  • 错误码 当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。 状态码 错误码 错误信息 描述 处理措施 400 apm2.00000001 Internal error. 内部错误 apm后端服务发生未知异常,请联系apm技术人员进行处理 400 apm2.00000005 Invalid parameters. 无效的参数 输入的参数有问题,请确认每一个参数是否正确 403 apm2.00000003 You have not logged in. 没有登录 先登录当前iam用户 403 apm2.00000004 No permission. 没有权限 请确认用户是否具有权限进行该操作 父主题: 附录
  • 请求示例 入参为view_type参数为rawtable的视图配置,可从查询监控项配置信息接口获取。 /v1/apm2/openapi/view/metric/raw-table { "end_time" : 1667436600000, "env_id" : "913", "instance_id" : "13", "monitor_item_id" : 10499, "page" : 1, "page_size" : 10, "search_word" : "", "start_time" : 1667435400000, "view_config" : { "span" : null, "latest" : null, "collector_name" : "Exception", "metric_set" : "exception", "title" : "异常堆栈", "table_direction" : null, "group_by" : "", "filter" : "className=com.*.*.*.*.apm.alarm.service.impl.AviatorService^exceptionType=java.lang.ClassCastException^logType=sl4j_logback_error", "field_item_list" : [ { "trace" : null, "function" : "stackTrace", "as" : "异常堆栈", "default_value" : null, "precision" : null, "unit" : null, "visible" : true } ], "span_field" : null, "view_type" : "rawtable" } }
  • 响应参数 状态码: 200 表5 响应Body参数 参数 参数类型 描述 row_list Array of FrontRow objects 数据行。 latest_data_Time String 最近一笔数据的时间。 table_direction String 表格的方向,H:默认,表头横向,V:表头纵向。 枚举值: H V result_id String 上次请求id。 real_start_time Long 实际开始的时间,主要用于下一次调用,特别是分页调用的时候传的参数。 real_end_time Long 实际结束的时间。 表6 FrontRow 参数 参数类型 描述 cell_list Array of FrontCell objects 数据单元集合。 filter String 将group by的字段拼接成过滤字符串,用于后续点网格单击使用。 header Boolean 是否是header信息。 tx_id Long Url跟踪id。 表7 FrontCell 参数 参数类型 描述 data_type String 数据类型。 function String 函数。 trace Boolean 是否调用链。 span Boolean 是否是span信息,如果是就跳到调用链搜索页面。 span_field String span字段。 precision Integer 小数点位数。 text String 文本信息。 unit String 单位。 visible Boolean 是否可见。
  • 响应示例 状态码: 200 OK,请求响应成功。 { "row_list" : [ { "header" : true, "cell_list" : [ { "span" : null, "trace" : null, "data_type" : "STRING", "function" : null, "span_field" : null, "precision" : null, "text" : "time", "unit" : null, "visible" : true }, { "span" : null, "trace" : null, "data_type" : "CLOB", "function" : null, "span_field" : null, "precision" : null, "text" : "异常堆栈", "unit" : null, "visible" : true } ], "filter" : null, "tx_id" : null }, { "header" : null, "cell_list" : [ { "span" : null, "trace" : null, "data_type" : null, "function" : null, "span_field" : null, "precision" : null, "text" : "2022-11-03 08:41:00", "unit" : null, "visible" : true }, { "span" : null, "trace" : null, "data_type" : null, "function" : null, "span_field" : null, "precision" : null, "text" : "6-973f4c1c78928bcf67d67dfaccc9d3a09f3cef97b2de70bd11f103a1af449b94", "unit" : null, "visible" : true } ], "filter" : null, "tx_id" : null } ], "latest_data_Time" : "2022-11-03 08:41:00", "table_direction" : "H", "result_id" : null, "real_start_time" : 1667435400000, "real_end_time" : 1667436600000 }
  • 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 从IAM服务获取的用户Token。 x-business-id 是 Long 应用id。 表2 请求Body参数 参数 是否必选 参数类型 描述 last_row_id 否 String 上一次扫描的数据ID。 view_config 是 RawTableView object 原始数据表格视图。 page 是 Integer 当前页码。 page_size 是 Integer 每页数据总数。 order_by 否 String 排序。 search_word 否 String 搜索关键字。 instance_id 否 Long 实例id。 monitor_item_id 否 Long 监控项id。 env_id 是 Long 环境id。 start_time 是 String 开始时间。 end_time 是 String 结束时间。 表3 RawTableView 参数 是否必选 参数类型 描述 view_type 否 String 视图类型。 枚举值: trend sumtable rawtable collector_name 是 String 采集器名称。 metric_set 是 String 视图对应的指标集的名称。 title 是 String 图标所需展示的标题。 table_direction 是 String 表格的方向,H:默认,表头横向,V:表头纵向。 枚举值: H V group_by 是 String 分组规则。 filter 是 String 过滤列表模型。 field_item_list 是 Array of FieldItem objects 所需展示的字段列表模型集合。 span 是 Boolean 跨度。 span_field 是 String 跨度字段。 order_by 否 String 排序规则。 latest 否 Boolean 是否只展示最近一笔数据。 表4 FieldItem 参数 是否必选 参数类型 描述 function 是 String 表达式。 as 否 String 作为。 default_value 否 String 默认值。 trace 否 Boolean 是否是trace。 precision 否 Integer 百分比。 unit 否 String 单位。 visible 否 Boolean 是否可见。
共100000条