Queries the number of events in the Event Center by event category.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The ID of the region where the events are located. |
cn-hangzhou |
| ArchiveStatus |
string |
No |
The archive status of the events. Valid values:
|
All |
| FromStartTime |
string |
No |
The start time of the time range for the task start time. Specify the time in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC. |
2025-01-02T11:31:03Z |
| ToStartTime |
string |
No |
The end time of the time range for the task start time. Specify the time in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC. |
2025-01-03T12:31:03Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| Items |
array<object> |
The statistical results summarized by event category. |
|
|
object |
|||
| EventCategory |
string |
The category of the system event. For example, Exception indicates an exception event. |
Exception |
| TotalCount |
integer |
The number of events in the event category. |
7 |
Examples
Success response
JSON format
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"Items": [
{
"EventCategory": "Exception",
"TotalCount": 7
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.