{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-endpoint-tests-api-endpoint-network-test-update-schema.json",
  "title": "Endpoint_Tests_API_EndpointNetworkTestUpdate",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-agent-to-server-endpoint-scheduled-tests-api-openapi.yml#/components/schemas/Endpoint_Tests_API_EndpointNetworkTestUpdate",
  "allOf": [
    {
      "$ref": "#/$defs/Endpoint_Tests_API_TestUpdate"
    },
    {
      "type": "object",
      "properties": {
        "port": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestPort"
        },
        "server": {
          "type": "string",
          "description": "Target domain name or IP address."
        }
      }
    }
  ],
  "$defs": {
    "Endpoint_Tests_API_EndpointTestProtocol": {
      "type": "string",
      "enum": [
        "icmp",
        "icmp-with-tcp-connect",
        "tcp",
        "prefer-tcp",
        "ast-autodetect",
        "autodetect"
      ],
      "description": "Protocol requested for the test.",
      "default": "icmp"
    },
    "Endpoint_Tests_API_TestInterval": {
      "type": "integer",
      "enum": [
        60,
        120,
        300,
        600,
        900,
        1800,
        3600
      ],
      "description": "Interval between test runs in seconds.",
      "default": 60
    },
    "Endpoint_Tests_API_TestIsEnabled": {
      "type": "boolean",
      "description": "Indicates if test is enabled.",
      "default": true
    },
    "Endpoint_Tests_API_TestName": {
      "type": "string",
      "description": "Name of the test."
    },
    "Endpoint_Tests_API_TestPort": {
      "type": "integer",
      "minimum": 1,
      "maximum": 65535,
      "description": "Target port.",
      "default": 49153
    },
    "Endpoint_Tests_API_TestProbeMode": {
      "type": "string",
      "enum": [
        "auto",
        "sack",
        "syn"
      ],
      "description": "Probe mode used by network test, only valid when the protocol is set to TCP.",
      "default": "auto"
    },
    "Endpoint_Tests_API_TestUpdate": {
      "type": "object",
      "properties": {
        "interval": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestInterval"
        },
        "testName": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestName"
        },
        "protocol": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointTestProtocol"
        },
        "isEnabled": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestIsEnabled"
        },
        "tcpProbeMode": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestProbeMode"
        }
      }
    }
  }
}