Fel*_*ida 5 slack-api slack opsgenie
我正在使用 OpsGenie 的 Slack 集成将警报发布到 Slack 通道。
但是,我想将 OpsGenie 升级/轮换与 Slack 集成一起使用,以便轮换中的成员通过 slack 直接消息收到通知。
目前,警报仅发送到松弛通道,但不会通知轮换中的成员。
是否有可能做到这一点?换句话说,我可以通过 Slack 直接消息通知轮换用户吗?
提前致谢。
根据 Slack App Integration Doc,可以创建警报。可以将警报分配给团队,警报将在呼叫轮换时通知,也许这可以帮助您:
使用 /genie 命令
https://docs.opsgenie.com/docs/slack-app-integration#section-using-genie-command
创建警报:
/genie alert [alert message] for [team1,team2,user1..]
Run Code Online (Sandbox Code Playgroud)
例子:
/genie alert this is alert message for john.smith@acme.com
/genie alert this is alert message for integration team, product team
/genie alert this is alert message for myTeam, john.smith@acme.com
Run Code Online (Sandbox Code Playgroud)
也可以看看:
https://docs.opsgenie.com/docs/slack-app-integration
https://docs.opsgenie.com/docs/slack-app-integration#section-chat-user-mapping
https://docs.opsgenie.com/docs/slack-app-integration#section-using-genie-command