Queries the monitoring data of management nodes to which the cloud honeypot belongs.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
NodeId | string | No | The management node ID. | cc427e14-f257-4670-9d2b-d83bbbe7**** |
Express | string | No | The expression that is used to compute the query results in real time. Note
Only the groupby expression is supported. This expression is similar to the GROUP BY statement that applies to databases.
| {"groupby":["userId","instanceId"]} |
StartTime | string | No | The beginning of the time range to query. The following formats are supported:
| 2019-01-30 00:00:00 |
MetricName | string | No | The metric that is used to monitor the cloud service. | cpu_total |
Period | string | No | The time interval. Unit: seconds. Valid values: 60, 300, and 900. | 60 |
Length | string | No | The number of entries per page. Note
The maximum value of the Length parameter in a request is 1440.
| 100 |
EndTime | string | No | The end of the time range to query. Valid values:
| 2019-01-30 00:10:00 |
Namespace | string | No | The namespace of the cloud service. Format: acs_cloud service name. | acs_ecs_dashboard |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": "{\n \"code\": \"200\",\n \"datapoints\": \"[{\\\"timestamp\\\":1698375060000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":67084.0,\\\"Maximum\\\":67084.0,\\\"Average\\\":67084.0},{\\\"timestamp\\\":1698375120000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":63704.0,\\\"Maximum\\\":63704.0,\\\"Average\\\":63704.0},{\\\"timestamp\\\":1698375180000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":67624.0,\\\"Maximum\\\":67624.0,\\\"Average\\\":67624.0},{\\\"timestamp\\\":1698375240000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":68432.0,\\\"Maximum\\\":68432.0,\\\"Average\\\":68432.0},{\\\"timestamp\\\":1698375300000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":70148.0,\\\"Maximum\\\":70148.0,\\\"Average\\\":70148.0},{\\\"timestamp\\\":1698375360000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":63612.0,\\\"Maximum\\\":63612.0,\\\"Average\\\":63612.0},{\\\"timestamp\\\":1698375420000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":68032.0,\\\"Maximum\\\":68032.0,\\\"Average\\\":68032.0},{\\\"timestamp\\\":1698375480000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":67400.0,\\\"Maximum\\\":67400.0,\\\"Average\\\":67400.0},{\\\"timestamp\\\":1698375540000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":65352.0,\\\"Maximum\\\":65352.0,\\\"Average\\\":65352.0}]\",\n \"period\": \"60\",\n \"requestId\": \"AFE33E4E-70A3-5BAE-AEA8-4D3BF3A75067\",\n \"success\": true\n}",
"RequestId": "48F523DA-4C7E-5417-B872-E313E5A4****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam | Illegal param | - |
400 | NodeNotExist | The control node does not exist. | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.