metric.txt 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. {
  2. "head": {
  3. "version": "1.0.0",
  4. "serviceCode": "apm",
  5. "userId": "",
  6. "bgId": "",
  7. "userToken": ""
  8. },
  9. "body": {
  10. "metricCls": "PERF",
  11. "dataTime": "2022-10-27 16:38:00",
  12. "intervalUnit": "MI",
  13. "intervalValue": 5,
  14. "resourceType": [
  15. {
  16. "resourceTypeCode": "App",
  17. "success": true,
  18. "resource": [
  19. {
  20. "cmdbId": "线下提供的业务系统资源ID",
  21. "success": true,
  22. "subResourceType": [
  23. {
  24. "resourceTypeCode": "ApmService",
  25. "success": true,
  26. "resource": [
  27. {
  28. "cmdbId": "apm-agent-service1@40003102",
  29. "metric": [
  30. {
  31. "metricCode": "APMServiceCode",
  32. "success": true,
  33. "metricValue": "apm-agent-service1"
  34. },
  35. {
  36. "metricCode": "APMServiceName",
  37. "success": true,
  38. "metricValue": "服务1"
  39. },
  40. {
  41. "metricCode": "SecZoneId",
  42. "success": true,
  43. "metricValue": "40003102"
  44. },
  45. {
  46. "metricCode": "APMServiceApdex",
  47. "success": true,
  48. "metricValue": "0.98"
  49. },
  50. {
  51. "metricCode": "APMServiceCPM",
  52. "success": true,
  53. "metricValue": "19"
  54. },
  55. {
  56. "metricCode": "APMServiceCallCount",
  57. "success": true,
  58. "metricValue": "95"
  59. },
  60. {
  61. "metricCode": "APMServiceFailCount",
  62. "success": true,
  63. "metricValue": "1"
  64. },
  65. {
  66. "metricCode": "APMServiceExceptionCount",
  67. "success": true,
  68. "metricValue": "18"
  69. },
  70. {
  71. "metricCode": "APMServiceAvgResponseTime",
  72. "success": true,
  73. "metricValue": "5"
  74. }
  75. ],
  76. "success": true,
  77. "subResourceType": [
  78. {
  79. "resourceTypeCode": "ApmServiceInst",
  80. "success": true,
  81. "resource": [
  82. {
  83. "cmdbId": "uuid@172.56.33.129",
  84. "metric": [
  85. {
  86. "metricCode": "APMServiceInstId",
  87. "success": true,
  88. "metricValue": "uuid@172.56.33.129"
  89. },
  90. {
  91. "metricCode": "APMServiceInstIp",
  92. "success": true,
  93. "metricValue": "172.56.33.129"
  94. },
  95. {
  96. "metricCode": "APMServiceCPM",
  97. "success": true,
  98. "metricValue": "19"
  99. },
  100. {
  101. "metricCode": "APMServiceCallCount",
  102. "success": true,
  103. "metricValue": "95"
  104. },
  105. {
  106. "metricCode": "APMServiceFailCount",
  107. "success": true,
  108. "metricValue": "1"
  109. },
  110. {
  111. "metricCode": "APMServiceExceptionCount",
  112. "success": true,
  113. "metricValue": "18"
  114. },
  115. {
  116. "metricCode": "APMServiceAvgResponseTime",
  117. "success": true,
  118. "metricValue": "5"
  119. },
  120. {
  121. "metricCode": "JVMHeapSizeMax",
  122. "success": true,
  123. "metricValue": "100000000"
  124. },
  125. {
  126. "metricCode": "JVMHeapUsedSize",
  127. "success": true,
  128. "metricValue": "66000000"
  129. },
  130. {
  131. "metricCode": "JVMHeapFreeSize",
  132. "success": true,
  133. "metricValue": "34000000"
  134. },
  135. {
  136. "metricCode": "JVMHeapUsedRatio",
  137. "success": true,
  138. "metricValue": "0.66"
  139. }
  140. ],
  141. "success": true
  142. }
  143. ]
  144. },
  145. {
  146. "resourceTypeCode": "ApmEndpoint",
  147. "success": true,
  148. "resource": [
  149. {
  150. "cmdbId": "/api/cmdb/read/{type}",
  151. "metric": [
  152. {
  153. "metricCode": "APMEndpointName",
  154. "success": true,
  155. "metricValue": "/api/cmdb/read/{type}"
  156. },
  157. {
  158. "metricCode": "APMEndpointType",
  159. "success": true,
  160. "metricValue": "APPIF"
  161. },
  162. {
  163. "metricCode": "APMServiceCPM",
  164. "success": true,
  165. "metricValue": "19"
  166. },
  167. {
  168. "metricCode": "APMServiceCallCount",
  169. "success": true,
  170. "metricValue": "95"
  171. },
  172. {
  173. "metricCode": "APMServiceFailCount",
  174. "success": true,
  175. "metricValue": "1"
  176. },
  177. {
  178. "metricCode": "APMServiceExceptionCount",
  179. "success": true,
  180. "metricValue": "18"
  181. },
  182. {
  183. "metricCode": "APMServiceAvgResponseTime",
  184. "success": true,
  185. "metricValue": "5"
  186. },
  187. {
  188. "metricCode": "APMServiceApdex",
  189. "success": true,
  190. "metricValue": "0.95"
  191. },
  192. {
  193. "metricCode": "APMServiceSlowCount",
  194. "success": true,
  195. "metricValue": "6"
  196. },
  197. {
  198. "metricCode": "SlowStatmentCount",
  199. "success": true,
  200. "metricValue": "5"
  201. }
  202. ],
  203. "success": true
  204. },
  205. {
  206. "cmdbId": "/api/cmdb/write/{type}",
  207. "metric": [
  208. {
  209. "metricCode": "APMEndpointName",
  210. "success": true,
  211. "metricValue": "/api/cmdb/write/{type}"
  212. },
  213. {
  214. "metricCode": "APMEndpointType",
  215. "success": true,
  216. "metricValue": "APPIF"
  217. },
  218. {
  219. "metricCode": "APMServiceCPM",
  220. "success": true,
  221. "metricValue": "19"
  222. },
  223. {
  224. "metricCode": "APMServiceCallCount",
  225. "success": true,
  226. "metricValue": "95"
  227. },
  228. {
  229. "metricCode": "APMServiceFailCount",
  230. "success": true,
  231. "metricValue": "1"
  232. },
  233. {
  234. "metricCode": "APMServiceExceptionCount",
  235. "success": true,
  236. "metricValue": "18"
  237. },
  238. {
  239. "metricCode": "APMServiceAvgResponseTime",
  240. "success": true,
  241. "metricValue": "5"
  242. },
  243. {
  244. "metricCode": "APMServiceApdex",
  245. "success": true,
  246. "metricValue": "0.95"
  247. },
  248. {
  249. "metricCode": "APMServiceSlowCount",
  250. "success": true,
  251. "metricValue": "6"
  252. },
  253. {
  254. "metricCode": "SlowStatmentCount",
  255. "success": true,
  256. "metricValue": "5"
  257. }
  258. ],
  259. "success": true
  260. }
  261. ]
  262. }
  263. ]
  264. }
  265. ]
  266. },
  267. {
  268. "resourceTypeCode": "ApmDB",
  269. "success": true,
  270. "resource": [
  271. {
  272. "cmdbId": "172.14.23.172:3306",
  273. "metric": [
  274. {
  275. "metricCode": "APMDBPeer",
  276. "success": true,
  277. "metricValue": "172.14.23.172:3306"
  278. },
  279. {
  280. "metricCode": "APMServiceCPM",
  281. "success": true,
  282. "metricValue": "19"
  283. },
  284. {
  285. "metricCode": "APMServiceCallCount",
  286. "success": true,
  287. "metricValue": "95"
  288. },
  289. {
  290. "metricCode": "APMServiceErrorCount",
  291. "success": true,
  292. "metricValue": "1"
  293. },
  294. {
  295. "metricCode": "APMServiceAvgResponseTime",
  296. "success": true,
  297. "metricValue": "5"
  298. }
  299. ],
  300. "success": true,
  301. "subResourceType": [
  302. {
  303. "resourceTypeCode": "ApmSql",
  304. "success": true,
  305. "resource": [
  306. {
  307. "cmdbId": "select a from b",
  308. "metric": [
  309. {
  310. "metricCode": "APMDBStatment",
  311. "success": true,
  312. "metricValue": "select a from b"
  313. },
  314. {
  315. "metricCode": "APMServiceCallCount",
  316. "success": true,
  317. "metricValue": "95"
  318. },
  319. {
  320. "metricCode": "APMServiceErrorCount",
  321. "success": true,
  322. "metricValue": "1"
  323. },
  324. {
  325. "metricCode": "APMServiceAvgResponseTime",
  326. "success": true,
  327. "metricValue": "5"
  328. }
  329. ],
  330. "success": true
  331. },
  332. {
  333. "cmdbId": "update a set b=c where e =f ",
  334. "metric": [
  335. {
  336. "metricCode": "APMDBStatment",
  337. "success": true,
  338. "metricValue": "update a set b=c where e =f "
  339. },
  340. {
  341. "metricCode": "APMServiceCallCount",
  342. "success": true,
  343. "metricValue": "95"
  344. },
  345. {
  346. "metricCode": "APMServiceErrorCount",
  347. "success": true,
  348. "metricValue": "1"
  349. },
  350. {
  351. "metricCode": "APMServiceAvgResponseTime",
  352. "success": true,
  353. "metricValue": "5"
  354. }
  355. ],
  356. "success": true
  357. }
  358. ]
  359. }
  360. ]
  361. }
  362. ]
  363. }
  364. ]
  365. }
  366. ]
  367. }
  368. ]
  369. }
  370. }