Viewing Resource Capacity at an Edge Site
Function
This API is used to view resource capacity at an edge site.
URI
GET /v1/{domain_id}/edge-sites/{site_id}/metric-data
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_id |
Yes |
String |
Account ID in the URI. |
|
site_id |
Yes |
String |
Edge site ID. |
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 |
Monitoring metric name. Options:
|
|
value |
Long |
Metic value. |
|
read_at |
String |
Time when the record was last modified. |
|
dimension |
dimension object |
Dimension information. |
Example Request
Querying capacity information about an edge site
GET https://{ies_endpoint}/v1/{domain_id}/edge-sites/{site_id}/metric-data?dim=site_id
Example Response
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 Code
|
Status Code |
Description |
|---|---|
|
200 |
successful operation |
Error Codes
For details, 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