{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monit-rs/json-schema/monit-rs-regression-response-schema.json",
  "title": "RegressionResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monit-rs-openapi.json#/components/schemas/RegressionResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "endpoint_id": {
      "type": "string",
      "format": "uuid",
      "title": "Endpoint Id"
    },
    "endpoint_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Endpoint Name",
      "description": "Name of the monitored endpoint this regression is about."
    },
    "incident_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Incident Id"
    },
    "incident_regression_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Incident Regression Count",
      "description": "How many regressions the incident this one belongs to groups in total. Null when the regression is not linked to an incident."
    },
    "regression_type": {
      "type": "string",
      "title": "Regression Type"
    },
    "severity": {
      "type": "string",
      "title": "Severity"
    },
    "diff_summary": {
      "additionalProperties": true,
      "type": "object",
      "title": "Diff Summary"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "is_acknowledged": {
      "type": "boolean",
      "title": "Is Acknowledged"
    },
    "is_resolved": {
      "type": "boolean",
      "title": "Is Resolved"
    },
    "resolved_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolved At"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "endpoint_id",
    "regression_type",
    "severity",
    "diff_summary",
    "description",
    "is_acknowledged",
    "is_resolved",
    "resolved_at",
    "created_at"
  ]
}