{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-endpoint-test-results-api-local-network-topology-results-schema.json",
  "title": "Endpoint_Test_Results_API_LocalNetworkTopologyResults",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-local-network-endpoint-test-results-api-openapi.yml#/components/schemas/Endpoint_Test_Results_API_LocalNetworkTopologyResults",
  "type": "object",
  "properties": {
    "results": {
      "x-paginated-items": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/Endpoint_Test_Results_API_LocalNetworkTopologyResultBase"
      }
    },
    "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_ApplicationMetrics": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the application."
        },
        "totalCpu": {
          "type": "number",
          "format": "double",
          "description": "The total CPU usage by all application processes."
        },
        "totalMemoryPercentage": {
          "type": "number",
          "format": "double",
          "description": "The total percentage of memory used by all application processes."
        },
        "totalMemoryBytes": {
          "type": "integer",
          "format": "int64",
          "description": "The total memory in bytes used by all application processes."
        },
        "processes": {
          "type": "array",
          "description": "A list of application processes.",
          "items": {
            "$ref": "#/$defs/Endpoint_Test_Results_API_ProcessMetrics"
          }
        }
      }
    },
    "Endpoint_Test_Results_API_ApplicationScoreQuality": {
      "type": "string",
      "enum": [
        "great",
        "good",
        "poor"
      ]
    },
    "Endpoint_Test_Results_API_BatteryLevel": {
      "description": "Battery level indicator.",
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "Endpoint_Test_Results_API_BatteryMetrics": {
      "description": "Battery metrics for the endpoint agent.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "batteryHealthNormalizedPercent": {
          "type": "number",
          "format": "double",
          "description": "Battery health as a normalized percentage (0-1).",
          "minimum": 0,
          "maximum": 1
        },
        "batteryLevel": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_BatteryLevel"
        },
        "batteryLevelNormalizedPercent": {
          "type": "number",
          "format": "double",
          "description": "Battery level as a normalized percentage (0-1).",
          "minimum": 0,
          "maximum": 1
        }
      },
      "required": [
        "batteryLevel",
        "batteryLevelNormalizedPercent"
      ]
    },
    "Endpoint_Test_Results_API_CellularNetworkGen": {
      "description": "Cellular network generation.",
      "type": "string"
    },
    "Endpoint_Test_Results_API_CellularProfile": {
      "description": "Cellular network profile information for a mobile endpoint agent.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "carrierName": {
          "type": "string",
          "description": "Carrier name"
        },
        "networkGen": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_CellularNetworkGen"
        },
        "networkSubtype": {
          "type": "string",
          "description": "A real network subtype. It may be different from an advertised network type."
        },
        "advertisedNetworkGen": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_CellularNetworkGen"
        },
        "advertisedNetworkSubtype": {
          "type": "string",
          "description": "Advertised Network subtype"
        },
        "rssi": {
          "type": "number",
          "format": "double",
          "description": "Received Signal Strength Indicator in dBm. Values are always negative."
        },
        "rsrp": {
          "type": "number",
          "format": "double",
          "description": "Reference Signal Received Power in dBm. Values are always negative."
        },
        "rscp": {
          "type": "number",
          "format": "double",
          "description": "Received Signal Code Power in dBm. Values are always negative or zero."
        },
        "rsrq": {
          "type": "number",
          "format": "double",
          "description": "Reference Signal Received Quality in dBm. Values are always negative."
        },
        "sinr": {
          "type": "number",
          "format": "double",
          "description": "Signal to Interference and Noise Ratio in dBm. It can be negative or positive."
        }
      }
    },
    "Endpoint_Test_Results_API_CpuUtilization": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number",
          "format": "double",
          "description": "The minimum sampled usage value recorded during the monitored period.",
          "minimum": 0,
          "maximum": 1,
          "readOnly": true
        },
        "max": {
          "type": "number",
          "format": "double",
          "description": "The maximum sampled usage value recorded during the monitored period.",
          "minimum": 0,
          "maximum": 1,
          "readOnly": true
        },
        "mean": {
          "type": "number",
          "format": "double",
          "description": "The mean (average) sampled usage value recorded during the monitored period.",
          "minimum": 0,
          "maximum": 1,
          "readOnly": true
        },
        "median": {
          "type": "number",
          "format": "double",
          "description": "The median sampled usage value recorded during the monitored period.",
          "minimum": 0,
          "maximum": 1,
          "readOnly": true
        },
        "stdDev": {
          "type": "number",
          "format": "double",
          "description": "The standard deviation of sampled usage values recorded during the monitored period.",
          "minimum": 0,
          "maximum": 1,
          "readOnly": true
        },
        "count": {
          "type": "integer",
          "description": "The total number of samples collected during the monitored period.",
          "readOnly": true
        }
      }
    },
    "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_EndpointProbeAgentScore": {
      "type": "object",
      "properties": {
        "score": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointScoreNumeric"
        },
        "quality": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_ApplicationScoreQuality"
        }
      }
    },
    "Endpoint_Test_Results_API_EndpointProbeConnectionScore": {
      "type": "object",
      "properties": {
        "score": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointScoreNumeric"
        },
        "quality": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_ApplicationScoreQuality"
        }
      }
    },
    "Endpoint_Test_Results_API_EndpointProbeGatewayScore": {
      "type": "object",
      "properties": {
        "score": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointScoreNumeric"
        },
        "quality": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_ApplicationScoreQuality"
        }
      }
    },
    "Endpoint_Test_Results_API_EndpointProbeProxyScore": {
      "type": "object",
      "properties": {
        "score": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointScoreNumeric"
        },
        "quality": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_ApplicationScoreQuality"
        }
      }
    },
    "Endpoint_Test_Results_API_EndpointProbeVpnScore": {
      "type": "object",
      "properties": {
        "score": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointScoreNumeric"
        },
        "quality": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_ApplicationScoreQuality"
        }
      }
    },
    "Endpoint_Test_Results_API_EndpointScoreNumeric": {
      "type": "number",
      "format": "double",
      "description": "A fine-grained score between 0 and 100."
    },
    "Endpoint_Test_Results_API_ErrorFlags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "Endpoint_Test_Results_API_IcmpBlocked": {
      "type": "boolean",
      "description": "Set to `true` if network target is blocking ICMP echo (ping) queries.",
      "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_LocalNetworkTopologyDnsServerTest": {
      "type": "object",
      "description": "DNS server test details. This object is only available when the topology `type` is `dns`.",
      "properties": {
        "resolutionTime": {
          "type": "integer",
          "description": "How long it took to resolve the DNS query in milliseconds.",
          "readOnly": true
        }
      }
    },
    "Endpoint_Test_Results_API_LocalNetworkTopologyResultBase": {
      "type": "object",
      "properties": {
        "agentId": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointAgentId"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "description": "UTC date when endpoint network topology took place (ISO date-time format).",
          "readOnly": true
        },
        "networkTopologyId": {
          "type": "string",
          "description": "Network topology ID. Each network topology occurrence has a unique ID.",
          "readOnly": true
        },
        "dnsServerTest": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_LocalNetworkTopologyDnsServerTest"
        },
        "roundId": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_RoundId"
        },
        "target": {
          "type": "string",
          "description": "IP of the target the network topology was performed against. This is typically a default gateway, proxy or VPN endpoint.",
          "readOnly": true
        },
        "targetPort": {
          "type": "integer",
          "description": "Port of the target the network topology was performed against.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_NetworkTopologyType"
        },
        "icmpPing": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_NetworkPing"
        },
        "isIcmpBlocked": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_IcmpBlocked"
        },
        "tcpConnect": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_TcpConnect"
        },
        "systemMetrics": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_SystemMetrics"
        },
        "systemMetricDetails": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_SystemMetricDetails"
        },
        "vpnScore": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointProbeVpnScore"
        },
        "gatewayScore": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointProbeGatewayScore"
        },
        "proxyScore": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointProbeProxyScore"
        },
        "connectionScore": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointProbeConnectionScore"
        },
        "agentScore": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_EndpointProbeAgentScore"
        },
        "batteryMetrics": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_BatteryMetrics"
        },
        "cellularProfile": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_CellularProfile"
        },
        "platform": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_Platform"
        }
      }
    },
    "Endpoint_Test_Results_API_NetworkPing": {
      "type": "object",
      "properties": {
        "avgRtt": {
          "type": "integer",
          "description": "Ping average response time.",
          "readOnly": true
        },
        "maxRtt": {
          "type": "integer",
          "description": "Ping maximum response time.",
          "readOnly": true
        },
        "loss": {
          "type": "number",
          "format": "double",
          "description": "Network loss.",
          "readOnly": true
        },
        "meanDevRtt": {
          "type": "integer",
          "description": "Ping mean standard deviation response time.",
          "readOnly": true
        },
        "minRtt": {
          "type": "integer",
          "description": "Ping minimum response time.",
          "readOnly": true
        },
        "pktsReceived": {
          "type": "integer",
          "description": "Ping packets received.",
          "readOnly": true
        },
        "pktsSent": {
          "type": "integer",
          "description": "Ping packets sent.",
          "readOnly": true
        },
        "error": {
          "type": "string",
          "description": "Only present when there is an error.",
          "readOnly": true
        },
        "infoFlags": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_ErrorFlags"
        }
      }
    },
    "Endpoint_Test_Results_API_NetworkTopologyType": {
      "type": "string",
      "enum": [
        "vpn",
        "proxy",
        "gateway",
        "dns",
        "unknown"
      ]
    },
    "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_PhysicalMemoryUsedBytes": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number",
          "format": "double",
          "description": "The minimum sampled memory usage value recorded during the monitored period.",
          "readOnly": true
        },
        "max": {
          "type": "number",
          "format": "double",
          "description": "The maximum sampled memory usage value recorded during the monitored period.",
          "readOnly": true
        },
        "mean": {
          "type": "number",
          "format": "double",
          "description": "The mean (average) value of memory usage sampled over the monitored period.",
          "readOnly": true
        },
        "median": {
          "type": "number",
          "format": "double",
          "description": "The median value of memory usage sampled over the monitored period.",
          "readOnly": true
        },
        "stdDev": {
          "type": "number",
          "format": "double",
          "description": "The standard deviation of memory usage sampled during the monitored period.",
          "readOnly": true
        },
        "count": {
          "type": "integer",
          "description": "The total number of samples collected during the monitored period.",
          "readOnly": true
        }
      }
    },
    "Endpoint_Test_Results_API_Platform": {
      "description": "OS platform types. Platform \"linux\" was recently renamed to \"roomos\".",
      "type": "string",
      "enum": [
        "windows",
        "roomos",
        "phoneos",
        "elux",
        "cisco-wireless",
        "cisco-wireless-cloud",
        "linux",
        "mac",
        "android",
        "unknown"
      ]
    },
    "Endpoint_Test_Results_API_ProcessMetrics": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the process."
        },
        "pid": {
          "type": "integer",
          "description": "The process ID."
        },
        "cpu": {
          "type": "number",
          "format": "double",
          "description": "The CPU usage by the process as a percentage (e.g., 0.5 for 50% CPU usage)."
        },
        "memoryPercentage": {
          "type": "number",
          "format": "double",
          "description": "The memory usage by the process as a percentage (e.g., 0.22 for 22%)."
        },
        "memoryBytes": {
          "type": "integer",
          "format": "int64",
          "description": "The memory usage by the process in bytes."
        }
      }
    },
    "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
    },
    "Endpoint_Test_Results_API_SystemMetricDetails": {
      "type": "object",
      "description": "Details of system metrics that contain top applications by CPU/memory usage.\nNot populated by default.\n",
      "properties": {
        "topCpuApplications": {
          "type": "array",
          "description": "A list of applications that consume more than 2% of the CPU.",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Endpoint_Test_Results_API_ApplicationMetrics"
          }
        },
        "topMemoryApplications": {
          "type": "array",
          "description": "A list of applications that consume more than 2% of the RAM.",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Endpoint_Test_Results_API_ApplicationMetrics"
          }
        }
      }
    },
    "Endpoint_Test_Results_API_SystemMetrics": {
      "type": "object",
      "properties": {
        "startTimeMs": {
          "type": "integer",
          "format": "int64",
          "description": "The start time of metrics collection, expressed in milliseconds since the Epoch.",
          "readOnly": true
        },
        "endTimeMs": {
          "type": "integer",
          "format": "int64",
          "description": "The end time of metrics collection, expressed in milliseconds since the Epoch.",
          "readOnly": true
        },
        "cpuUtilization": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_CpuUtilization"
        },
        "physicalMemoryUsedBytes": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_PhysicalMemoryUsedBytes"
        },
        "physicalMemoryTotalBytes": {
          "type": "integer",
          "format": "int64",
          "description": "Total physical memory of the system.",
          "readOnly": true
        }
      }
    },
    "Endpoint_Test_Results_API_TcpConnect": {
      "type": "object",
      "properties": {
        "rtt": {
          "type": "number",
          "format": "double",
          "description": "Represents the number of milliseconds required to establish TCP connectivity with the target",
          "readOnly": true
        },
        "errorCode": {
          "type": "string",
          "description": "Only present when there is an error",
          "readOnly": true
        },
        "error": {
          "type": "string",
          "description": "Only present when there is an error",
          "readOnly": true
        },
        "infoFlags": {
          "$ref": "#/$defs/Endpoint_Test_Results_API_ErrorFlags"
        }
      }
    }
  }
}