Querying Monitoring Data of Multiple Metrics

Function

You can query the data of specified metrics within a specified time range and at a specified granularity. You can query the monitoring data of up to 10 metrics in one batch.

URI

POST /V1.0/{project_id}/batch-query-metric-data

Request

  1. The size of a POST request cannot exceed 512 KB. Otherwise, the request will be denied.
  2. The default maximum query interval (tofrom) varies depending on period and the number of metrics to be queried. The rule is as follows: Number of metrics x (to - from)/Monitoring interval ≤ 3000.
    • If period is 1, the monitoring interval is 60,000 ms (60 x 1000).
    • If period is 300, the monitoring interval is 300,000 ms (300 x 1000).
    • If period is 1200, the monitoring interval is 1,200,000 ms (1200 x 1000).
    • If period is 3600, the monitoring interval is 3,600,000 ms (3600 x 1000).
    • If period is 14400, the monitoring interval is 14,400,000 ms (14400 x 1000).
    • If period is 86400, the monitoring interval is 86,400,000 ms (86400 x 1000).

    For example, if 300 metrics are queried in batches and the monitoring interval is 60,000 ms, the maximum value of (to-from) is 600000. If (to-from) exceeds 600,000, from is automatically changed to to-600000.

Response

Returned Values

Error Codes

See Error Codes.