Retrieves anomaly event information for a cluster, node, or pod within a specified time range.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:ListAbnormalyEvents |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/openapi/cluster_health/range/abnormaly_events HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster |
string |
No |
The cluster ID. |
2d33d4be-bf54-4070-82ca-c1dc2d8b1562 |
| instance |
string |
No |
The instance ID. |
i-wz9d00ut2ska3mlyhn6j |
| start |
number |
No |
The start time. |
1725797727754 |
| pod |
string |
No |
The pod name. |
test-pod |
| namespace |
string |
No |
The namespace of the pod. |
default |
| end |
number |
No |
The end time. |
1725801327754 |
| level |
string |
No |
The level of the anomaly event. Valid values:
|
potential |
| showPod |
integer |
No |
Specifies whether to display anomaly events of the pod. Valid values:
|
1 |
| current |
integer |
No |
The current page number. This field exists when pagination is used. |
1 |
| pageSize |
integer |
No |
The number of entries per page. Default value: 5. Valid values: 1 to 100. |
10 |
| event |
string |
No |
The name of the anomaly event. |
Node root filesystem usage check |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| code |
string |
The status code.
|
Success |
| data |
array<object> |
The returned result. |
|
|
array<object> |
The returned data. |
||
| created_at |
integer |
The creation time. |
1725801090000 |
| description |
string |
The description of the anomaly item. |
An OOM event occurred on the node. Check the cause of the OOM event |
| diag_status |
integer |
The diagnostic status. Valid values: 1: the diagnosis is ready. 2: the diagnosis is running. 3: the diagnosis is complete. 4: the item is not diagnosable. 5: the diagnosis failed. Valid values:
|
3 |
| end_at |
integer |
The end time of the anomaly event. |
1725797727754 |
| instance |
string |
The instance ID. |
i-wz9d00ut2ska3mlyhn6j |
| item |
string |
The name of the anomaly item. |
Node CPU usage check |
| level |
string |
The level of the anomaly item. Valid values:
|
potential |
| namespace |
string |
The namespace of the pod. |
default |
| opts |
array<object> |
The list of operations for the anomaly item. |
|
|
array<object> |
The operation item for the anomaly item. |
||
| label |
string |
The operation type. |
diagnose |
| result |
object |
The diagnostic result of the anomaly item. |
|
| status |
string |
The diagnostic status. |
success |
| url |
string |
The URL of the diagnostic details. |
/diagnose/result/PhfFg456 |
| type |
string |
The diagnostic type. |
auto |
| pod |
string |
The pod name. |
test-pod |
| raw_metrics |
object |
The raw metrics. |
|
| end_time |
number |
The end time. |
1761814928 |
| metrics |
array |
The list of metric values. |
|
|
string |
The metric name. |
sys_cpu_total |
|
| start_time |
number |
The start time. |
1761814928 |
| region_id |
string |
The region ID. |
cn-shanghai |
| type |
string |
The type of the anomaly item. Valid values:
|
saturation |
| uuid |
string |
The UUID of the anomaly event. |
43f05b46-1034-42e8-a528-6e5ca1108277 |
| message |
string |
The error code description. This field is empty if no error occurs. |
Success |
| total |
integer |
The total number of records. |
4 |
Examples
Success response
JSON format
{
"code": "Success",
"data": [
{
"created_at": 1725801090000,
"description": "节点发生OOM, 可查看OOM发生原因",
"diag_status": 3,
"end_at": 1725797727754,
"instance": "i-wz9d00ut2ska3mlyhn6j",
"item": "节点CPU使用率检测",
"level": "potential",
"namespace": "default",
"opts": [
{
"label": "diagnose",
"result": {
"status": "success",
"url": "/diagnose/result/PhfFg456"
},
"type": "auto"
}
],
"pod": "test-pod",
"raw_metrics": {
"end_time": 1761814928,
"metrics": [
"sys_cpu_total"
],
"start_time": 1761814928
},
"region_id": "cn-shanghai",
"type": "saturation",
"uuid": "43f05b46-1034-42e8-a528-6e5ca1108277"
}
],
"message": "Success",
"total": 4
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.