Queries the average latency of a dedicated instance over a period of time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:DescribeInstanceLatency |
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-09-15T11:07:05Z |
| 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-09-06T02:05:13Z |
| StageName |
string |
Yes |
The environment in which the API is requested. Valid values:
|
RELEASE |
| InstanceId |
string |
Yes |
The ID of the instance. |
apigateway-cn-v641jf5tt01v |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
CEF72CEB-54B6-4AE8-B225-F876FF7BZ004 |
| InstanceLatency |
object |
||
| MonitorItem |
array<object> |
The list of average latencies in the instance. |
|
|
object |
|||
| ItemValue |
string |
The value of the average latency. |
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-09-06T02:05:13Z |
| Item |
string |
The metric. Valid values:
|
latency |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BZ004",
"InstanceLatency": {
"MonitorItem": [
{
"ItemValue": "10",
"ItemTime": "2022-09-06T02:05:13Z\n",
"Item": "latency"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.