Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

opsgenie

БесплатноБез исполняемых скриптовНе проверен

Opsgenie is Atlassian's alert and on-call management service, driven through its REST API v2. Use when a user needs to set up alert routing, escalation…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Opsgenie

Overview

Set up Opsgenie for centralized alert management with routing rules, on-call schedules, escalation policies, and integrations, using the REST API v2 with a GenieKey API key.

Lifecycle warning: Atlassian stopped selling Opsgenie on 4 June 2025 and ends support on 5 April 2027. Existing subscriptions keep working until then. Atlassian's documented migration paths move Opsgenie into a Jira Service Management Cloud site; do not recommend Opsgenie to a team that does not already have it.

Accounts in the EU region must use https://api.eu.opsgenie.com instead of https://api.opsgenie.com in every command below. Keep the key in an environment variable (OG_API_KEY); use a key with only the access rights the task needs.

Instructions

Create things in this order, because each refers to the previous one by name: team, schedule (Task C), escalation (Task D), routing rule (Task A, second command). Most name-based lookups need the matching ...IdentifierType=name query parameter; without it the API treats the value as an id.

Task A: Create Teams and Routing

# Create a team
curl -X POST "https://api.opsgenie.com/v2/teams" \
  -H "Authorization: GenieKey ${OG_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Platform Engineering",
    "description": "Infrastructure and platform services team",
    "members": [
      { "user": { "username": "[email protected]" }, "role": "admin" },
      { "user": { "username": "[email protected]" }, "role": "user" },
      { "user": { "username": "[email protected]" }, "role": "user" }
    ]
  }'
# Create a routing rule for the team
curl -X POST "https://api.opsgenie.com/v2/teams/Platform%20Engineering/routing-rules?teamIdentifierType=name" \
  -H "Authorization: GenieKey ${OG_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Critical Production Alerts",
    "order": 0,
    "criteria": {
      "type": "match-all-conditions",
      "conditions": [
        { "field": "priority", "operation": "equals", "expectedValue": "P1" },
        { "field": "tags", "operation": "contains", "expectedValue": "production" }
      ]
    },
    "notify": {
      "type": "escalation",
      "name": "Platform Critical Escalation"
    },
    "timezone": "America/New_York"
  }'

Task B: Create Alerts

# Create an alert
curl -X POST "https://api.opsgenie.com/v2/alerts" \
  -H "Authorization: GenieKey ${OG_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Payment Service: Error rate exceeded 5%",
    "alias": "payment-service-error-rate-prod",
    "description": "Error rate for payment-service in production has exceeded the 5% threshold. Current rate: 8.3%.\n\nAffected endpoints: /api/charge, /api/refund\nDashboard: https://grafana.internal/d/payments",
    "responders": [
      { "name": "Platform Engineering", "type": "team" }
    ],
    "tags": ["production", "payment", "critical"],
    "priority": "P1",
    "entity": "payment-service",
    "source": "prometheus-alertmanager",
    "details": {
      "error_rate": "8.3%",
      "threshold": "5%",
      "runbook": "https://wiki.internal/runbooks/payment-errors"
    }
  }'
# Acknowledge an alert
curl -X POST "https://api.opsgenie.com/v2/alerts/payment-service-error-rate-prod/acknowledge?identifierType=alias" \
  -H "Authorization: GenieKey ${OG_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{ "user": "[email protected]", "note": "Investigating — checking database connections." }'
# Close an alert
curl -X POST "https://api.opsgenie.com/v2/alerts/payment-service-error-rate-prod/close?identifierType=alias" \
  -H "Authorization: GenieKey ${OG_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{ "user": "[email protected]", "note": "Fixed connection pool sizing. Error rate back to normal." }'

Task C: On-Call Schedules

# Create an on-call schedule with weekly rotation
curl -X POST "https://api.opsgenie.com/v2/schedules" \
  -H "Authorization: GenieKey ${OG_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Platform Primary On-Call",
    "ownerTeam": { "name": "Platform Engineering" },
    "timezone": "America/New_York",
    "enabled": true,
    "rotations": [
      {
        "name": "Weekday Rotation",
        "type": "weekly",
        "startDate": "2026-02-23T09:00:00Z",
        "participants": [
          { "type": "user", "username": "[email protected]" },
          { "type": "user", "username": "[email protected]" },
          { "type": "user", "username": "[email protected]" }
        ],
        "timeRestriction": {
          "type": "weekday-and-time-of-day",
          "restrictions": [
            { "startDay": "monday", "startHour": 9, "startMin": 0, "endDay": "friday", "endHour": 18, "endMin": 0 }
          ]
        }
      }
    ]
  }'
# Get current on-call participants
curl -s "https://api.opsgenie.com/v2/schedules
Полный SKILL.md на GitHub

Установить opsgenie в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл opsgenie?

Opsgenie is Atlassian's alert and on-call management service, driven through its REST API v2. Use when a user needs to set up alert routing, escalation policies, on-call rotations, Alertmanager integration, or to plan the move away from Opsgenie before its April 2027 end of support.

Как установить скилл opsgenie?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл opsgenie запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить opsgenie с