🚨 PagerDuty
PagerDuty incident management — manage incidents, services, schedules, escalation policies, and on-call via REST API
Requirements
| Variable | Required | Description |
|---|
| INLINECODE0 | ✅ | API token from pagerduty.com |
Quick Start
CODEBLOCK0
All Commands
| Command | Description |
|---|
| INLINECODE1 | List incidents |
| INLINECODE2 |
Get incident |
|
incident-create | Create incident |
|
incident-update | Update incident |
|
incident-notes | List incident notes |
|
incident-note-add | Add note |
|
services | List services |
|
service-get | Get service |
|
service-create | Create service |
|
oncalls | List on-calls |
|
schedules | List schedules |
|
schedule-get | Get schedule |
|
escalation-policies | List escalation policies |
|
users | List users |
|
user-get | Get user |
|
teams | List teams |
|
vendors | List vendors |
|
notifications | List notifications |
|
abilities | List abilities |
Output Format
All commands output JSON by default. Add --human for readable formatted output.
CODEBLOCK1
Script Reference
| Script | Description |
|---|
| INLINECODE21 | Main CLI — all commands in one tool |
Credits
Built by
M. Abidi |
agxntsix.ai
YouTube |
GitHub
Part of the
AgxntSix Skill Suite for OpenClaw agents.
📅 Need help setting up OpenClaw for your business? Book a free consultation
🚨 PagerDuty
PagerDuty 事件管理 — 通过 REST API 管理事件、服务、排班、升级策略和值班安排
要求
| 变量 | 必需 | 描述 |
|---|
| PAGERDUTYAPIKEY | ✅ | 来自 pagerduty.com 的 API 令牌 |
快速开始
bash
列出事件
python3 {{baseDir}}/scripts/pagerduty.py incidents --statuses[]
--since --until
获取事件
python3 {{baseDir}}/scripts/pagerduty.py incident-get id
创建事件
python3 {{baseDir}}/scripts/pagerduty.py incident-create --title --service_id --urgency
更新事件
python3 {{baseDir}}/scripts/pagerduty.py incident-update id --status
列出事件备注
python3 {{baseDir}}/scripts/pagerduty.py incident-notes id
添加备注
python3 {{baseDir}}/scripts/pagerduty.py incident-note-add id --content
列出服务
python3 {{baseDir}}/scripts/pagerduty.py services --query
获取服务
python3 {{baseDir}}/scripts/pagerduty.py service-get id
所有命令
| 命令 | 描述 |
|---|
| incidents | 列出事件 |
| incident-get |
获取事件 |
| incident-create | 创建事件 |
| incident-update | 更新事件 |
| incident-notes | 列出事件备注 |
| incident-note-add | 添加备注 |
| services | 列出服务 |
| service-get | 获取服务 |
| service-create | 创建服务 |
| oncalls | 列出值班安排 |
| schedules | 列出排班 |
| schedule-get | 获取排班 |
| escalation-policies | 列出升级策略 |
| users | 列出用户 |
| user-get | 获取用户 |
| teams | 列出团队 |
| vendors | 列出供应商 |
| notifications | 列出通知 |
| abilities | 列出能力 |
输出格式
默认情况下,所有命令输出 JSON 格式。添加 --human 参数可获得可读性更好的格式化输出。
bash
python3 {{baseDir}}/scripts/pagerduty.py --human
脚本参考
| 脚本 | 描述 |
|---|
| {{baseDir}}/scripts/pagerduty.py | 主 CLI — 所有命令集成于一个工具 |
致谢
由 M. Abidi 构建 | agxntsix.ai
YouTube | GitHub
属于 OpenClaw 代理的 AgxntSix 技能套件 的一部分。
📅 需要为您的业务设置 OpenClaw 的帮助? 预约免费咨询