TAS分页查询调用链
接口功能介绍
调用 pageTransaction 接口分页查询调用链详情
接口约束
无
URI
GET /v1/transactions/page
路径参数
无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionCode | 是 | String | 资源池编码 | bbd132b51e942ac1100 | |
startTime | 是 | Long | 开始时间(ms) | 1689038853000 | |
serviceCode | 否 | String | 应用编码 | msap-pipe-default | |
projectCode | 否 | String | 日志项目编码 | ctrace | |
deployment | 否 | String | 部署环境编码 | ctrace | |
instanceId | 否 | String | 实例ID | 172.26.11.84 | |
transactionName | 否 | String | 接口名称 | QueueProcessor.poll | |
duration | 否 | Double | 耗时(毫秒) | 1000 | |
type | 否 | String | 调用类型 | db | |
isFailure | 否 | String | 是否异常调用 | false | |
outcome | 否 | String | 输出outcome(success/failure/unknown) | success | |
exceptionId | 否 | String | 异常ID | 1001 | |
ifExternal | 否 | Integer | 是否查询外部调用的trace。1-是,0-否 | 1 | |
callType | 否 | String | 默认为service服务调用,如果是数据库调用是为sql,nosql调用则为nosql,mq为message | ||
sql | |||||
callSubType | 否 | String | 调用类型的子类型,mq调用: 发端:mq-producer,收端:mq-consumer | mq-producer | |
sort | 否 | String | 排序字段(timestamp:时间,duration:耗时),默认:timestamp | timestamp | |
order | 否 | String | 排序方式(desc/asc),默认:desc | desc | |
endTime | 否 | Long | 结束时间(ms) | 1689039853000 | |
pageNum | 否 | Integer | 页码 | 1 | |
pageSize | 否 | Integer | 每页记录数 | 10 |
请求参数
请求头header参数
无
请求体body参数
无
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 | |
---|---|---|---|---|---|
code | String | 响应状态码。0:成功 | 0 | ||
msg | String | 响应描述 | |||
data | Array of Objects | 调用链详情分页数据 | TransactionDTO |
表 TransactionDTO
参数 | 参数类型 | 说明 | 示例 | 下级对象 | |
---|---|---|---|---|---|
projectCode | String | 日志项目编码 | ctrace | ||
regionCode | String | 资源池编码 | d8bbd132b53a11e9b0e | ||
deployment | String | 部署环境编码 | ctrace | ||
instanceId | String | 实例ID | 172.26.17.8 | ||
total | Long | 总记录数 | 20 | ||
traceId | String | 调用链ID | 212ef3c1789851858988 | ||
id | String | ID | c457aa04a4fee6 | ||
name | String | 名称 | test_name | ||
type | String | 调用类型 | db | ||
serviceCode | String | 应用编码 | msap-pipe-default | ||
timestamp | String | 时间 | 2023-08-08 11:46:25.756000000 | ||
duration | String | 耗时(ms) | 1000 | ||
httpUrl | String | http请求地址 | http://10.50.208.11/api/openApi/paas/paasagent/proxy/http/FCDD82A43EBD5BA277F3A472CA22625679F2D9A | ||
outcome | String | outcome(success/failure/unknown) | success | ||
responseStatusCode | String | http响应状态码 | 200 | ||
clientAddress | String | 客户端地址(IP/hostname) | 10.50.208.11:8971 | ||
clientPort | String | 客户端端口 | 8971 | ||
serverAddress | String | 服务端地址(IP/hostname) | 10.50.208.11:8972 | ||
serverPort | String | 服务端端口 | 8972 | ||
dstServiceResource | String | 目标服务Resource | 10.50.208.11:8972 | ||
dstServiceName | String | 目标服务名称 | redis | ||
dstServiceType | String | 目标服务类型 | db | ||
parentId | String | 父ID | 89ec31e015 | ||
agentName | String | Agent名称 | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.1938.62 | ||
processId | String | 进程ID | 1 | ||
processCommandLine | String | 进程命令 | /usr/local/jdk1.8.0_221/jre:bin:java -Dlog4j2.formatMsgNoLookups=true -Dfile.encoding=UTF-8 -javaagent:/ctg-mse-gateway-controller/agent/ctyunArmsAgent.jar | ||
threadId | String | 线程ID | 861 | ||
threadName | String | 线程名 | http-nio-27150-exec-10 | ||
hostName | String | 主机名 | mse-gateway-controller-76fd4d9d49-4mf7s | ||
hostArchitecture | String | 主机CPU架构 | amd64 | ||
dbConnectString | String | DB连接串 | redis://10.50.208.245:6375 | ||
dbType | String | DB类型 | redis | ||
dbUser | String | DB用户 | root | ||
dbOperation | String | DB操作 | EVALSHA | ||
dbStatement | String | sql语句 | EVALSHA 065ce216750fa703e6f60302be400d42676231a0 4 orca.task.queue-hz3.queue orca.task.queue-hz3.unacked orca.task.queue-hz3.locks orca.task.queue-hz3.messages | ||
messagingSystem | String | 消息系统 | kafka | ||
messagingOperation | String | 消息操作 | process | ||
messagingDestinationKind | String | 消息目的类型 | topic | ||
messagingQueueName | String | 消息队列名称 | test_messagingName | ||
extInfos | Object | 扩展信息 | ExtInfo |
表 ExtInfo
参数 | 参数类型 | 说明 | 示例 | 下级对象 | |
---|---|---|---|---|---|
category | String | 分类 | |||
items | Object | 扩展信息列表 | ExtItem |
表 ExtItem
参数 | 参数类型 | 说明 | 示例 | 下级对象 | |
---|---|---|---|---|---|
label | String | 标签 | name | ||
value | Object | 标签值 | java_application |
枚举参数
无
请求示例
请求url
https://tas-global.ctapi.ctyun.cn/v1/transactions/page?regionCode=bbd132b53***942ac1100&startTime=1689038853000
请求头header
无
请求体body
无
响应示例
"code": 0,
"msg": "",
"data": {
"endRow": 0,
"hasNextPage": true,
"hasPreviousPage": true,
"isFirstPage": true,
"isLastPage": true,
"list": [
{
"agentName": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.1938.62",
"agentVersion": "",
"children": [],
"clientAddress": "10.50.208.11:8971",
"clientPort": 8971,
"dbConnectString": "redis://10.50.208.245:6375",
"dbInstance": "",
"dbOperation": "EVALSHA",
"dbStatement": "EVALSHA 065ce216750fa703e6f60302be400d42676231a0 4 orca.task.queue-hz3.queue orca.task.queue-hz3.unacked orca.task.queue-hz3.locks orca.task.queue-hz3.messages",
"dbType": "redis",
"dbUser": "root",
"deployment": "_ctrace_",
"dstServiceName": "redis",
"dstServiceResource": "10.50.208.11:8971",
"dstServiceType": "db",
"duration": 1000,
"exceptionStacktrace": {},
"extInfos": [
{
"category": "",
"items": [
{
"label": "label",
"value": {}
}
]
}
],
"hostArchitecture": "amd64",
"hostName": "mse-gateway-controller-76fd4d9d49-4mf7s",
"hostOSFull": "",
"hostOSPlatform": "",
"httpUrl": "http://10.50.208.11:8971/api/openApi/paas/paasagent/proxy/http/FCDD82A43EBD5BA277F3A472CA22625679F2D9A",
"id": "c457aa04a4fee6",
"instanceId": "172.26.17.84",
"messagingDestinationKind": "topic",
"messagingOperation": "process",
"messagingQueueName": "test_messagingName",
"messagingSystem": "kafka",
"name": "test_name",
"outcome": "success",
"parentId": "89ec31e015",
"processCommandLine": "/usr/local/jdk1.8.0_221/jre:bin:java -Dlog4j2.formatMsgNoLookups=true -Dfile.encoding=UTF-8 -javaagent:/ctg-mse-gateway-controller/agent/ctyunArmsAgent.jar",
"processId": 1,
"projectCode": "_ctrace_",
"regionCode": "d8bbd132b53a11e9b0e",
"responseStatusCode": 200,
"serverAddress": "10.50.208.11:8971",
"serverPort": 8971,
"serviceCode": "msap-pipe-default",
"tenantCode": "Tenant",
"threadId": 861,
"threadName": "http-nio-27150-exec-10",
"timestamp": "2019-08-24T14:15:22Z",
"total": 0,
"traceId": "212ef3c1789851858988de",
"type": "db",
"userAgentName": "",
"userAgentOSName": "",
"userAgentOSVersion": "",
"userAgentVersion": ""
}
],
"navigateFirstPage": 0,
"navigateLastPage": 0,
"navigatePages": 0,
"navigatepageNums": [
0
],
"nextPage": 0,
"pageNum": 0,
"pageSize": 0,
"pages": 0,
"prePage": 0,
"size": 0,
"startRow": 0,
"total": 0
}
}