{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare/main/json-schema/cloudflare-digital-experience-monitoring-http-details-response-schema.json",
  "title": "digital-experience-monitoring_http_details_response",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudflare-accounts-api-openapi.yml#/components/schemas/digital-experience-monitoring_http_details_response",
  "type": "object",
  "properties": {
    "host": {
      "type": "string",
      "description": "The url of the HTTP synthetic application test"
    },
    "httpStats": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "uniqueDevicesTotal",
        "resourceFetchTimeMs",
        "serverResponseTimeMs",
        "dnsResponseTimeMs",
        "httpStatusCode"
      ],
      "properties": {
        "dnsResponseTimeMs": {
          "$ref": "#/$defs/digital-experience-monitoring_test_stat_over_time"
        },
        "httpStatusCode": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "timestamp",
              "status200",
              "status300",
              "status400",
              "status500"
            ],
            "properties": {
              "status200": {
                "type": "integer"
              },
              "status300": {
                "type": "integer"
              },
              "status400": {
                "type": "integer"
              },
              "status500": {
                "type": "integer"
              },
              "timestamp": {
                "type": "string"
              }
            }
          }
        },
        "resourceFetchTimeMs": {
          "$ref": "#/$defs/digital-experience-monitoring_test_stat_over_time"
        },
        "serverResponseTimeMs": {
          "$ref": "#/$defs/digital-experience-monitoring_test_stat_over_time"
        },
        "uniqueDevicesTotal": {
          "type": "integer",
          "description": "Count of unique devices that have run this test in the given time period"
        }
      }
    },
    "httpStatsByColo": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "colo",
          "uniqueDevicesTotal",
          "resourceFetchTimeMs",
          "serverResponseTimeMs",
          "dnsResponseTimeMs",
          "httpStatusCode"
        ],
        "properties": {
          "colo": {
            "type": "string"
          },
          "dnsResponseTimeMs": {
            "$ref": "#/$defs/digital-experience-monitoring_test_stat_over_time"
          },
          "httpStatusCode": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "timestamp",
                "status200",
                "status300",
                "status400",
                "status500"
              ],
              "properties": {
                "status200": {
                  "type": "integer"
                },
                "status300": {
                  "type": "integer"
                },
                "status400": {
                  "type": "integer"
                },
                "status500": {
                  "type": "integer"
                },
                "timestamp": {
                  "type": "string"
                }
              }
            }
          },
          "resourceFetchTimeMs": {
            "$ref": "#/$defs/digital-experience-monitoring_test_stat_over_time"
          },
          "serverResponseTimeMs": {
            "$ref": "#/$defs/digital-experience-monitoring_test_stat_over_time"
          },
          "uniqueDevicesTotal": {
            "type": "integer",
            "description": "Count of unique devices that have run this test in the given time period"
          }
        }
      }
    },
    "interval": {
      "type": "string",
      "description": "The interval at which the HTTP synthetic application test is set to run."
    },
    "kind": {
      "enum": [
        "http"
      ]
    },
    "method": {
      "type": "string",
      "description": "The HTTP method to use when running the test"
    },
    "name": {
      "type": "string",
      "description": "The name of the HTTP synthetic application test"
    }
  },
  "$defs": {
    "digital-experience-monitoring_test_stat_over_time": {
      "type": "object",
      "required": [
        "slots"
      ],
      "properties": {
        "avg": {
          "type": [
            "integer",
            "null"
          ],
          "description": "average observed in the time period"
        },
        "max": {
          "type": [
            "integer",
            "null"
          ],
          "description": "highest observed in the time period"
        },
        "min": {
          "type": [
            "integer",
            "null"
          ],
          "description": "lowest observed in the time period"
        },
        "slots": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "timestamp",
              "value"
            ],
            "properties": {
              "timestamp": {
                "type": "string"
              },
              "value": {
                "type": "integer"
              }
            }
          }
        }
      }
    }
  }
}