{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimerobot/json-schema/uptimerobot-create-pagerduty-integration-dto-schema.json",
  "title": "CreatePagerdutyIntegrationDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uptimerobot-integrations-api-openapi.yml#/components/schemas/CreatePagerdutyIntegrationDto",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "Pagerduty"
      ]
    },
    "data": {
      "$ref": "#/$defs/CreatePagerdutyBaseIntegrationDto"
    }
  },
  "required": [
    "type",
    "data"
  ],
  "$defs": {
    "CreatePagerdutyBaseIntegrationDto": {
      "type": "object",
      "properties": {
        "friendlyName": {
          "type": "string",
          "maxLength": 60,
          "description": "The friendly name of the integration"
        },
        "enableNotificationsFor": {
          "enum": [
            "UpAndDown",
            "Down",
            "Up",
            "None"
          ],
          "type": "string"
        },
        "sslExpirationReminder": {
          "type": "boolean",
          "description": "Send a notification about SSL & Domain expiry"
        },
        "integrationKey": {
          "type": "string",
          "minLength": 32,
          "description": "The PagerDuty Integration Key"
        },
        "location": {
          "enum": [
            "us",
            "eu"
          ],
          "type": "string",
          "description": "The PagerDuty Service region"
        },
        "autoResolve": {
          "type": "boolean",
          "description": "Auto-resolve incidents after up event"
        }
      },
      "required": [
        "integrationKey"
      ]
    }
  }
}