@rzzx
2017-04-06T03:38:28.000000Z
字数 5932
阅读 767
Server
文档中主机名需要参考以下配置:
treeJSON数据如果只需要中文,需请求数据头文件里声明'X-Accept-Language': 'zh-cn'
URL
/application/selectFilter/webActions.json
示例URL
请求参数
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| _ty_auth_token | true | string | token客户端获取 |
| applicationId | true | int | 应用ID |
| instanceId | true | int | 实例ID |
| timeType | false | int | 先默认为1 |
| endTime | false | string | 结束时间 格式如:yyyy-MM-dd HH:mm:ss |
| timePeriod | false | string | 时间间隔 相差多少分钟 |
| baseonId | true | int | 先默认为15 |
| pageNo | false | int | 第几页,默认为1 |
| pageSize | false | int | 每页大小,默认为50 |
| limit | false | int | 取top数,如果这个有值,则pageNo和pageSize的分页效果则对取出来的top数进行分页 |
| searchContent | false | String | 搜索字段(不区分大小写) |
响应数据
/*成功响应*/{"status":200,"data":{"isHas":"0",//是否有下一页,默认显示50个"list":[{"pId":"-2","formatValue":"54.04","duration_total_caller_percent":0,"jserror_top5_uri_percent":0,"id":"1","name":"SpringController/HighchartsServerChartDataController/handleApplicationChart","unit":"%","alias":"SpringController/HighchartsServerChartDataController/handleApplicationChart","actionId":54220,//点击出现的图表需要的参数,参数名为actionId"serviceFlag":false,"value":54.04},...]}}/*错误响应*/{"status":-1,"data":"_ty_auth_token is NULL"}/*错误响应*/{"status":-500,"message":"system error."}
URL
/application/selectFilter/databases.json
示例URL
请求参数
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| _ty_auth_token | true | string | token客户端获取 |
| applicationId | true | int | 应用ID |
| instanceId | true | int | 实例ID |
| endTime | false | string | 结束时间 格式如:yyyy-MM-dd HH:mm:ss |
| timePeriod | false | string | 时间间隔 相差多少分钟 |
| pageNo | false | int | 第几页 |
| pageSize | false | int | 每页大小(分页效果需要pageNo>0,pageSize>0才能产生,默认全部数据) |
| limit | false | int | 取top数,如果这个有值(需要大于0),则pageNo和pageSize的分页效果则对取出来的top数进行分页 |
响应数据
/*成功响应*/{"status":200,"data":[ {"pId" : "-2","formatValue" : "0.037","duration_total_caller_percent" : 0.0,"jserror_top5_uri_percent" : 0.0,"id" : "1","name" : "nl_m_user_login_info/SELECT",//名称"unit" : "秒",//单位"alias" : "","databaseId" : 1919610,////点击出现的图表需要的参数,参数名为databaseId"serviceFlag" : false,"value" : 0.037//tree的值},...]}/*错误响应*/{"status":-1,"data":"_ty_auth_token is NULL"}/*错误响应*/{"status":-500,"message":"system error."}
URL
/application/selectFilter/externals.json
示例URL
请求参数
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| _ty_auth_token | true | string | token客户端获取 |
| applicationId | true | int | 应用ID |
| instanceId | true | int | 实例ID |
| endTime | false | string | 结束时间 格式如:yyyy-MM-dd HH:mm:ss |
| timePeriod | false | string | 时间间隔 相差多少分钟 |
| pageNo | false | int | 第几页 |
| pageSize | false | int | 每页大小(分页效果需要pageNo>0,pageSize>0才能产生,默认全部数据) |
| limit | false | int | 取top数,如果这个有值,则pageNo和pageSize的分页效果则对取出来的top数进行分页 |
| baseonId | true | int | 先默认为15 |
| reqType | false | int | 先默认为1(或者不传) |
| externalProtocolType | true | int | externalProtocolType=0&externalProtocolType=1固定 |
| sqlAction | false | String | 搜索字段 |
响应数据
/*成功响应*/{"status":200,"data":[ {"pId" : "-2","formatValue" : "99.87","duration_total_caller_percent" : 0.0,"jserror_top5_uri_percent" : 0.0,"id" : "1","name" : "*.tingyun.com","unit" : "%","alias" : "","hostId" : 4680028, //点击出现的图表需要的参数,参数名为 hostId"externalHostId" : 4680028,"serviceFlag" : false,"value" : 99.874},...]}/*错误响应*/{"status":-1,"data":"_ty_auth_token is NULL"}/*错误响应*/{"status":-500,"message":"system error."}
URL
/application/selectFilter/external/childs.json
示例URL
请求参数
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| _ty_auth_token | true | string | token客户端获取 |
| applicationId | true | int | 应用ID |
| instanceId | true | int | 实例ID |
| endTime | false | string | 结束时间 格式如:yyyy-MM-dd HH:mm:ss |
| timePeriod | false | string | 时间间隔 相差多少分钟 |
| timeType | false | string | 默认传1 |
| pageNo | false | int | 第几页 |
| pageSize | false | int | 每页多少个(分页效果需要pageNo>0,pageSize>0才能产生,默认全部数据) |
| limit | false | int | 取top数,如果这个有值,则pageNo和pageSize的分页效果则对取出来的top数进行分页 |
| baseonId | false | int | 默认先传15 |
| hostId | false | int | 一级tree的hostId |
| externalProtocolType | true | int | externalProtocolType=0&externalProtocolType=1固定 |
响应数据
/*成功响应*/{"status":200,"data":[ {"pId" : "-2","formatValue" : "69.34","duration_total_caller_percent" : 0.0,"jserror_top5_uri_percent" : 0.0,"id" : "1","name" : "/alarm/alarm/*/json/event/list (https)",//tree名"unit" : "%",//单位"alias" : "","uriId" : 159118375,//这个参数和一级tree的hostId来一起请求图表,例如“外部服务平均响应时间及吞吐率”图表,请求时加上参数hostId=4680028&uriId=159118375"serviceFlag" : false,"value" : 69.34144704//tree值(网站保留两个有效数字)},...]}/*错误响应*/{"status":-1,"data":"_ty_auth_token is NULL"}/*错误响应*/{"status":-500,"message":"system error."}
URL
/application/selectFilter/errors.json
示例URL
请求参数
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| _ty_auth_token | true | string | token客户端获取 |
| applicationId | true | int | 应用ID |
| instanceId | true | int | 实例ID |
| endTime | false | string | 结束时间 格式如:yyyy-MM-dd HH:mm:ss |
| timePeriod | false | string | 时间间隔 相差多少分钟 |
| timeType | false | string | 默认传1 |
| pageNo | false | int | 第几页 |
| pageSize | false | int | 每页大小(分页效果需要pageNo>0,pageSize>0才能产生,默认全部数据) |
| limit | false | int | 取top数,如果这个有值,则pageNo和pageSize的分页效果则对取出来的top数进行分页 |
响应数据
/*成功响应*/{"status":200,"data":[ {"pId" : "-2","duration_total_caller_percent" : 0.0,"jserror_top5_uri_percent" : 0.0,"id" : "1","name" : "404","unit" : "%",//单位"alias" : "","agentExceptionId" : 404,//点击出现的图表需要的参数,参数名为 agentExceptionId"serviceFlag" : false,"value" : 77.4//tree的值,是多少显示多少},...]}/*错误响应*/{"status":-1,"data":"_ty_auth_token is NULL"}/*错误响应*/{"status":-500,"message":"system error."}