You can call this operation to query the monitoring results of an application, including the results of basic monitoring and service monitoring.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

GET /pop/v5/monitor/queryMonitorInfo HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
Aggregator String Yes ""

The manner in which the monitoring results are aggregated. Valid values: sum, avg, max, and min.

End Long Yes 135555

The end of the time range to query. Unit: milliseconds

Metric String Yes ""

The metrics to be queried. A total of 21 metrics are available for selection. For more information, see the definitions in the Metric table.

Start Long Yes 21345

The beginning of the time range to query. Unit: milliseconds.

Tags Json Yes {"appId":"da4fstgssdfa"}

The dimension in which you want to query the monitoring results.

Interval String No ""

The query granularity in terms of time. Valid values: 1 m (1 minute), 5 m (5 minutes), 15 m (15 minutes), and 1 h (1 hour). Default value: 1 m

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

MonitorInfo String MonitorInfo

The returned monitoring results, which comply with the criteria for an open time series database (openTSDB).

RequestId String ECD1D6FC-4307-4583-BA6F-215F3857EAF4 Request ID

Examples

Sample requests

GET /pop/v5/monitor/queryMonitorInfo HTTP/1.1
Common request headers
{
  "Aggregator": ""
  "End": 
  "Metric": ""
  "Start": 
  "Tags": 
}

Sample success responses

JSON format

{
    "Code": "200",
    "Message": "Start is mandatory for this action.",
    "RequestId": "ECD1D6FC-4307-4583-BA6F-215F3857EAF4",
    "MonitorInfo": "MonitorInfo"
}

Error codes

For a list of error codes, visit the API Error Center.