Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通知渠道拓展&自定义方案 #7545

Open
normal-wls opened this issue Aug 28, 2024 · 0 comments
Open

通知渠道拓展&自定义方案 #7545

normal-wls opened this issue Aug 28, 2024 · 0 comments

Comments

@normal-wls
Copy link
Member

背景

用户希望添加微信群机器人通知渠道,在任务执行结束后可以通知到对应的群或者人的企业微信。

考虑到部分通知渠道会因为环境的不同而有所差异,sops 需要同时兼容内外版本环境的通知渠道,所以需要设计成可配置的方案。

目标

除了 cmsi 支持的通知渠道之外,希望支持在不同环境自定义配置新的通知渠道,并在前端渲染支持对应的配置项。

方案设计关注点

  1. 设计自定义通知渠道的配置协议和配置的读取方式,前端如何根据协议进行渲染
  2. 任务结束之后,如何根据保存下来的通知方式进行通知发送(可以考虑策略模式或者适配器模式的设计)
  3. 边界情况:当某个环境修改通知渠道时候,需要如何保持兼容或报错处理
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant