描述

    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:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "alertid": "1",
    6. "actionid": "3",
    7. "eventid": "21243",
    8. "userid": "1",
    9. "clock": "1362128008",
    10. "mediatypeid": "1",
    11. "subject": "PROBLEM: Zabbix agent on Linux server is unreachable for 5 minutes: ",
    12. "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified",
    13. "status": "0",
    14. "retries": "3",
    15. "error": "",
    16. "esc_step": "1",
    17. "alerttype": "0"
    18. }
    19. ],
    20. "id": 1
    21. }

    See also

    参见

    来源