Viewing Resource Capacity at an Edge Site
Function
This API is used to view resource capacity at an edge site.
-
This API supports fine-grained permissions for enterprise projects. For details, see ies:edgeSite:getMetricData.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
ies:edgeSite:getMetricData
Read
edgeSite *
g:EnterpriseProjectId
-
-
URI
GET /v1/{domain_id}/edge-sites/{site_id}/metric-data
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_id |
Yes |
String |
Account ID in the path. |
|
site_id |
Yes |
String |
Edge site ID |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
dim |
No |
String |
Query by specified dimension.
|
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
metric_data |
Array of MetricDataDetail objects |
Monitoring data. |
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
Metrics.
|
|
value |
Long |
Monitored value. |
|
read_at |
String |
Time when the record was last modified. |
|
dimension |
dimension object |
Dimension information. |
Example Requests
Viewing the capacity of
GET https://{ies_endpoint}/v1/{domain_id}/edge-sites/{site_id}/metric-data?dim=site_id
Example Responses
Status code: 200
successful operation
{
"metric_data" : [ {
"name" : "cpu_used",
"value" : 136,
"read_at" : "2022-04-28T08:15:00.428Z",
"dimension" : {
"name" : "site_id",
"value" : "7db2702e-4d18-478f-856b-11cbcf5f1dbc"
}
}, {
"name" : "cpu_total",
"value" : 184,
"read_at" : "2022-04-28T08:15:00.428Z",
"dimension" : {
"name" : "site_id",
"value" : "7db2702e-4d18-478f-856b-11cbcf5f1dbc"
}
}, {
"name" : "memory_used",
"value" : 272,
"read_at" : "2022-04-28T08:15:00.428Z",
"dimension" : {
"name" : "site_id",
"value" : "7db2702e-4d18-478f-856b-11cbcf5f1dbc"
}
}, {
"name" : "memory_total",
"value" : 648,
"read_at" : "2022-04-28T08:15:00.428Z",
"dimension" : {
"name" : "site_id",
"value" : "7db2702e-4d18-478f-856b-11cbcf5f1dbc"
}
}, {
"name" : "capacity_used",
"value" : 5707,
"read_at" : "2022-04-28T08:15:00.501Z",
"dimension" : {
"name" : "site_id",
"value" : "7db2702e-4d18-478f-856b-11cbcf5f1dbc"
}
}, {
"name" : "capacity_total",
"value" : 113090,
"read_at" : "2022-04-28T08:15:00.501Z",
"dimension" : {
"name" : "site_id",
"value" : "7db2702e-4d18-478f-856b-11cbcf5f1dbc"
}
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
successful operation |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot