云服务器内容精选

  • 响应示例 状态码: 200 OK,请求响应成功。 { "node_list" : [ { "node_type" : "Env", "node_name" : "apm-archive:xx-xxx-xxx", "node_id" : "4394", "env_id" : 4394 }, { "node_type" : "Kafka", "node_name" : "Kafka", "node_id" : "Kafka", "env_id" : null }, { "node_type" : "Env", "node_name" : "config-web:xx-xxxx-204", "node_id" : "1927", "env_id" : 1927 }, { "node_type" : "Env", "node_name" : "config-web:xx-xxxx-xxx", "node_id" : "51", "env_id" : 51 }, { "node_type" : "Env", "node_name" : "user", "node_id" : "user", "env_id" : null } ], "line_list" : [ { "from_node" : "user", "to_node" : "4394", "direction" : "in", "collector" : "Url", "target_env_id" : 4394, "hints" : { "rt" : "0.09", "count" : "680", "error" : "0" }, "filter_value" : "user" }, { "from_node" : "4394", "to_node" : "51", "direction" : "out", "collector" : "HttpClient", "target_env_id" : 4394, "hints" : { "rt" : "33.27", "count" : "668", "error" : "0" }, "filter_value" : "51" }, { "from_node" : "Kafka", "to_node" : "4394", "direction" : "in", "collector" : "KafkaConsumer", "target_env_id" : 4394, "hints" : { "bytes" : "-1448635860", "count" : "4163226" }, "filter_value" : "Kafka" }, { "from_node" : "4394", "to_node" : "Kafka", "direction" : "out", "collector" : "KafkaProducer", "target_env_id" : 4394, "hints" : { "bytes" : "0", "count" : "0" }, "filter_value" : "Kafka" }, { "from_node" : "4394", "to_node" : "1927", "direction" : "out", "collector" : "HttpClient", "target_env_id" : 4394, "hints" : { "rt" : "41.64", "count" : "170", "error" : "0" }, "filter_value" : "1927" } ], "collector_config" : { "KafkaProducer" : { "line_view_config" : { "metric_set" : "total", "filter_prefix" : null, "line_view_item_list" : [ { "function" : "SUM(recordSendTotal)", "as" : "count" }, { "function" : "SUM(byteTotal)", "as" : "bytes" } ] }, "detail_view_config" : { "metric_set" : "topic", "group_by" : "topic", "detail_view_item_list" : [ { "function" : "SUM(recordSendTotal)", "as" : "count" }, { "function" : "SUM(byteTotal)", "as" : "bytes" } ] } }, "HttpClient" : { "line_view_config" : { "metric_set" : "hostInvocation", "filter_prefix" : "envId=", "line_view_item_list" : [ { "function" : "SUM(invokeCount)", "as" : "count" }, { "function" : "SUM(totalTime)/SUM(invokeCount)", "as" : "rt" }, { "function" : "SUM(errorCount)", "as" : "errorCount" } ] }, "detail_view_config" : null }, "KafkaConsumer" : { "line_view_config" : { "metric_set" : "total", "filter_prefix" : null, "line_view_item_list" : [ { "function" : "SUM(recordConsumedTotal)", "as" : "count" }, { "function" : "SUM(bytesConsumedTotal)", "as" : "bytes" } ] }, "detail_view_config" : { "metric_set" : "topic", "group_by" : "topic", "detail_view_item_list" : [ { "function" : "SUM(recordConsumedTotal)", "as" : "count" }, { "function" : "SUM(bytesConsumedTotal)", "as" : "bytes" } ] } }, "Url" : { "line_view_config" : { "metric_set" : "user", "filter_prefix" : "clusterId=", "line_view_item_list" : [ { "function" : "SUM(invokeCount)", "as" : "count" }, { "function" : "SUM(totalTime)/SUM(invokeCount)", "as" : "rt" }, { "function" : "SUM(errorCount)", "as" : "errorCount" } ] }, "detail_view_config" : null } }, "real_start_time" : 1667465258000, "real_end_time" : 1667466458000}
  • 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String 从 IAM 服务获取的用户Token。 x-business-id 是 Long 应用id。 表2 请求Body参数 参数 是否必选 参数类型 描述 target_env_id 是 Long 环境id。 direction 否 String 方向,可为空。 end_time 是 String 结束时间。 start_time 是 String 开始时间。 filter_user 否 Boolean 过滤。