Reads CloudMetrics performance logs for an E-HPC cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:GetCloudMetricLogs |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
ehpc-hz-jeJki6**** |
| From |
integer |
Yes |
The beginning of the time range to query. Specify a UNIX timestamp in seconds. |
1583907780 |
| To |
integer |
Yes |
The end of the time range to query. Specify a UNIX timestamp in seconds. |
1583907790 |
| Reverse |
boolean |
No |
Indicates whether to return logs in reverse chronological order. Default value: false. |
false |
| AggregationType |
string |
No |
The data aggregation type. Valid values:
Aggregation is disabled by default. |
avg |
| AggregationInterval |
integer |
No |
The data aggregation interval. Unit: seconds. Valid values: 1, 10, 60, 600, and 3600. Default value: 1. |
10 |
| MetricScope |
string |
No |
The dimensions of the performance metric. Valid values:
|
network |
| Filter |
string |
No |
The filter conditions. A JSON-formatted string with the following supported keys:
|
{"Hostname":"compute000"} |
| MetricCategories |
string |
No |
The performance metric categories to return. Separate multiple categories with commas (,). Valid values:
|
cpu |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
015C2C4D-1884-4EB7-BCD3-C5BB8D7E56DB |
| MetricLogs |
object |
||
| MetricLog |
array<object> |
The queried performance metric data. |
|
|
object |
|||
| Time |
integer |
The timestamp of the log entry. Returned as a UNIX timestamp in seconds. |
1583907780 |
| DiskDevice |
string |
The name of the disk. |
vda1 |
| NetworkInterface |
string |
The name of the network interface. |
eth1 |
| MetricData |
string |
A JSON-formatted string containing performance metric data across multiple categories. |
{\"process|cpusage\":0,\"process|cpuser\":0,\"process|cpusys\":0,******} |
| Hostname |
string |
The hostname of the node. |
compute000 |
| InstanceId |
string |
The node ID. |
i-bp132g97g7zwnvta**** |
Examples
Success response
JSON format
{
"RequestId": "015C2C4D-1884-4EB7-BCD3-C5BB8D7E56DB",
"MetricLogs": {
"MetricLog": [
{
"Time": 1583907780,
"DiskDevice": "vda1",
"NetworkInterface": "eth1",
"MetricData": "{\\\"process|cpusage\\\":0,\\\"process|cpuser\\\":0,\\\"process|cpusys\\\":0,******}",
"Hostname": "compute000",
"InstanceId": "i-bp132g97g7zwnvta****"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 400 | NotEnabled | You have not enabled this service | You have not enabled this service |
| 400 | InDebt | Your account has overdue payments. | Your account has overdue payments. |
| 500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
| 403 | InvalidClusterStatus | The operation failed due to invalid cluster status. | The cluster status does not support the operation. |
| 403 | ConflictOpt | A conflicting operation is running. | A conflicting operation is running. Please try again later. |
| 404 | ClusterNotFound | The specified cluster does not exist. | The specified instance does not exist. |
| 404 | ObjectNotFound | The specified object is not found. | The specified object does not exist. Please verify the parameter. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
| 406 | SlsError | SLS API request failed. | Failed to request the SLS interface. |
| 406 | AgentError | The agent service request failed. | The cluster-side command failed to run. %s |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | Alibaba Cloud product error. %s |
| 406 | ExecFail | Failed to execute the command: %s. | |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.