Áú»¢¶Ä²©

triggerprototype.create

?????

object triggerprototype.create(object/array triggerPrototypes)

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

???? ?? ????? ?? ?-Admin ?-Super Admin ???? ???????. ???? ???? ?????? ????? ????? ?????? ????? ??????. ??? ????? ??????? ????? ????.

???????

(???????/????) ??????? ???? ????? ??????.

????? ???-????? ??? ???????? properties](object#trigger_prototype) ????? ????? ?? ?????? ????? ???????.

????? ??? ?????
dependencies array ??????? ????? ????? ?? ????? ??? ????? ?????? ???? ???.

???????? ???? ????? ????? ??????? triggerid.
tags ???? ????? ?? ????? ????.

::: ???? ?? ???? ?? ??? ?? ????? ?????? ?? ???? ????? ????? ????? ????? ?? ????? ??? ?? ????. :::

???? ?????

(???????) ?????? ??????? ????? ?? ?????? ?? ?????? ????? ???? ????? ??? ??????? triggerids. ??? ???????? ?????? ?????? ?? ???? ?? ???? ?????? ????????.

???????

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

??? ?? ????? ????? ??? ????? ??? ?????? ????? ?? ???? ? 20% ???? ???? ?????.

?????????:

{
            "jsonrpc": "2.0",
            "method": "triggerprototype.create",
            "params": {
                "description": "??? ???? ???? ??? ???? ?-20% ???? {#FSNAME}",
                "expression": "last(/Áú»¢¶Ä²© server/vfs.fs.size[{#FSNAME},pfree])<20",
                "????": [
                    {
                        "tag": "???",
                        "value": "{#FSNAME}"
                    },
                    {
                        "tag": "???",
                        "value": "{#FSTYPE}"
                    }
                ]
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": {
                "?????????": [
                    "17372"
                ]
            },
            "????": 1
       }

????

CTriggerPrototype::create()? ???? ui/include/classes/api/services/CTriggerPrototype.php.