描述
The method allows to retrieve alerts according to the given parameters.该方式允许根据给定的参数检索警报.
Parameters
(object)
Parameters defining the desired output.(object)
定义所需输出的参数.
The method supports the following parameters.该方法支持以下参数.
Return values
返回值
(integer/array)
Returns either:
一组对象;
the count of retrieved objects, if the
countOutput
parameter has been used.如果已经使用了“countOutput”参数,则检索对象的计数.
Retrieve alerts by action ID
通过动作ID检索警报
Retrieve all alerts generated by action “3”.
Response:
- {
- "jsonrpc": "2.0",
- "result": [
- {
- "alertid": "1",
- "actionid": "3",
- "eventid": "21243",
- "userid": "1",
- "clock": "1362128008",
- "mediatypeid": "1",
- "subject": "PROBLEM: Zabbix agent on Linux server is unreachable for 5 minutes: ",
- "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified",
- "status": "0",
- "retries": "3",
- "error": "",
- "esc_step": "1",
- "alerttype": "0"
- }
- ],
- "id": 1
- }