Wener Notes

Keep

约 1 分钟阅读
  • keephq/keepGitHubkeephq/keepkeephq/keep · MIT+EE, Python, Typescript · FastAPI, SQLite, PostgreSQL, Redis, Elasticsearch, Pusher, Socket.IO · React, NextJS, React Chrono, Chart.js, Recharts, TailwindCSS笔记:Keep
    • MIT+EE, Python, Typescript
    • FastAPI, SQLite, PostgreSQL, Redis, Elasticsearch, Pusher, Socket.IO
    • React, NextJS, React Chrono, Chart.js, Recharts, TailwindCSS
    • AIOps 和告警管理平台
  • 服务
    • keep-frontend
    • keep-backend
    • keep-websocket-server
yaml
workflow:
  id: example-workflow
  name: Example Workflow
  description: Example workflow description
  # Manual, Alert, Interval, Incident
  # filter: CEL, Legacy filter
  triggers:
    # 触发器定义

  # query
  steps:
    # 查询步骤定义
  # notify
  # 执行动作定义
  actions:
    - name: notify-slack
      if: "{{ alert.severity }} == 'critical' and {{ steps.get-data.results.value }} > 90"
      provider:
        type: slack
        config: '{{ providers.slack }}'
        with:
          message: 'Critical alert!'
  # 常量定义
  consts:
  vars:

DSL

  • celpy
  • 数学函数: add(), sub(), mul(), div(), mod(), exp()
  • 字符串函数: uppercase(), lowercase(), split(), replace(), slice()
  • 时间函数: datetime_compare(), is_business_hours(), timestamp_delta()
  • 工具函数: get_firing_time(), is_first_time(), dictget()

关联信息

反向链接、本文链接的其他页面和外部资料。

References

GitHub1 条
最近更新commit 35a8ba1Edit

On this page