[关闭]
@rzzx 2017-04-21T06:57:36.000000Z 字数 980 阅读 857

掌上听云客户端Server API接口-获取实例号

Server

文档中主机名需要参考以下配置:

内网:http://192.168.5.199:8083/tingyun-api-server
外网:



1.获取实例号

URL

/application/instancents

示例URL

http://192.168.5.199:8083/tingyun-api-server/application/instancents?applicationId=127070&endTime=&timePeriod=30

请求参数

参数 必选 类型 说明
_ty_auth_token true string token从authlocal.tingyun.com:10886/auth/api/auth/login获取
applicationId true string 移动AppID
timePeriod true string 时间间隔 相差多少分钟
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[ {
  5. "id" : 2880,//实例id
  6. "apdex" : "0.9573",
  7. "apdex_t" : 500.0,
  8. "response_time" : "123.2143",
  9. "throughout" : "14.4667",
  10. "error_rate" : "0.0023",
  11. "cpu_usage" : "0.3793",
  12. "memory" : "710.9109",
  13. "vm_id" : 402,
  14. "name" : "ali2-ty-k8s-master-101.ali.tingyun.com",//实例名域名
  15. "port" : 41003,//实例名端口
  16. "language" : "JAVA",
  17. "applicationName" : "127070",
  18. "dispatcher" : "Apache Tomcat",
  19. "dispatcherVersion" : "6.0.45",
  20. "goVersion" : null
  21. },
  22. ...]
  23. }
  24. /*错误响应*/
  25. {
  26. "status":-1,
  27. "data":"_ty_auth_token is NULL"
  28. }
  29. /*错误响应*/
  30. {
  31. "status":-500,
  32. "message":"system error."
  33. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注