alert-management by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill alert-management设计和实现复杂的告警管理系统,包含 PagerDuty 集成、升级策略、告警路由和事件协调。
最小工作示例:
// pagerduty-client.js
const axios = require("axios");
class PagerDutyClient {
constructor(apiToken) {
this.apiToken = apiToken;
this.baseUrl = "https://api.pagerduty.com";
this.eventUrl = "https://events.pagerduty.com/v2/enqueue";
this.client = axios.create({
baseURL: this.baseUrl,
headers: {
Authorization: `Token token=${apiToken}`,
Accept: "application/vnd.pagerduty+json;version=2",
},
});
}
async triggerEvent(config) {
const event = {
routing_key: config.routingKey,
event_action: config.eventAction || "trigger",
dedup_key: config.dedupKey || `event-${Date.now()}`,
payload: {
summary: config.summary,
// ... (完整实现请参阅参考指南)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/ 目录下的详细实现:
| 指南 | 内容 |
|---|---|
| PagerDuty Client Integration | PagerDuty 客户端集成 |
| Alertmanager Configuration | Alertmanager 配置 |
| Alert Handler Middleware | 告警处理中间件 |
| Alert Routing Engine | 告警路由引擎 |
| Docker Compose Alert Stack | Docker Compose 告警栈 |
每周安装数
109
代码仓库
GitHub 星标数
121
首次出现
2026年1月21日
安全审计
安装于
opencode91
gemini-cli90
codex87
cursor85
claude-code84
github-copilot76
Design and implement sophisticated alert management systems with PagerDuty integration, escalation policies, alert routing, and incident coordination.
Minimal working example:
// pagerduty-client.js
const axios = require("axios");
class PagerDutyClient {
constructor(apiToken) {
this.apiToken = apiToken;
this.baseUrl = "https://api.pagerduty.com";
this.eventUrl = "https://events.pagerduty.com/v2/enqueue";
this.client = axios.create({
baseURL: this.baseUrl,
headers: {
Authorization: `Token token=${apiToken}`,
Accept: "application/vnd.pagerduty+json;version=2",
},
});
}
async triggerEvent(config) {
const event = {
routing_key: config.routingKey,
event_action: config.eventAction || "trigger",
dedup_key: config.dedupKey || `event-${Date.now()}`,
payload: {
summary: config.summary,
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| PagerDuty Client Integration | PagerDuty Client Integration |
| Alertmanager Configuration | Alertmanager Configuration |
| Alert Handler Middleware | Alert Handler Middleware |
| Alert Routing Engine | Alert Routing Engine |
| Docker Compose Alert Stack | Docker Compose Alert Stack |
Weekly Installs
109
Repository
GitHub Stars
121
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode91
gemini-cli90
codex87
cursor85
claude-code84
github-copilot76
企业级UI/UX设计系统:React 19/Vue 3.5组件库、WCAG 2.2无障碍访问与200K+图标库
164 周安装
Whisper 音频转录工具 - 使用 OpenAI 模型将音视频转为文本/字幕 (SRT/VTT)
165 周安装
Zustand 5.x 状态管理最佳实践:核心模式、性能优化与反模式指南
165 周安装
CSV数据可视化工具 - 交互式图表、自动剖析与仪表板生成 | Python数据分析
165 周安装
Streamlit 应用调试指南:快速定位前后端错误与日志分析
167 周安装
塑形方法论(Shaping):结构化协作问题定义与解决方案探索框架
164 周安装