事故管理集成Skill incidentio-integration

这个技能用于集成Incident.io事故管理系统,支持事故的列出、搜索和分析。它能够计算平均解决时间(MTTR),进行严重性分析,并通过警报路由分析检测警报疲劳。适用于DevOps团队进行运维优化和事故响应。关键词:事故管理、MTTR、警报分析、DevOps、运维自动化、IT服务管理。

DevOps 0 次安装 0 次浏览 更新于 3/16/2026

name: incidentio-integration description: Incident.io 事故管理与分析。用于列出、搜索和分析事故。支持 MTTR 计算、严重性分析和通过警报路由分析检测警报疲劳。 allowed-tools: Bash(python *)

Incident.io 集成

认证

重要: 凭据通过代理层自动注入。不要检查环境变量中的 INCIDENTIO_API_KEY - 您将看不到它们。直接运行脚本;认证透明处理。

您可以检查的配置环境变量(非机密):

  • INCIDENTIO_BASE_URL - 代理基础 URL(在生产环境中自动设置)

可用脚本

所有脚本位于 .claude/skills/incident-incidentio/scripts/

list_incidents.py - 列出事故

python .claude/skills/incident-incidentio/scripts/list_incidents.py [--status STATUS] [--severity-id ID] [--max-results N]

# 示例:
python .claude/skills/incident-incidentio/scripts/list_incidents.py --status active
python .claude/skills/incident-incidentio/scripts/list_incidents.py --status resolved --max-results 20

get_incident.py - 获取事故详情

python .claude/skills/incident-incidentio/scripts/get_incident.py --incident-id INCIDENT_ID

get_incident_updates.py - 获取时间线更新

python .claude/skills/incident-incidentio/scripts/get_incident_updates.py --incident-id INCIDENT_ID [--max-results 50]

list_incidents_by_date_range.py - 带 MTTR 的历史事故

python .claude/skills/incident-incidentio/scripts/list_incidents_by_date_range.py --since "2024-01-01T00:00:00Z" --until "2024-01-31T23:59:59Z" [--status STATUS] [--max-results N]

list_severities.py - 列出严重性级别

python .claude/skills/incident-incidentio/scripts/list_severities.py

list_incident_types.py - 列出事故类型

python .claude/skills/incident-incidentio/scripts/list_incident_types.py

get_alert_analytics.py - 警报疲劳分析

python .claude/skills/incident-incidentio/scripts/get_alert_analytics.py --since "2024-01-01T00:00:00Z" --until "2024-01-31T23:59:59Z"

calculate_mttr.py - MTTR 统计

python .claude/skills/incident-incidentio/scripts/calculate_mttr.py [--severity-id ID] [--days 30]

调查工作流程

事故分析

1. 列出最近事故:
   list_incidents.py --status active

2. 获取事故详情:
   get_incident.py --incident-id <id>

3. 查看时间线:
   get_incident_updates.py --incident-id <id>

4. 为严重性评估计算 MTTR:
   calculate_mttr.py --days 30

警报疲劳分析

1. 获取期间内的警报分析:
   get_alert_analytics.py --since "2024-01-01T00:00:00Z" --until "2024-01-31T23:59:59Z"

2. 审查嘈杂路由(高触发次数,低确认率)

3. 按严重性检查历史 MTTR:
   calculate_mttr.py --severity-id <sev_id>