应用性能管理 APM-查询组件环境拓扑图:响应示例

时间:2023-11-01 16:20:25

响应示例

状态码: 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}
support.huaweicloud.com/api-apm/SearchEnvTopology.html