360 Secure SkillHub
360 安全技能中心

Pagerduty

这是一款基于Python的PagerDuty运维管理工具,需配置PAGERDUTY_API_KEY使用。核心功能涵盖事件的增删改查、备注管理,以及服务、排班、升级策略、人员等运维资源的查询。适用于运维人员处理告警事件、管理值班安排等场景,通过命令行传参操作,默认输出JSON,加--human可切换为易读格式,基于Python3.10+开发且无额外依赖。

aiwithabidi
aiwithabidi
热度 55.86
最近更新 2026-05-10 17:41:24
分类:开发依赖:代码执行 / 第三方 API应用场景:API 集成 / 自动化脚本 / DevOps / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pagerduty
Metadata
name
pagerduty
description
PagerDuty incident management — manage incidents, services, schedules, escalation policies, and on-call via REST API
homepage
https://www.agxntsix.ai
license
MIT
compatibility
Python 3.10+ (stdlib only — no dependencies)
metadata
{"openclaw":{"emoji":"🚨","requires":{"env":["PAGERDUTY_API_KEY"]},"primaryEnv":"PAGERDUTY_API_KEY","homepage":"https://www.agxntsix.ai"}}

🚨 PagerDuty

PagerDuty incident management — manage incidents, services, schedules, escalation policies, and on-call via REST API

Requirements

Variable Required Description
PAGERDUTY_API_KEY ✅ API token from pagerduty.com

Quick Start

# List incidents
python3 {{baseDir}}/scripts/pagerduty.py incidents --statuses[] <value> --since <value> --until <value>

# Get incident
python3 {{baseDir}}/scripts/pagerduty.py incident-get id <value>

# Create incident
python3 {{baseDir}}/scripts/pagerduty.py incident-create --title <value> --service_id <value> --urgency <value>

# Update incident
python3 {{baseDir}}/scripts/pagerduty.py incident-update id <value> --status <value>

# List incident notes
python3 {{baseDir}}/scripts/pagerduty.py incident-notes id <value>

# Add note
python3 {{baseDir}}/scripts/pagerduty.py incident-note-add id <value> --content <value>

# List services
python3 {{baseDir}}/scripts/pagerduty.py services --query <value>

# Get service
python3 {{baseDir}}/scripts/pagerduty.py service-get id <value>

All Commands

Command Description
incidents List incidents
incident-get 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.

python3 {{baseDir}}/scripts/pagerduty.py <command> --human

Script Reference

Script Description
{{baseDir}}/scripts/pagerduty.py 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