ListSourceEventsForMonitorSource
Queries the list of recent alerts.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:ListSourceEventsForMonitorSource |
get |
*All Resource
|
None | None |
Request syntax
POST /events/queryLastestEvents HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| monitorSourceId |
integer |
No |
The monitoring source ID. |
1000 |
{ "monitorSourceId" : 1000 }
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| requestId |
string |
The request ID. |
2f0e4a68-9c12-4b57-8d30-6a91c5e7b204 |
| data |
array<object> |
The alert list. |
|
|
object |
The alert list. |
||
| monitorSourceId |
boolean |
The monitoring source ID. |
1000 |
| monitorSourceName |
string |
The monitoring source name. |
zabbix |
| eventTime |
string |
The alert reporting time in the YYYY-MM-DD HH:mm:ss format. |
2020-01-01 18:30:00 |
| eventJson |
string |
The alert content. |
{} |
{ "requestId": "xxxxxx", "data": [ { "monitorSourceId": false, "monitorSourceName": "zabbix", "eventTime": "2020-01-01 18:30:00", "eventJson": "{}" } ] }
Examples
Success response
JSON format
{
"requestId": "xxxxxx",
"data": [
{
"monitorSourceId": true,
"monitorSourceName": "zabbix",
"eventTime": "2020-01-01 18:30:00",
"eventJson": "{}"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.