{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-instant-tests-api-dns-trace-instant-test-response-schema.json",
  "title": "Instant_Tests_API_DnsTraceInstantTestResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-dns-trace-instant-tests-api-openapi.yml#/components/schemas/Instant_Tests_API_DnsTraceInstantTestResponse",
  "allOf": [
    {
      "$ref": "#/$defs/Instant_Tests_API_DnsTraceInstantTest"
    },
    {
      "type": "object",
      "properties": {
        "agents": {
          "$ref": "#/$defs/Instant_Tests_API_TestAgentsResponse"
        }
      }
    }
  ],
  "$defs": {
    "Instant_Tests_API_AgentBase": {
      "type": "object",
      "properties": {
        "ipAddresses": {
          "type": "array",
          "description": "Array of private IP addresses.",
          "readOnly": true,
          "items": {
            "type": "string"
          }
        },
        "publicIpAddresses": {
          "type": "array",
          "description": "Array of public IP addresses.",
          "readOnly": true,
          "items": {
            "type": "string"
          }
        },
        "network": {
          "type": "string",
          "description": "Network (including ASN) of agent’s public IP.",
          "readOnly": true
        }
      }
    },
    "Instant_Tests_API_AgentResponse": {
      "allOf": [
        {
          "required": [
            "agentType"
          ],
          "properties": {
            "agentType": {
              "$ref": "#/$defs/Instant_Tests_API_CloudEnterpriseAgentType"
            }
          }
        },
        {
          "$ref": "#/$defs/Instant_Tests_API_SimpleAgent"
        }
      ]
    },
    "Instant_Tests_API_CloudEnterpriseAgentType": {
      "type": "string",
      "description": "Type of the agent.",
      "enum": [
        "cloud",
        "enterprise-cluster",
        "enterprise"
      ],
      "readOnly": true
    },
    "Instant_Tests_API_Coordinates": {
      "type": "object",
      "description": "Geographic coordinates for agent location.",
      "properties": {
        "latitude": {
          "type": "number",
          "format": "double",
          "description": "The latitude of the agent location in decimal degrees",
          "readOnly": true
        },
        "longitude": {
          "type": "number",
          "format": "double",
          "description": "The longitude of the agent location in decimal degrees",
          "readOnly": true
        }
      }
    },
    "Instant_Tests_API_DnsQueryClass": {
      "type": "string",
      "enum": [
        "in",
        "ch"
      ],
      "description": "Domain class used by this test. 'in' stands for Internet, while 'ch' stands for Chaos."
    },
    "Instant_Tests_API_DnsTraceInstantTest": {
      "allOf": [
        {
          "$ref": "#/$defs/Instant_Tests_API_InstantTest"
        },
        {
          "$ref": "#/$defs/Instant_Tests_API_DnsTraceProperties"
        }
      ]
    },
    "Instant_Tests_API_DnsTraceProperties": {
      "type": "object",
      "required": [
        "domain"
      ],
      "properties": {
        "dnsTransportProtocol": {
          "$ref": "#/$defs/Instant_Tests_API_TestDnsTransportProtocol"
        },
        "domain": {
          "$ref": "#/$defs/Instant_Tests_API_TestDomain"
        },
        "dnsQueryClass": {
          "$ref": "#/$defs/Instant_Tests_API_DnsQueryClass"
        },
        "randomizedStartTime": {
          "$ref": "#/$defs/Instant_Tests_API_TestRandomizedStartTime"
        },
        "type": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "Instant_Tests_API_InstantTest": {
      "allOf": [
        {
          "$ref": "#/$defs/Instant_Tests_API_UnexpandedInstantTest"
        },
        {
          "type": "object",
          "properties": {
            "labels": {
              "$ref": "#/$defs/Instant_Tests_API_TestLabels"
            },
            "tags": {
              "$ref": "#/$defs/Instant_Tests_API_TestTags"
            },
            "sharedWithAccounts": {
              "$ref": "#/$defs/Instant_Tests_API_TestSharedAccounts"
            }
          }
        }
      ]
    },
    "Instant_Tests_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"
        }
      }
    },
    "Instant_Tests_API_NetworkProviderInfo": {
      "type": "object",
      "description": "Information about the network provider that owns the agent's public IP prefix.",
      "readOnly": true,
      "properties": {
        "asn": {
          "type": "integer",
          "format": "int64",
          "description": "Autonomous System Number (ASN) announcing the agent's public IP prefix.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of the network provider organization.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/Instant_Tests_API_NetworkProviderType"
        }
      }
    },
    "Instant_Tests_API_NetworkProviderType": {
      "type": "string",
      "description": "Classification of the agent's network provider.",
      "enum": [
        "unknown",
        "isp",
        "cdn",
        "stub",
        "cloud-provider",
        "carrier"
      ],
      "readOnly": true
    },
    "Instant_Tests_API_SharedWithAccount": {
      "type": "object",
      "properties": {
        "aid": {
          "type": "string",
          "description": "Account group ID."
        },
        "name": {
          "type": "string",
          "description": "Account group name."
        }
      }
    },
    "Instant_Tests_API_SimpleAgent": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/Instant_Tests_API_AgentBase"
        },
        {
          "type": "object",
          "properties": {
            "agentId": {
              "type": "string",
              "description": "Unique ID of the agent.",
              "readOnly": true
            },
            "agentName": {
              "type": "string",
              "description": "Name of the agent."
            },
            "location": {
              "type": "string",
              "description": "Location of the agent.",
              "readOnly": true
            },
            "countryId": {
              "type": "string",
              "description": "2-digit ISO country code",
              "readOnly": true
            },
            "coordinates": {
              "$ref": "#/$defs/Instant_Tests_API_Coordinates"
            },
            "networkProviderInfo": {
              "allOf": [
                {
                  "$ref": "#/$defs/Instant_Tests_API_NetworkProviderInfo"
                }
              ],
              "readOnly": true
            },
            "enabled": {
              "type": "boolean",
              "description": "Flag indicating if the agent is enabled."
            },
            "verifySslCertificates": {
              "type": "boolean",
              "description": "Flag indicating if has normal SSL operations or  if instead it's set to ignore SSL errors on browserbot-based tests.",
              "readOnly": true
            },
            "prefix": {
              "type": "string",
              "description": "Prefix containing agents public IP address.",
              "readOnly": true
            }
          }
        }
      ]
    },
    "Instant_Tests_API_TestAgentsResponse": {
      "type": "array",
      "description": "Contains list of agents.",
      "items": {
        "$ref": "#/$defs/Instant_Tests_API_AgentResponse"
      }
    },
    "Instant_Tests_API_TestCreatedBy": {
      "type": "string",
      "description": "User that created the test.",
      "readOnly": true
    },
    "Instant_Tests_API_TestCreatedDate": {
      "type": "string",
      "format": "date-time",
      "description": "UTC created date (ISO date-time format).",
      "readOnly": true
    },
    "Instant_Tests_API_TestDnsTransportProtocol": {
      "type": "string",
      "enum": [
        "udp",
        "tcp"
      ],
      "description": "Transport protocol used for DNS requests.",
      "default": "udp"
    },
    "Instant_Tests_API_TestDomain": {
      "type": "string",
      "description": "The target record for the test, with the record type suffixed. If no record type is specified, the test defaults to an ANY record."
    },
    "Instant_Tests_API_TestLabel": {
      "type": "object",
      "properties": {
        "labelId": {
          "type": "string",
          "description": "Label ID."
        },
        "name": {
          "type": "string",
          "description": "Name of the label."
        },
        "isBuiltin": {
          "type": "boolean",
          "description": "Value indicating if the label in question is BuiltIn (Account Admin, Organization Admin, Regular User)."
        }
      }
    },
    "Instant_Tests_API_TestLabels": {
      "type": "array",
      "description": "Labels to which the test is assigned. This field is not returned for Instant Tests.",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/Instant_Tests_API_TestLabel"
      }
    },
    "Instant_Tests_API_TestLinks": {
      "type": "object",
      "description": "A list of links that can be accessed to get more information",
      "properties": {
        "self": {
          "$ref": "#/$defs/Instant_Tests_API_TestSelfLink"
        },
        "testResults": {
          "$ref": "#/$defs/Instant_Tests_API_TestResults"
        }
      },
      "readOnly": true
    },
    "Instant_Tests_API_TestRandomizedStartTime": {
      "type": "boolean",
      "description": "Indicates whether agents should randomize the start time in each test round.",
      "default": false
    },
    "Instant_Tests_API_TestResults": {
      "type": "array",
      "description": "Reference to the test results.",
      "items": {
        "$ref": "#/$defs/Instant_Tests_API_Link"
      }
    },
    "Instant_Tests_API_TestSelfLink": {
      "allOf": [
        {
          "$ref": "#/$defs/Instant_Tests_API_Link"
        },
        {
          "description": "Reference to the test."
        }
      ]
    },
    "Instant_Tests_API_TestSharedAccounts": {
      "type": "array",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/Instant_Tests_API_SharedWithAccount"
      }
    },
    "Instant_Tests_API_TestTag": {
      "type": "object",
      "readOnly": true,
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique tag ID.",
          "format": "uuid"
        },
        "key": {
          "type": "string",
          "description": "Tag key. For example, \"Location\" or \"Department\"."
        },
        "value": {
          "type": "string",
          "description": "Tag value. For example, \"San Francisco\" or \"Engineering\"."
        }
      }
    },
    "Instant_Tests_API_TestTags": {
      "type": "array",
      "description": "Tags assigned to the test. Returned only when `expand=tag` is specified. This field is not returned for Instant Tests. For more information, see `/tags`.",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/Instant_Tests_API_TestTag"
      }
    },
    "Instant_Tests_API_TestType": {
      "type": "string",
      "enum": [
        "api",
        "agent-to-agent",
        "agent-to-server",
        "bgp",
        "http-server",
        "page-load",
        "web-transactions",
        "ftp-server",
        "dns-trace",
        "dns-server",
        "dnssec",
        "sip-server",
        "voice"
      ],
      "description": "This is a read only value, as test type is implicit in the test creation url.",
      "readOnly": true
    },
    "Instant_Tests_API_UnexpandedInstantTest": {
      "type": "object",
      "properties": {
        "createdBy": {
          "$ref": "#/$defs/Instant_Tests_API_TestCreatedBy"
        },
        "createdDate": {
          "$ref": "#/$defs/Instant_Tests_API_TestCreatedDate"
        },
        "description": {
          "type": "string",
          "description": "A description of the test."
        },
        "liveShare": {
          "type": "boolean",
          "description": "Indicates if the test is shared with the account group.",
          "readOnly": true
        },
        "modifiedBy": {
          "type": "string",
          "description": "User that modified the test.",
          "readOnly": true
        },
        "modifiedDate": {
          "type": "string",
          "format": "date-time",
          "description": "UTC last modification date (ISO date-time format).",
          "readOnly": true
        },
        "savedEvent": {
          "type": "boolean",
          "description": "Indicates if the test is a saved event.\n\n**Note**: **Saved Events** are now called **Private Snapshots** in the user interface. This change does not affect API.\n",
          "readOnly": true
        },
        "testId": {
          "type": "string",
          "description": "Each test is assigned an unique ID; this is used to access test information and results from other endpoints.",
          "readOnly": true
        },
        "testName": {
          "type": "string",
          "description": "The name of the test. Test name must be unique."
        },
        "type": {
          "$ref": "#/$defs/Instant_Tests_API_TestType"
        },
        "_links": {
          "$ref": "#/$defs/Instant_Tests_API_TestLinks"
        }
      }
    }
  }
}