Skip to content

bugfix: APM 告警策略恢复逐渠道通知对象配置 #5126

Description

@zhouzhuangjie

问题

V6.11 发布门禁 pnpm test:apm-notification-closure 失败。当前策略编辑器把多个通知渠道映射到同一个 notification_recipients,没有按渠道的 recipient_modesystem_user / free_text / none)分别配置,也未使用现有 /apm/notification-recipients/ 系统用户目录。

风险

  • 选择不同接收人模式的多个渠道时,可能把不适用的接收人值发送给错误渠道。
  • system_user 渠道无法保证只选择组织内系统用户。
  • 现有静态发布契约正确阻止 RC 出包。

验收

  • 策略表单使用 notification_targets 逐渠道维护 channel_idrecipients
  • recipient_mode=none 不展示接收人且提交空数组。
  • recipient_mode=system_user 使用系统用户目录多选。
  • recipient_mode=free_text 使用标签输入。
  • 编辑时完整回显每个渠道已有接收人。
  • 不可用历史渠道可识别且保存前要求移除。
  • pnpm test:apm-notification-closure 和策略编辑器测试通过。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions