查询URL跟踪视图详情
功能介绍
查询某条URL跟踪视图详情。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
POST /v1/apm2/openapi/transaction/detail
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
从IAM服务获取的用户Token。 |
x-business-id |
是 |
Long |
应用id。 |
响应参数
状态码: 200
请求示例
查询事务名称为3,开始时间戳为1667456607000,结束时间戳为1667457807000的URL跟踪视图详情。
/v1/apm2/openapi/transaction/detail { "start_time" : 1667456607000, "end_time" : 1667457807000, "tx_name" : "3" }
响应示例
状态码: 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" } ] }
状态码
状态码 |
描述 |
---|---|
200 |
OK,请求响应成功。 |
400 |
Bad Request,语义或参数有误。 |
401 |
Unauthorized,没有权限。 |
403 |
Forbidden,禁止访问。 |
404 |
Not Found,没有找到要请求的资源。 |
错误码
请参见错误码。