OncallBox说明文档
  1. 告警集成
OncallBox说明文档
  • 用户邀请
  • 快速开始
    • 如何进行On-Call
    • 常见问题
  • 故障处理
    • 工单处理
  • 配置接入
    • 业务管理
    • 响应策略
      • 未命名文档
    • 值班表
  • 告警集成
    • 百度云接入说明
    • 微软云接入说明
    • 亚马逊云接入说明
    • 腾讯云 CM接入说明
    • 腾讯云 CLS接入说明
    • 腾讯云 Event Bridge接入说明
    • 阿里云 ARMS接入说明
    • 阿里云 CM 指标接入说明
    • 阿里云 CM 事件接入说明
    • 阿里云 SLS接入说明
    • Prometheus接入说明
    • Grafana接入说明
    • Event API接入说明
  • IM集成
    • 飞书
    • 企业微信
    • 钉钉
  • 团队与权限
    • 用户邀请
  • 用户协议
    • 服务协议
    • 隐私政策
  • 单点登录
    • Keycloack集成指引
  1. 告警集成

Event API接入说明

API说明#

URL
https://event.oncallbox.com/api/event/enqueue
Header
Content-Type:application/json
Method
POST
Body
{
    "links": [
        {
            "href": "http://m.baidu.com",
            "text": "baidu"
        }
    ],
    "images": [
        {
            "href": "http://m.baidu.com",
            "src": "http://m.baidu.com/a.jpg",
            "alt": "baidu"
        }
    ],
    "custom_details": {
        "name": "bill",
        "label": "xx"
    },
    "dedup_key": "",
    "routing_key": "xxxxxxxxx", // Integration Key
    "title": "test-1",
    "description": "test-1",
    "severity": "warning",
    "source": "baidu",
    "action": "trigger",
    "component": "haokan",
    "group": "meg",
    "class": "database"
}
Response
{
        "code": 0,
        "msg": "ok",
        "data": {
                "dedup_key": "xxxxxxxxxxxx"
        }
}

状态对照#

如果没有设置,系统自动设置告警等级为warning。
Oncallbox告警等级映射关系:
Oncallbox状态
critical严重
error错误
warning警告
Info提醒
修改于 2025-01-25 08:36:47
上一页
Grafana接入说明
下一页
飞书
Built with