我能够成功地安装警报的系统包,主要是按照链接https://github.com/apache/incubator-openwhisk-package-alarms/issues/51#issuecomment-294010619
因此,我得到了以下内容: bin/wsk package get --summary /whisk.system/alarms --不安全包/whisk.system/ Alarms :警报和周期性实用程序(参数:*apihost,*cron,*trigger_payload)提要/whisk.system/alarms/ alarm :发生警报时触发(参数:未定义)
像动作,触发器,规则这样的功能在我本地的openwhisk安装中起作用。
我正在运行以下命令来创建触发器: bin/wsk trigger convertTriggerPeriodic --feed /whisk.system/alarms/alarm -p cron "*/9 ** *“-p trigger_payload "{\"name\":\"Odin\",\"place\":\"Asgard\"}”-p maxTriggers 6--不安全
ok: invoked /whisk.system/alarms/alarm with id d5879ab1c97745c9879ab1c977c5c967
{
"activationId": "d5879ab1c97745c9879ab1c977c5c967",
"annotations": [
{
"key": "limits",
"value": {
"logs": 10,
"memory": 256,
"timeout": 60000
}
},
{
"key": "path",
"value": "whisk.system/alarms/alarm"
}
],
"duration": 6402,
"end": 1508984964595,
"logs": [],
"name": "alarm",
"namespace": "guest",
"publish": false,
"response": {
"result": {
"error": {
"code": 30810,
"error": "There was an error processing your request."
}
},
"status": "application error",
"success": false
},
"start": 1508984958193,
"subject": "guest",
"version": "0.0.2"
}
ok: invoked /whisk.system/alarms/alarm with id 4fd67308821e4e0b967308821e4e0bdb
{
"activationId": "4fd67308821e4e0b967308821e4e0bdb",
"annotations": [
{
"key": "limits",
"value": {
"logs": 10,
"memory": 256,
"timeout": 60000
}
},
{
"key": "path",
"value": "whisk.system/alarms/alarm"
}
],
"duration": 4432,
"end": 1508984969257,
"logs": [],
"name": "alarm",
"namespace": "guest",
"publish": false,
"response": {
"result": {
"error": {
"code": 30822,
"error": "There was an error processing your request."
}
},
"status": "application error",
"success": false
},
"start": 1508984964825,
"subject": "guest",
"version": "0.0.2"
}
ok: deleted trigger convertTriggerPeriodic
Run 'wsk --help' for usage.它正在运行触发器两次。每次,它都会报告错误:" error ":“处理您的请求时出错。”然后,它将删除触发器。
因此,我无法将规则/action与触发器相关联。
发布于 2017-10-27 10:22:24
看起来警报操作没有正确安装。https://github.com/apache/incubator-openwhisk-package-alarms/issues/51中列出的说明仍然适用于运行报警停靠容器,但对于安装该操作已过期。请参阅本期我在7月21日发表的评论(https://github.com/apache/incubator-openwhisk-package-alarms/issues/51#issuecomment-317007147)。installCatalog.sh的参数已更改。如果您在按照本期中的安装步骤操作时遇到问题,也可以查看我在8月9日留下的评论(https://github.com/apache/incubator-openwhisk-package-alarms/issues/51#issuecomment-321320242)。它包含了一些ansible代码的链接,这些代码是我为处理安装而编写的。
https://stackoverflow.com/questions/46944957
复制相似问题