Query the inbound bandwidth and outbound bandwidth of a cloud computer, or the inbound bandwidth and outbound bandwidth for public network access of premium public bandwidth, along with their monitoring data.
Try it now
Test
RAM authorization
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | Yes | The Region ID. You can call DescribeRegions to obtain the list of Regions supported by Elastic Desktop Service (EDS). | cn-hangzhou |
InstanceId | string | Yes | The instance ID, which can be either a cloud computr ID or a premium public bandwidth plan ID. | ecd-fwq23f13****或者np-6inxqsvcyv6z8**** |
Period | integer | Yes | The statistic period of monitoring data. Unit: seconds. Valid values:
| 60 |
StartTime | string | Yes | Start Time. Supported formats:
| 1651817220643 |
EndTime | string | Yes | End Time. Supported formats:
| 1664714703743 |
MetricType | string | Yes | The type of monitoring metric. Supports monitoring data for inbound and outbound bandwidth of cloud computers, as well as inbound and outbound bandwidth for public network access of premium public bandwidth. Valid values:
| intranetOutRate |
InstanceType | string | Yes | The instance type. You can select either cloud computer type or premium public bandwidth type. If you select cloud computer type, the Valid values:
| desktop |
Response elements
Element | Type | Description | Example |
object | A collection of response information. | ||
Data | string | Metric data. | {'instanceId': 'np-4wrye3ishxi47****', 'requestId': '4F0CD5B6-70D6-5115-A2F7-7EAC3981****', 'dataPoints': [{'timeStamp': 1636510320000, 'Average': 293752.0}]} |
RequestId | string | The request ID. | 6857EDCB-631F-5405-BE95-45CBB4C3**** |
Examples
Success response
JSON format
{
"Data": "{'instanceId': 'np-4wrye3ishxi47****', 'requestId': '4F0CD5B6-70D6-5115-A2F7-7EAC3981****', 'dataPoints': [{'timeStamp': 1636510320000, 'Average': 293752.0}]}",
"RequestId": "6857EDCB-631F-5405-BE95-45CBB4C3****"
}Error codes
HTTP status code | Error code | Error message | Description |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.