Skip to content

关于本页

本页介绍更夫所基于的开源内核 Keep 的通用能力。更夫在其上提供国内化增强:钉钉/企业微信/飞书通知、国产大模型接入、LDAP 认证与值班管理。部署与上手请看快速上手。

INFO

工作流链接:workflow。

此工作流演示如何仅在指定营业时间内执行动作。

说明:

  • 触发器:由告警或手动激活。
  • 动作:检查当前时间是否在 America/New_York 时区的营业时间内。如果是,则将 businesshours 字段设置为 true 来增强告警。
yaml
workflow:
  id: businesshours
  description: demonstrate how to do smth only when it's business hours
  triggers:
    - type: alert
    - type: manual
  actions:
    - name: dismiss-alert
      if: "keep.is_business_hours(timezone='America/New_York')"
      provider:
        type: mock
        with:
          enrich_alert:
            - key: businesshours
              value: "true"

基于 MIT 协议开源的 Keep · 由更夫社区维护