触发器创建

trigger创建

mifx trigger create --triggertype HttpTrigger --triggerName sads 
--funcuid e4440175-df22-4e92-9920-93230fc6c635 --urlpattern /hello --method GET
mifx trigger create -triggertype SkillTrigger  --triggerName sads  --funcuid e4440175-df22-4e92-9920-93230fc6c635
mifx trigger create -triggertype TimeTrigger  --triggerName sads  
--funcuid e4440175-df22-4e92-9920-93230fc6c635 --cron "0 */1 * * *"
mifx trigger create -f trigger.yaml

trigger.yaml

{
    "triggertype":"HttpTrigger",
    "requestbody":{
        "meta":{
            "name":"sads"
        },
        "func":{
            "uid":"e4440175-df22-4e92-9920-93230fc6c635"
        },
        "urlPattern":"/hello",
        "method":"GET"
    }
}

{
    "triggertype":"SkillTrigger",
    "requestbody":{
        "meta":{
            "name":"dsffg"
        },
        "func":{
            "uid":"fa56f9d4-c5b3-4072-992d-40b0b1b583de"
        }
    }
}
{
    "triggertype":"TimeTrigger",
    "requestbody":{
        "meta":{
            "name":"sdfd"
        },
        "func":{
            "uid":"fa56f9d4-c5b3-4072-992d-40b0b1b583de"
        },
        "cron":"0 */1 * * *"
    }
}

results matching ""

    No results matching ""