{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-internet-insights-api-api-outages-response-schema.json",
  "title": "Internet_Insights_API_ApiOutagesResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-internet-insights-outages-api-openapi.yml#/components/schemas/Internet_Insights_API_ApiOutagesResponse",
  "type": "object",
  "properties": {
    "outages": {
      "type": "array",
      "description": "List of application outages.",
      "items": {
        "$ref": "#/$defs/Internet_Insights_API_ApiOutage"
      }
    },
    "_links": {
      "$ref": "#/$defs/Internet_Insights_API_SelfLinks"
    }
  },
  "$defs": {
    "Internet_Insights_API_ApiOutage": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the outage."
        },
        "type": {
          "type": "string",
          "description": "The type of outage e.g. app."
        },
        "providerName": {
          "type": "string",
          "description": "The name of the affected provider."
        },
        "providerType": {
          "type": "string",
          "description": "The type of the affected provider."
        },
        "name": {
          "type": "string",
          "description": "The name of the affected application."
        },
        "startDate": {
          "type": "string",
          "description": "Date and time when the outage started.",
          "format": "yyyy-MM-ddTHH:mm[:ss]Z"
        },
        "startRoundId": {
          "type": "integer",
          "description": "Epoch time (seconds) when the outage started.",
          "format": "int64"
        },
        "endDate": {
          "type": "string",
          "format": "yyyy-MM-ddTHH:mm[:ss]Z",
          "description": "Date and time when the outage ended."
        },
        "endRoundId": {
          "type": "integer",
          "description": "Epoch time (seconds) when the outage ended.",
          "format": "int64"
        },
        "duration": {
          "type": "integer",
          "description": "Duration of the outage (seconds)",
          "format": "int64"
        },
        "affectedTestsCount": {
          "type": "integer",
          "description": "The number of affected tests",
          "format": "int32"
        },
        "affectedServersCount": {
          "type": "integer",
          "description": "The number of affected servers",
          "format": "int32"
        },
        "affectedLocationsCount": {
          "type": "integer",
          "description": "The number of affected locations.",
          "format": "int32"
        },
        "affectedInterfacesCount": {
          "type": "integer",
          "description": "The number of affected interfaces.",
          "format": "int32"
        },
        "asn": {
          "type": "integer",
          "description": "ASN number."
        },
        "_links": {
          "$ref": "#/$defs/Internet_Insights_API_SelfLinks"
        }
      },
      "description": "List of outages."
    },
    "Internet_Insights_API_Link": {
      "type": "object",
      "description": "A hyperlink from the containing resource to a URI.",
      "required": [
        "href"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "Its value is either a URI [RFC3986] or a URI template [RFC6570]."
        },
        "templated": {
          "type": "boolean",
          "description": "Should be true when the link object's \"href\" property is a URI template."
        },
        "type": {
          "type": "string",
          "description": "Used as a hint to indicate the media type expected when dereferencing the target resource."
        },
        "deprecation": {
          "type": "string",
          "description": "Its presence indicates that the link is to be deprecated at a future date. Its value is a URL that should provide further information about the deprecation."
        },
        "name": {
          "type": "string",
          "description": "Its value may be used as a secondary key for selecting link objects that share the same relation type."
        },
        "profile": {
          "type": "string",
          "description": "A URI that hints about the profile of the target resource."
        },
        "title": {
          "type": "string",
          "description": "Intended for labelling the link with a human-readable identifier"
        },
        "hreflang": {
          "type": "string",
          "description": "Indicates the language of the target resource"
        }
      }
    },
    "Internet_Insights_API_SelfLinks": {
      "type": "object",
      "description": "A links object containing the self link.",
      "readOnly": true,
      "properties": {
        "self": {
          "$ref": "#/$defs/Internet_Insights_API_Link"
        }
      }
    }
  }
}