DescribeInstanceCpuMonitor
1. API Description
This API is used to query CPU utilization in a specified date range.
Note
The date range of 24 hours are supported.
Only the CPU utilization within 30 days are supported to query.
2. Input Parameters
The following request parameter list only provides API request parameters.
instanceId
Yes
String
Instance ID.
startTime
Yes
String
Start time.
Use UTC time according to the ISO8601 standard. Format: YYYY-MM-DDThh:mm:ssZ
.
endTime
Yes
String
End time.
Use UTC time according to the ISO8601 standard. Format: YYYY-MM-DDThh:mm:ssZ
.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4. Code Example
Query the CPU utilization of the instance in one day.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
404
INVALID_INSTANCE_NOT_FOUND
Instance does not exist.
403
INVALID_START_TIME_MUST_BEFORE_END_TIME
The start time should be earlier than the end time.
403
INVALID_TIME_RANGE
Invalid date range.
403
TIME_OUT_OF_RANGE
Only the data transfer within 30 days are supported to query.
Last updated