{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/victorops/json-schema/victorops-incident-info-schema.json",
  "title": "IncidentInfo",
  "description": "Incidents contain the following fields (all should be considered optional)",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/victorops-openapi.yml#/components/schemas/IncidentInfo",
  "type": "object",
  "properties": {
    "incidentNumber": {
      "type": "string",
      "description": "The VictorOps incident number"
    },
    "startTime": {
      "type": "string",
      "description": "The time the incident started\n\nThe format of the start time is in `yyyy-MM-dd'T'HH:mm:ssZ`."
    },
    "currentPhase": {
      "type": "string",
      "description": "The current phase of the incident can be resolved, triggered (UNACKED) or acknowledged (ACKED).",
      "enum": [
        "RESOLVED",
        "UNACKED",
        "ACKED"
      ]
    },
    "alertCount": {
      "type": "number",
      "description": "The number of alerts received for this incident"
    },
    "lastAlertTime": {
      "type": "string",
      "description": "The time of the last alert received for the incident\n\nThe format of the last alert time is in `yyyy-MM-dd'T'HH:mm:ssZ`."
    },
    "lastAlertId": {
      "type": "string",
      "description": "The UUID of the last alert for the incident"
    },
    "entityId": {
      "type": "string",
      "description": "The unique identification of the entity being monitored that caused the incident"
    },
    "host": {
      "type": "string",
      "description": "The host on which the incident occurred"
    },
    "service": {
      "type": "string",
      "description": "The service name causing the incident (if any)"
    },
    "pagedUsers": {
      "type": "array",
      "description": "A list of the Victorops usernames of the users that were paged for the incident.",
      "items": {
        "type": "string"
      }
    },
    "pagedTeams": {
      "type": "array",
      "description": "The teams that were paged for the incident\n\nThis is a list of the team slugs of the teams that were paged.\n\nThe team slug is in the format `team-[\\w\\d]{16}`",
      "items": {
        "type": "string"
      }
    },
    "pagedPolicies": {
      "type": "array",
      "description": "The escalation policy summaries that were triggered for the incident",
      "items": {
        "$ref": "#/$defs/EscalationPolicyInfo"
      }
    },
    "transitions": {
      "type": "array",
      "description": "Transitions of the incident state over time",
      "items": {
        "$ref": "#/$defs/IncidentTransition"
      }
    },
    "firstAlertUuid": {
      "type": "string",
      "description": "The UUID of the first alert for this incident.\n\nYou can use this id to call the get alert endpoint in the Alerts section (`/api-public/v1/alerts/{uuid}`) to get more information about the alert that started this incident.\n\nThe state message field for the first alert will have the original, more detailed description of the incident."
    },
    "monitorName": {
      "type": "string",
      "description": "This is the name of the creator of this incident. If this incident was manually triggered, this is the username of the user that triggered it. If this incident was not manually triggered, this is the name of the service that triggered it.\n\nThe format for manual creation is `vouser-{username}`.\n\nThe format for a system creating an incident is `{service-name}`."
    },
    "monitorType": {
      "type": "string",
      "description": "The type of the monitor of the incident, as named in the monitorName, that triggered the incident. Either manual (if a user created the incident) or the name of the service that triggered the incident",
      "enum": [
        "UNKNOWN",
        "PINGDOM",
        "NAGIOS",
        "HEALTHCHECKER",
        "API",
        "Cloudwatch",
        "NewRelic",
        "Zabbix",
        "Email",
        "Splunk",
        "ServiceNow",
        "Manual",
        "etc"
      ]
    }
  },
  "$defs": {
    "EscalationPolicyInfo": {
      "type": "object",
      "required": [
        "policy",
        "team"
      ],
      "properties": {
        "policy": {
          "$ref": "#/$defs/EscalationPolicySummary"
        },
        "team": {
          "$ref": "#/$defs/Team"
        }
      }
    },
    "EscalationPolicySummary": {
      "type": "object",
      "description": "A summary containing minimal, high-level information about an escalation policy.",
      "required": [
        "name",
        "slug",
        "_selfUrl"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of this escalation policy"
        },
        "slug": {
          "type": "string",
          "description": "A unique identifier for this escalation policy.\n\nThe slug is in the format `pol-[\\w\\d]{16}`"
        },
        "_selfUrl": {
          "type": "string",
          "description": "This is a URI that is generated for this escalation policy. It points to the entire escalation policy resource. and can be used to get detailed information about this escalation policy instead of just the summary."
        }
      }
    },
    "IncidentTransition": {
      "type": "object",
      "description": "A transition of incident state",
      "properties": {
        "name": {
          "type": "string",
          "description": "The transition name"
        },
        "at": {
          "type": "string",
          "description": "The time of the transition"
        },
        "by": {
          "type": "string",
          "description": "The user that caused the transition (if any)"
        },
        "message": {
          "type": "string",
          "description": "The message entered by that user (if any)"
        },
        "manually": {
          "type": "boolean",
          "description": "If the incident transition was caused by a person"
        },
        "alertId": {
          "type": "string",
          "description": "The unique alert ID that caused the transition"
        },
        "alertUrl": {
          "type": "string",
          "description": "A URL to retrieve the details of the alert that caused the transition"
        }
      }
    },
    "Team": {
      "type": "object",
      "required": [
        "name",
        "slug"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The team name"
        },
        "slug": {
          "type": "string",
          "description": "The unique identifier for this team.\n\nThe slug is in the format `team-[\\w\\d]{16}`"
        }
      }
    }
  }
}