Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

trigger.get

?????

integer/array trigger.get(??????? ???????)

????? ?????? ????? ??????? ??? ????? ???????.

???? ?? ????? ???????? ??? ???. ?????? ??? ????? ?? ????? ???? ???? ??????? ????? ??????. ??? ????? ??????? ????? ????.

?????

integer/array trigger.get(??????? ???????)

????? ?????? ????? ??????? ??? ????? ???????.

???? ?? ????? ???????? ??? ???. ?????? ??? ????? ?? ????? ???? ???? ??????? ????? ??????. ??? ????? ??????? ????? ????.

???? ?????

(???? ???/????) ????? ???:

  • ???? ?? ?????;
  • ????? ?????????? ???????, ?? ?? ?????? countOutput ???? ?????.

???????

????? ?????? ??? ???? ?????

???? ?? ?? ??????? ??? ????????? ??????? ?????? "14062".

?????????:

{
            "jsonrpc": "2.0",
            "method": "trigger.get",
            "params": {
                "triggerids": "14062",
                "output": "??????",
                "selectFunctions": "??????"
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": [
                {
                    "triggerid": "14062",
                    "expression": "{13513}<10m",
                    "description": "{HOST.NAME} ????? ???? (??? ?????? < 10 ?')",
                    "url": "",
                    "status": "0",
                    "value": "0",
                    "priority": "2",
                    "lastchange": "0",
                    "comments": "??? ?????? ?? ????? ??? ???? ?-10 ????",
                    "error": "",
                    "templateid": "10016",
                    "type": "0",
                    "state": "0",
                    "flags": "0",
                    "recovery_mode": "0",
                    "recovery_expression": "",
                    "correlation_mode": "0",
                    "correlation_tag": "",
                    "manual_close": "0",
                    "opdata": "",
                    "????????": [
                        {
                            "functionid": "13513",
                            "itemid": "24350",
                            "triggerid": "14062",
                            "parameter": "$",
                            "function": "?????"
                        }
                    ]
                }
            ],
            "????": 1
       }

????? ??????? ???? ????

???? ?? ?????, ??? ??????? ?? ?? ???????? ???? ???? ? ????? ???? ??? ????? ???? ????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "trigger.get",
            "params": {
                "???": [
                    "???????",
                    "?????",
                    "??????"
                ],
                "????": {
                    "???": 1
                },
                "sortfield": "??????",
                "sortorder": "DESC"
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": [
                {
                    "triggerid": "13907",
                    "description": "?????? ????? ???? ?? Áú»¢¶Ä²© < 100% ????",
                    "priority": "4"
                },
                {
                    "triggerid": "13824",
                    "description": "???? Áú»¢¶Ä²© ???? ???? ?-75% ????",
                    "priority": "3"
                }
            ],
            "????": 1
       }

????? ????? ?????? ?? ????

???? ????? ?????? ?? ????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "trigger.get",
            "params": {
                "???": [
                    "???????",
                    "?????"
                ],
                "selectTags": "??????",
                "?????????": [
                    "17578"
                ]
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": [
                {
                    "triggerid": "17370",
                    "description": "????? ?????",
                    "????": [
                        {
                            "tag": "?????",
                            "value": "{{ITEM.VALUE}.regsub(\"?????? (.*) ?????\", \"\\1\")}"
                        },
                        {
                            "tag": "?????",
                            "???": ""
                        }
                    ]
                }
            ],
            "????": 1
       }

???? ????

????

CTrigger::get()? ???? ui/include/classes/api/services/CTrigger.php.