Queries the request traffic and response traffic of a dedicated instance within a period of time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:DescribeInstanceTraffic |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
Yes |
The start time. The time follows the ISO 8601 standard and UTC time is used. Format: YYYY-MM-DDThh:mm:ssZ |
2022-03-31T03:42:00Z |
| EndTime |
string |
Yes |
The end time. The time follows the ISO 8601 standard and UTC time is used. Format: YYYY-MM-DDThh:mm:ssZ |
2022-04-01T06:34:03Z |
| StageName |
string |
Yes |
The environment in which the API runs. Valid values:
|
RELEASE |
| InstanceId |
string |
Yes |
The ID of the instance. |
apigateway-cn-2r426lavr001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
CEF72CEB-54B6-4AE8-B225-F876FF7BZ004 |
| InstanceTraffic |
object |
||
| MonitorItem |
array<object> |
The traffic consumed by the requests and responses in the instance. |
|
|
object |
|||
| ItemValue |
string |
The amount of traffic consumed by the requests and responses in the instance. |
10 |
| ItemTime |
string |
The monitoring time. The time follows the ISO 8601 standard and UTC time is used. Format: YYYY-MM-DDThh:mm:ssZ |
2022-04-01T06:34:03Z |
| Item |
string |
The metric. Valid values:
|
inbound |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BZ004",
"InstanceTraffic": {
"MonitorItem": [
{
"ItemValue": "10",
"ItemTime": "2022-04-01T06:34:03Z\n",
"Item": "inbound"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.