{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-endpoint-test-results-api-real-user-endpoint-test-results-schema.json",
  "title": "Endpoint_Test_Results_API_RealUserEndpointTestResults",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-real-user-endpoint-test-results-api-openapi.yml#/components/schemas/Endpoint_Test_Results_API_RealUserEndpointTestResults",
  "type": "object",
  "properties": {
    "results": {
      "x-paginated-items": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/Endpoint_Test_Results_API_RealUserEndpointTest"
      }
    },
    "startDate": {
      "$ref": "#/$defs/Endpoint_Test_Results_API_StartDate"
    },
    "endDate": {
      "$ref": "#/$defs/Endpoint_Test_Results_API_EndDate"
    },
    "_links": {
      "$ref": "#/$defs/Endpoint_Test_Results_API_PaginationNextLink"
    }
  },
  "$defs": {
    "Endpoint_Test_Results_API_EndDate": {
      "type": "string",
      "format": "date-time",
      "description": "(Optional) When passing `window` or `endDate` parameter,  the client will also receive the `endDate` field indicating the UTC end date of the data's time range being retrieved  (ISO date-time format).",
      "readOnly": true
    },
    "Endpoint_Test_Results_API_EndpointAgentId": {
      "type": "string",
      "format": "uuid",
      "description": "Unique ID of endpoint agent, from `/endpoint/agents` endpoint.",
      "readOnly": true
    },
    "Endpoint_Test_Results_API_EndpointPageId": {
      "type": "string",
      "description": "Web page ID. The page ID is unique only within an endpoint real user test.",
      "readOnly": true
    },
    "Endpoint_Test_Results_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"
        }
      }
    },
    "Endpoint_Test_Results_API_PaginationNextLink": {
      "type": "object",
      "description": "A links object containing a related link for forward pagination.",
      "properties": {
        "next": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_Link"
        }
      }
    },
    "Endpoint_Test_Results_API_RealUserEndpointTest": {
      "allOf": [
        {
          "$ref": "#/$defs/Endpoint_Test_Results_API_RealUserEndpointTestBase"
        },
        {
          "type": "object",
          "properties": {
            "pageId": {
              "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointPageId"
            }
          }
        }
      ]
    },
    "Endpoint_Test_Results_API_RealUserEndpointTestBase": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "agentId": {
              "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointAgentId"
            },
            "committed": {
              "type": "string",
              "format": "date-time",
              "description": "UTC date when endpoint real user test was committed to the controller (ISO date-time format).",
              "readOnly": true
            },
            "date": {
              "type": "string",
              "format": "date-time",
              "description": "UTC date when endpoint real user test took place (ISO date-time format).",
              "readOnly": true
            },
            "experienceScore": {
              "type": "number",
              "format": "double",
              "description": "Score rating a user’s experience when loading a particular page, from 0 (the worst) to 1 (the best). [More details](https://docs.thousandeyes.com/product-documentation/end-user-monitoring/viewing-data/endpoint-agent-views-reference#user-experience-score).",
              "minimum": 0,
              "maximum": 1,
              "readOnly": true
            },
            "numberOfPages": {
              "type": "integer",
              "description": "Number of web pages visited on target website.",
              "readOnly": true
            },
            "organizationName": {
              "type": "string",
              "description": "Name of the AS organization `sourceAddress` belongs to.",
              "readOnly": true
            },
            "port": {
              "type": "integer",
              "description": "Port used to visit target website.",
              "readOnly": true
            },
            "protocol": {
              "type": "string",
              "description": "Protocol used to visit target website.",
              "readOnly": true
            },
            "roundId": {
              "$ref": "#/$defs/Endpoint_Test_Results_API_RoundId"
            },
            "sourceAddress": {
              "type": "string",
              "description": "Public IP address of the endpoint agent during the session.",
              "readOnly": true
            },
            "id": {
              "type": "string",
              "description": "Endpoint real user test ID. Each endpoint real user test occurrence has a unique ID.",
              "readOnly": true
            },
            "visitedSite": {
              "type": "string",
              "description": "Domain used to visit target website.",
              "readOnly": true
            }
          }
        }
      ]
    },
    "Endpoint_Test_Results_API_RoundId": {
      "type": "integer",
      "description": "Epoch time (seconds) indicating the start time of the round.",
      "readOnly": true
    },
    "Endpoint_Test_Results_API_StartDate": {
      "type": "string",
      "format": "date-time",
      "description": "(Optional) When passing `window` or `startDate` parameter,  the client will also receive the `startDate` field indicating the UTC start date of the data's time range being retrieved  (ISO date-time format).",
      "readOnly": true
    }
  }
}