All Products
Search
Document Center

DescribeMultiContainerGroupMetric

Last Updated: Aug 15, 2019

DescribeMultiContainerGroupMetric

You can call this operation to query the monitoring data of multiple container groups. For each container group, the system returns only the latest data record.

Parameter Type Required Example Description
Action String Yes DescribeMultiContainerGroupMetric The operation that you want to perform. Set this parameter to DescribeMultiContainerGroupMetric.
RegionId String Yes cn-hangzhou The ID of the region in which the container group resides.
ContainerGroupIds JSON string array Yes [“eci-bp1dqpye03ke5s6p2ijc”, “eci-bp1dqpye03ke5u5q6kih”] A JSON array that contains the IDs of container groups. You can query a maximum of 20 container groups at a time.

Note: You can only query the monitoring data for container groups created after April 3, 2019 (UTC+8).

Response parameters

Parameter Type Description
RequestId String The ID of the request.
MonitorDatas MonitorData The details of the metrics.

MonitorData

Parameter Type Description
ContainerGroupId String The ID of the container group.
Records Record A record of monitoring data. For each container group, the system returns only the latest record.

Sample responses

  1. {
  2. "MonitorDatas": [
  3. {
  4. "ContainerGroupId": "eci-bp1dqpye03ke5u5q6kih",
  5. "Records": [
  6. {
  7. "Containers": [
  8. {
  9. "Name": "redis-liu",
  10. "Memory": {
  11. "AvailableBytes": 2146017280,
  12. "UsageBytes": 1466368
  13. },
  14. "CPU": {
  15. "Load": 0,
  16. "UsageNanoCores": 534300,
  17. "UsageCoreNanoSeconds": 431121316,
  18. "Limit": 1024
  19. }
  20. },
  21. {
  22. "Name": "nginx-liu",
  23. "Memory": {
  24. "AvailableBytes": 2145456128,
  25. "UsageBytes": 2035712
  26. },
  27. "CPU": {
  28. "Load": 0,
  29. "UsageNanoCores": 0,
  30. "UsageCoreNanoSeconds": 41052531,
  31. "Limit": 1024
  32. }
  33. }
  34. ],
  35. "Memory": {
  36. "AvailableBytes": 4285415424,
  37. "UsageBytes": 10293248
  38. },
  39. "Network": {
  40. "Interfaces": [
  41. {
  42. "Name": "eth0",
  43. "TxBytes": 128838,
  44. "RxErrors": 0,
  45. "TxErrors": 0,
  46. "RxBytes": 20413657
  47. }
  48. ]
  49. },
  50. "CPU": {
  51. "Load": 0,
  52. "UsageNanoCores": 509536,
  53. "UsageCoreNanoSeconds": 515210010,
  54. "Limit": 2048
  55. },
  56. "Timestamp": ""
  57. }
  58. ]
  59. },
  60. {
  61. "ContainerGroupId": "eci-bp1dqpye03ke5s6p2ijc",
  62. "Records": [
  63. {
  64. "Containers": [
  65. {
  66. "Name": "redis-liu",
  67. "Memory": {
  68. "AvailableBytes": 2146029568,
  69. "UsageBytes": 1454080
  70. },
  71. "CPU": {
  72. "Load": 0,
  73. "UsageNanoCores": 280374,
  74. "UsageCoreNanoSeconds": 324797144,
  75. "Limit": 1024
  76. }
  77. },
  78. {
  79. "Name": "nginx-liu",
  80. "Memory": {
  81. "AvailableBytes": 2145492992,
  82. "UsageBytes": 1998848
  83. },
  84. "CPU": {
  85. "Load": 0,
  86. "UsageNanoCores": 0,
  87. "UsageCoreNanoSeconds": 43183279,
  88. "Limit": 1024
  89. }
  90. }
  91. ],
  92. "Memory": {
  93. "AvailableBytes": 4285427712,
  94. "UsageBytes": 10280960
  95. },
  96. "Network": {
  97. "Interfaces": [
  98. {
  99. "Name": "eth0",
  100. "TxBytes": 147808,
  101. "RxErrors": 0,
  102. "TxErrors": 0,
  103. "RxBytes": 20414265
  104. }
  105. ]
  106. },
  107. "CPU": {
  108. "Load": 0,
  109. "UsageNanoCores": 299141,
  110. "UsageCoreNanoSeconds": 403695049,
  111. "Limit": 2048
  112. },
  113. "Timestamp": ""
  114. }
  115. ]
  116. }
  117. ],
  118. "RequestId": "B8756BA0-6452-419C-9727-37A6209C85E0"
  119. }