Obtaining Node Metrics
Function
This API is used to obtain metrics of a node in a specified instance, including the CPU usage, memory usage, and disk usage.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/instances/{instance_id}/nodes/{node_id}/metrics
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
instance_id |
Yes |
String |
Instance ID. |
|
node_id |
Yes |
String |
Node ID. |
|
project_id |
Yes |
String |
Project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
from |
No |
String |
Start time of the query metric. |
|
period |
No |
Integer |
Interval of the query metric. |
|
to |
No |
String |
End time of the query metric. |
|
limit |
No |
Integer |
Maximum number of returned result. |
|
offset |
No |
Integer |
Offset of the returned result. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
[items] |
Array of InstanceMetricVo objects |
Instance metric information. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
401 |
Unauthorized. |
|
403 |
Access denied. |
|
404 |
Not found. |
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