Description
For querying the QPS monitoring data of a specified API.
- This function is intended for API activators.
- This interface is used to query the statistics on QPS in the monitoring data of a specified API.
- By default, statistics is collected by the monitoring function only on the APIs in the product stage excluding the API calls in the test stage.
Request parameters
Name | Type | Required? | Description |
---|---|---|---|
Action | String | Yes | Operation interface, which is a required parameter; value: DescribeApiQpsData. |
GroupId | String | No | ID of the group. |
ApiId | String | Yes | ID of the API. |
StartTime | String | Yes | Start time, which follows the ISO8601 standard and uses UTC time. The format is YYYY-MM-DDThh:mm:ssZ. |
EndTime | String | Yes | End time, which follows the ISO8601 standard and uses UTC time. The format is YYYY-MM-DDThh:mm:ssZ. |
Return parameters
Name | Type | Description |
---|---|---|
CallSuccesses | MonitorItem | Returned metric information about successful API calls, in a format consisting of MonitorItem. |
CallFails | MonitorItem | Returned metric information about failed API calls, in a format consisting of MonitorItem. |
Examples
Request example
https://apigateway.cn-qingdao.aliyuncs.com/?Action=DescribeApiQpsData
&GroupId=63be9002440b4778a61122f14c2b2bbb
&ApiId=d6f679aeb3be4b91b3688e887ca1fe16
&StartTime=2016-07-23T08:28:48Z
&EndTime=2016-07-23T09:28:48Z
&<Public request parameters>
Response example
XML
format
<DescribeApiQpsDataResponse>
<RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BZ001</RequestId>
<CallSuccesses>
<MonitorItem>
<ItemTime>2016-07-28T08:20:00Z</ItemTime>
<ItemValue>670</ItemValue>
</MonitorItem>
<MonitorItem>
<ItemTime>2016-07-28T08:22:00Z</ItemTime>
<ItemValue>770</ItemValue>
</MonitorItem>
<MonitorItem>
<ItemTime>2016-07-28T08:24:00Z</ItemTime>
<ItemValue>650</ItemValue>
</MonitorItem>
</CallSuccesses>
<CallFails>
<MonitorItem>
<ItemTime>2016-07-28T08:20:00Z</ItemTime>
<ItemValue>0</ItemValue>
</MonitorItem>
<MonitorItem>
<ItemTime>2016-07-28T08:22:00Z</ItemTime>
<ItemValue>0</ItemValue>
</MonitorItem>
<MonitorItem>
<ItemTime>2016-07-28T08:24:00Z</ItemTime>
<ItemValue>1</ItemValue>
</MonitorItem>
</CallFails>
</DescribeApiQpsDataResponse>
JSON
format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BZ001",
"CallSuccesses": {
"MonitorItem": [
{
"ItemTime": "2016-07-28T08:20:00Z",
"ItemValue": "670"
},
{
"ItemTime": "2016-07-28T08:22:00Z",
"ItemValue": "770"
},
{
"ItemTime": "2016-07-28T08:24:00Z",
"ItemValue": "650"
}
]
},
"CallFails": {
"MonitorItem": [
{
"ItemTime": "2016-07-28T08:20:00Z",
"ItemValue": "0"
},
{
"ItemTime": "2016-07-28T08:22:00Z",
"ItemValue": "0"
},
{
"ItemTime": "2016-07-28T08:24:00Z",
"ItemValue": "1"
}
]
}
}