{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-templates-api-templates-response-schema.json",
  "title": "Templates_API_TemplatesResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-templates-api-openapi.yml#/components/schemas/Templates_API_TemplatesResponse",
  "allOf": [
    {
      "$ref": "#/$defs/Templates_API_Templates"
    },
    {
      "type": "object",
      "properties": {
        "_links": {
          "$ref": "#/$defs/Templates_API_SelfLinks"
        }
      }
    }
  ],
  "$defs": {
    "Templates_API_AccessType": {
      "type": "string",
      "description": "The access level of the tag. The access level determines the label's visibility in the UI and the permissions required to modify it. Accepted values are:\n\n\n* `all`: The tag is visible and editable by any user in the account group with the standard **View tags** or **Edit tags** permission. Default for all user-created tags.\n\n* `partner`: The tag is owned by a specific integration partner. Only that partner can read or modify it. It's hidden from all regular account users and excluded from their GET responses.\n\n* `system`: Reserved for ThousandEyes internal use only. This value may appear in GET responses on internally managed tags but cannot be set by users or integration partners. \n",
      "enum": [
        "all",
        "partner",
        "system"
      ]
    },
    "Templates_API_AgentAssignmentTemplate": {
      "type": "object",
      "properties": {
        "agentId": {
          "$ref": "#/$defs/Templates_API_NumberTemplate"
        }
      }
    },
    "Templates_API_AgentToAgentTestDirectionTemplate": {
      "description": "Direction of the test (affects how results are shown). Defaults to `TO_TARGET`.",
      "type": "string",
      "default": "TO_TARGET",
      "enum": [
        "TO_TARGET",
        "FROM_TARGET",
        "BIDIRECTIONAL"
      ]
    },
    "Templates_API_AgentToAgentTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_NetworkTestBaseTemplate"
        },
        {
          "type": "object",
          "required": [
            "type",
            "agents",
            "interval",
            "targetAgentId"
          ],
          "properties": {
            "type": {
              "$ref": "#/$defs/Templates_API_AgentToAgentTestTypeTemplate"
            },
            "direction": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Templates_API_AgentToAgentTestDirectionTemplate"
                },
                {
                  "$ref": "#/$defs/Templates_API_HandlebarsExpression"
                }
              ]
            },
            "dscpId": {
              "$ref": "#/$defs/Templates_API_NumberTemplate"
            },
            "targetAgentId": {
              "$ref": "#/$defs/Templates_API_NumberTemplate",
              "description": "ID of the target agent for the test."
            },
            "throughputMeasurements": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Templates_API_BooleanNumber"
                },
                {
                  "$ref": "#/$defs/Templates_API_HandlebarsExpression"
                }
              ]
            },
            "throughputDuration": {
              "$ref": "#/$defs/Templates_API_NumberTemplate",
              "minimum": 5000,
              "maximum": 30000,
              "default": 10000
            },
            "throughputRate": {
              "$ref": "#/$defs/Templates_API_NumberTemplate",
              "description": "Throughput rate; For UDP only.",
              "minimum": 1,
              "maximum": 1000
            }
          }
        }
      ]
    },
    "Templates_API_AgentToAgentTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "agent-to-agent"
    },
    "Templates_API_AgentToServerTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_NetworkTestBaseTemplate"
        },
        {
          "type": "object",
          "required": [
            "type",
            "agents",
            "interval",
            "server"
          ],
          "properties": {
            "type": {
              "$ref": "#/$defs/Templates_API_AgentToServerTestTypeTemplate"
            },
            "server": {
              "$ref": "#/$defs/Templates_API_TargetServerTemplate"
            },
            "continuousMode": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Templates_API_BooleanNumber"
                },
                {
                  "$ref": "#/$defs/Templates_API_HandlebarsExpression"
                }
              ]
            },
            "fixedPacketRate": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Templates_API_BooleanNumber"
                },
                {
                  "$ref": "#/$defs/Templates_API_HandlebarsExpression"
                }
              ]
            }
          }
        }
      ]
    },
    "Templates_API_AgentToServerTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "agent-to-server"
    },
    "Templates_API_AlertRuleConfigurationTemplate": {
      "type": "object",
      "description": "Alert Rule configuration. See [ThousandEyes v6 API spec](https://developer.cisco.com/docs/thousandeyes/v6/metadata/#alert-rule-metadata) for schema details.",
      "required": [
        "ruleName",
        "alertType",
        "expression",
        "roundsViolatingRequired",
        "roundsViolatingOutOf"
      ],
      "properties": {
        "ruleName": {
          "$ref": "#/$defs/Templates_API_StringTemplate",
          "description": "The name of the alert rule."
        },
        "alertType": {
          "description": "The type of the alert rule.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_AlertRuleTypeTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "expression": {
          "description": "The alert rule expression. Must be valid JSON. See [V6 API](https://developer.cisco.com/docs/thousandeyes/v6/metadata/#expressions) documentation for examples.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "roundsViolatingRequired": {
          "description": "Specifies the numerator (X value) of the \"X of Y times\" condition in an alert rule.",
          "title": "RoundsViolatingRequired",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "roundsViolatingOutOf": {
          "description": "Specifies the divisor (Y value) of the \"X of Y times\" condition in an alert rule.",
          "title": "RoundsViolatingOutOf",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "severity": {
          "description": "The severity that will be assigned when an alert is generated by this alert rule.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_AlertRuleSeverityTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "testIds": {
          "description": "The tests that the alert rule will be assigned to identified by the test ID.",
          "title": "TestIds",
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "minimumSources": {
          "description": "The minimum number of agents that must meet the specified criteria in order to trigger an alert.",
          "type": "number"
        }
      }
    },
    "Templates_API_AlertRuleSeverityTemplate": {
      "type": "string",
      "enum": [
        "INFO",
        "MAJOR",
        "MINOR",
        "CRITICAL"
      ]
    },
    "Templates_API_AlertRuleTypeTemplate": {
      "type": "string",
      "enum": [
        "Page Load",
        "HTTP Server",
        "End-to-End (Server)",
        "End-to-End (Agent)",
        "Voice",
        "DNS Server",
        "DNS Trace",
        "DNSSEC",
        "Web Transactions",
        "BGP",
        "Path Trace",
        "FTP",
        "SIP Server"
      ]
    },
    "Templates_API_AlertRulesSchemaVersion": {
      "type": "string",
      "description": "Schema version for alert rule resources.",
      "default": "v6",
      "enum": [
        "v6",
        "v7"
      ]
    },
    "Templates_API_ApiDataSourceFilterTemplate": {
      "type": "object",
      "description": "List of different filter properties for a single datasource.",
      "properties": {
        "filterId": {
          "description": "Data source property to filter by. Example `TEST_LABEL`.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "values": {
          "description": "Values to filter by based on the specified `filterId`.",
          "anyOf": [
            {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "metricIds": {
          "description": "Dashboard metric associated with the filter property.",
          "anyOf": [
            {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      },
      "required": [
        "filterId",
        "values",
        "metricIds"
      ]
    },
    "Templates_API_ApiDurationTemplate": {
      "description": "Specifies a fixed timespan for data aggregation.",
      "type": "object",
      "properties": {
        "value": {
          "type": "integer",
          "format": "int32",
          "description": "Timespan value."
        },
        "unit": {
          "$ref": "#/$defs/Templates_API_LegacyDurationUnit"
        }
      }
    },
    "Templates_API_ApiWidgetMeasure": {
      "type": "object",
      "description": "Determines how to aggregate the the metric.",
      "properties": {
        "type": {
          "$ref": "#/$defs/Templates_API_WidgetMeasureType"
        },
        "percentileValue": {
          "type": "number",
          "description": "The percentile value to use when `type == NTH_PERCENTILE`.",
          "format": "float"
        }
      }
    },
    "Templates_API_AuthTypeTestTemplate": {
      "description": "Authentication type to use when establishing connection.",
      "type": "string",
      "enum": [
        "NONE",
        "BASIC",
        "NTLM",
        "KERBEROS"
      ],
      "default": "NONE"
    },
    "Templates_API_BgpTestTemplate": {
      "type": "object",
      "required": [
        "type",
        "testName",
        "prefix"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/Templates_API_BgpTestTypeTemplate"
        },
        "testName": {
          "description": "The name of the test, must be unique.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "groups": {
          "description": "The Labels to assign to the test.\n\n**Deprecation notice:** Labels (`groups`) are based on the V6 API, which is deprecated.\nUse `tagIds` instead for V7 API support. Do not use `groups` and `tagIds` together on the same test.\n",
          "deprecated": true,
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Templates_API_LabelAssignmentTemplate"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "tagIds": {
          "description": "The Tags to assign to the test, identified by tag ID. Typically set using\nHandlebars references to tags defined in the template. Tags are the recommended\nreplacement for labels (`groups`) and provide full V7 API support.\n",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TagIdListTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "description": {
          "description": "Description of the test.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "prefix": {
          "description": "The BGP prefix to monitor.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_StringTemplate"
            }
          ]
        },
        "includeCoveredPrefixes": {
          "description": "Whether to include covered prefixes. 1 denotes true, 0 denotes false.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_NumberTemplate"
            }
          ]
        },
        "usePublicBgp": {
          "description": "Whether to use public BGP Monitors. 1 denotes true, 0 denotes false.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_NumberTemplate"
            }
          ]
        },
        "bgpMonitors": {
          "description": "BGP Monitors to use.",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "monitorId": {
                "description": "The ID of the BGP Monitor.",
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "$ref": "#/$defs/Templates_API_HandlebarsExpression"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "Templates_API_BgpTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "bgp"
    },
    "Templates_API_BooleanNumber": {
      "type": "integer",
      "enum": [
        0,
        1
      ]
    },
    "Templates_API_BrowserTestBaseTemplate": {
      "type": "object",
      "properties": {
        "url": {
          "description": "The URL that the test will target.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "blockDomains": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "allowMicAndCamera": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "allowGeolocation": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "pageLoadingStrategy": {
          "description": "The page loading strategy the browser should use when loading the target webpage.\n- `normal`: Wait for the entire page to load, meaning that HTML content and all resources have been downloaded and parsed before moving to the next action in the transaction test script. \n- `eager`: Wait for the `DOMContentLoaded` event, meaning that HTML content is downloaded and parsed, and the document readiness state is “interactive” before moving to the next action in the test script. \n- `none`: Wait only for HTML content to download. Once the HTML is downloaded, the test proceeds to the next action in the transaction test script. (Default is `normal`).\n",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_PageLoadStrategyTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "subinterval": {
          "description": "Subinterval for round-robin testing (in seconds). Must be less than or equal to interval and must evenly divide interval. Defaults to null, which disables round-robin.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_CertificationLevel": {
      "type": "string",
      "description": "The certification level of the Template. The accepted values are:\n- `user`: User created template; not verified by ThousandEyes\n- `thousandeyes`: Created by ThousandEyes\n- `partner`: Created by ThousandEyes and approved by Partner/Vendor\n- `certified`: Created and certified by ThousandEyes using included best practice guide (see `documentation` link).\n",
      "enum": [
        "user",
        "thousandeyes",
        "partner",
        "certified"
      ]
    },
    "Templates_API_CustomHeadersTemplate": {
      "description": "Custom headers to use in HTTP request.",
      "type": "object",
      "properties": {
        "all": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "domains": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "root": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "Templates_API_DashboardConfigurationTemplate": {
      "type": "object",
      "description": "Configuration of a dashboard that will be created when template is deployed.",
      "properties": {
        "title": {
          "$ref": "#/$defs/Templates_API_StringTemplate",
          "description": "The title of the dashboard that will be displayed in UI."
        },
        "description": {
          "$ref": "#/$defs/Templates_API_StringTemplate",
          "description": "The description of the dashboard that will be displayed in UI."
        },
        "globalFilterId": {
          "$ref": "#/$defs/Templates_API_StringTemplate",
          "description": "The ID of a global dashboard filter to associate with this dashboard."
        },
        "widgets": {
          "description": "The widgets that will be included in the dashboard.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Templates_API_DashboardWidgetTemplate"
          }
        },
        "refreshRate": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_DashboardRefreshRateTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_DashboardFilterConfigurationTemplate": {
      "type": "object",
      "description": "A dashboard filter object. See [V7 API Documentation](https://developer.cisco.com/docs/thousandeyes/v7/list-dashboard-filters/) for more details on dashboard filters.",
      "properties": {
        "name": {
          "description": "The name of the dashboard filter.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "description": {
          "description": "An optional description of the filter.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "context": {
          "description": "The context of the dashboard filter.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_DashboardFilterListTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_DashboardFilterContextTemplate": {
      "type": "object",
      "description": "List of dashboard filter contexts.",
      "properties": {
        "dataSourceId": {
          "description": "Type of data source for dashboard global filter.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_FilterContextDataSourceTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "filters": {
          "description": "List of filter properties.",
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Templates_API_ApiDataSourceFilterTemplate"
          }
        }
      },
      "required": [
        "dataSourceId",
        "filters"
      ]
    },
    "Templates_API_DashboardFilterListTemplate": {
      "type": "array",
      "description": "List of filters to be applied to a dashboard.",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Templates_API_DashboardFilterContextTemplate"
      }
    },
    "Templates_API_DashboardMetric": {
      "type": "string",
      "description": "Indicates the specific metric in the report, determined by the layer, test type, and metric values.",
      "enum": [
        "ONE_WAY_NET_LOSS_TO_TARGET",
        "ONE_WAY_NET_LATENCY_TO_TARGET",
        "ONE_WAY_NET_JITTER_TO_TARGET",
        "ONE_WAY_NET_THROUGHPUT_TO_TARGET",
        "ONE_WAY_NET_ERROR_TO_TARGET",
        "ONE_WAY_NET_LOSS_FROM_TARGET",
        "ONE_WAY_NET_LATENCY_FROM_TARGET",
        "ONE_WAY_NET_JITTER_FROM_TARGET",
        "ONE_WAY_NET_THROUGHPUT_FROM_TARGET",
        "ONE_WAY_NET_ERROR_FROM_TARGET",
        "ONE_WAY_NET_LOSS_BIDIRECTIONAL",
        "ONE_WAY_NET_LATENCY_BIDIRECTIONAL",
        "ONE_WAY_NET_JITTER_BIDIRECTIONAL",
        "ONE_WAY_NET_THROUGHPUT_BIDIRECTIONAL",
        "ONE_WAY_NET_ERROR_BIDIRECTIONAL",
        "NET_LOSS",
        "NET_LATENCY",
        "NET_JITTER",
        "NET_BANDWIDTH",
        "NET_CAPACITY",
        "PROXY_NET_LOSS",
        "PROXY_NET_LATENCY",
        "PROXY_NET_JITTER",
        "WEB_AVAILABILITY",
        "WEB_THROUGHPUT",
        "WEB_DNS",
        "WEB_CONNECT",
        "WEB_SSL",
        "WEB_WAIT",
        "WEB_TTFB",
        "WEB_RECEIVE",
        "WEB_REDIRECT",
        "WEB_FETCH",
        "WEB_AUTHENTICATION_ERROR_COUNT",
        "WEB_DNS_ERROR_COUNT",
        "WEB_CONNECT_ERROR_COUNT",
        "WEB_SSL_ERROR_COUNT",
        "WEB_SEND_ERROR_COUNT",
        "WEB_RECEIVE_ERROR_COUNT",
        "WEB_HTTP_ERROR_COUNT",
        "WEB_CONTENT_ERROR_COUNT",
        "WEB_TOTAL_ERROR_COUNT",
        "FTP_AVAILABILITY",
        "FTP_THROUGHPUT",
        "FTP_DNS",
        "FTP_CONNECT",
        "FTP_SSL",
        "FTP_NEGOTIATION",
        "FTP_WAIT",
        "FTP_TTFB",
        "FTP_TRANSFER",
        "FTP_TOTAL",
        "FTP_DNS_ERROR_COUNT",
        "FTP_CONNECT_ERROR_COUNT",
        "FTP_SSL_ERROR_COUNT",
        "FTP_NEGOTIATION_ERROR_COUNT",
        "FTP_TRANSFER_ERROR_COUNT",
        "FTP_FTP_ERROR_COUNT",
        "FTP_CONTENT_ERROR_COUNT",
        "FTP_TOTAL_ERROR_COUNT",
        "WEB_PAGE_LOAD_DOM_TIME",
        "WEB_PAGE_LOAD",
        "WEB_PAGE_TTFB",
        "WEB_PAGE_COMPONENT_COUNT",
        "WEB_PAGE_ERROR_COUNT",
        "WEB_PAGE_LOAD_COMPLETION_RATE",
        "CLASSIC_TRANSACTION_TIME",
        "CLASSIC_TRANSACTION_COMPLETION",
        "CLASSIC_TRANSACTION_STEP_TIME",
        "CLASSIC_TRANSACTION_PAGE_TIME",
        "TRANSACTION_MARKER_TIME_DECOMPOSED",
        "TRANSACTION_PAGE_LOAD_TIME_DECOMPOSED",
        "TRANSACTION_PAGE_TIME_DECOMPOSED",
        "TRANSACTION_PAGE_LOAD_DOM_TIME_DECOMPOSED",
        "TRANSACTION_TIME",
        "TRANSACTION_TIMEOUT",
        "TRANSACTION_ASSERT_ERROR",
        "TRANSACTION_OTHER_ERROR",
        "TRANSACTION_PAGE_ERROR",
        "TRANSACTION_COMPLETION",
        "TRANSACTION_ERROR",
        "TRANSACTION_MARKER_TIME",
        "TRANSACTION_PAGE_TIME",
        "TRANSACTION_PAGE_LOAD_TIME",
        "TRANSACTION_PAGE_LOAD_DOM_TIME",
        "API_TRANSACTION_TIME",
        "API_REQUEST_CALL_TIME",
        "API_REQUEST_DNS_TIME",
        "API_REQUEST_CONNECT_TIME",
        "API_REQUEST_SSL_TIME",
        "API_REQUEST_SEND_TIME",
        "API_REQUEST_WAIT_TIME",
        "API_REQUEST_BLOCK_TIME",
        "API_REQUEST_RECEIVE_TIME",
        "API_REQUEST_ASSERT_ERROR_COUNT",
        "API_REQUEST_COMPLETION",
        "API_REQUEST_OTHER_ERROR_COUNT",
        "VOIP_DISCARDS",
        "VOIP_LATENCY",
        "VOIP_LOSS",
        "VOIP_MOS",
        "VOIP_PDV",
        "SIP_AVAILABILITY",
        "SIP_DNS",
        "SIP_CONNECT",
        "SIP_REDIRECT",
        "SIP_REGISTER",
        "SIP_OPTIONS",
        "SIP_INVITE",
        "SIP_WAIT",
        "SIP_RESPONSE_TIME",
        "SIP_TOTAL_TIME",
        "SIP_DNS_ERROR_COUNT",
        "SIP_CONNECT_ERROR_COUNT",
        "SIP_REGISTER_ERROR_COUNT",
        "SIP_OPTIONS_ERROR_COUNT",
        "SIP_INVITE_ERROR_COUNT",
        "SIP_TOTAL_ERROR_COUNT",
        "DNS_SERVER_AVAILABILITY",
        "DNS_SERVER_TIME",
        "DNS_TRACE_AVAILABILITY",
        "DNS_TRACE_QUERY_COUNT",
        "DNS_TRACE_QUERY_TIME",
        "DNSSEC_VALIDITY",
        "DNSP_AVAILABILITY",
        "DNSP_TIME",
        "DNSP_SERVER_TIME",
        "BGP_REACHABILITY",
        "BGP_PATH_CHANGES",
        "ALERT_COUNT",
        "ALERT_COUNT_AGENT",
        "ALERT_COUNT_BGP",
        "ALERT_COUNT_DNSP",
        "ENDPOINT_SAMPLE_COUNT",
        "ENDPOINT_NET_LOSS",
        "ENDPOINT_NET_LATENCY",
        "ENDPOINT_NET_JITTER",
        "ENDPOINT_NET_CONNECT_FAILURES",
        "ENDPOINT_NET_CPU_LOAD_PERCENT",
        "ENDPOINT_NET_MEMORY_LOAD_PERCENT",
        "ENDPOINT_NET_VPN_LOSS",
        "ENDPOINT_NET_VPN_LATENCY",
        "ENDPOINT_PAGE_COUNT",
        "ENDPOINT_WEB_COMPLETION",
        "ENDPOINT_WEB_RESPONSE_TIME",
        "ENDPOINT_WEB_PAGE_LOAD",
        "ENDPOINT_WEB_PAGE_LOAD_DOM_TIME",
        "ENDPOINT_WEB_EXPERIENCE_SCORE",
        "ENDPOINT_WEB_BROWSER_ERROR_COUNT",
        "ENDPOINT_GATEWAY_PROBE_COUNT",
        "ENDPOINT_GATEWAY_COMBINED_TRANSMISSION_RATE",
        "ENDPOINT_GATEWAY_SIGNAL_QUALITY",
        "ENDPOINT_GATEWAY_LOSS",
        "ENDPOINT_GATEWAY_LATENCY",
        "ENDPOINT_GATEWAY_AGENT_SCORE",
        "ENDPOINT_GATEWAY_SCORE",
        "ENDPOINT_GATEWAY_CONNECTION_SCORE",
        "ENDPOINT_GATEWAY_PROXY_LOSS",
        "ENDPOINT_GATEWAY_PROXY_LATENCY",
        "ENDPOINT_GATEWAY_PROXY_SCORE",
        "ENDPOINT_GATEWAY_VPN_LOSS",
        "ENDPOINT_GATEWAY_VPN_LATENCY",
        "ENDPOINT_GATEWAY_VPN_SCORE",
        "ENDPOINT_GATEWAY_DNS_LOSS",
        "ENDPOINT_GATEWAY_DNS_LATENCY",
        "ENDPOINT_GATEWAY_DNS_TIME",
        "ENDPOINT_GATEWAY_CPU_LOAD_PERCENT",
        "ENDPOINT_GATEWAY_MEMORY_LOAD_PERCENT",
        "EYEBROW_GATEWAY_WIRELESS_CHANNEL_SWAP_EVENTS",
        "EYEBROW_GATEWAY_WIRELESS_RETRANSMISSION_RATE",
        "EYEBROW_GATEWAY_WIRELESS_ROAMING_EVENTS",
        "EYEBROW_GATEWAY_WIRELESS_SIGNAL_QUALITY",
        "EYEBROW_GATEWAY_WIRELESS_THROUGHPUT",
        "ENDPOINT_CELLULAR_RSSI",
        "ENDPOINT_CELLULAR_RSRP",
        "ENDPOINT_CELLULAR_RSRQ",
        "ENDPOINT_CELLULAR_SINR",
        "ENDPOINT_AST_TEST_NET_LOSS",
        "ENDPOINT_AST_TEST_NET_JITTER",
        "ENDPOINT_AST_TEST_NET_LATENCY",
        "ENDPOINT_AST_TEST_NET_CPU_LOAD_PERCENT",
        "ENDPOINT_AST_TEST_NET_MEMORY_LOAD_PERCENT",
        "ENDPOINT_AST_TEST_VPN_LOSS",
        "ENDPOINT_AST_TEST_VPN_LATENCY",
        "ENDPOINT_AST_TEST_TCP_CONNECTION_ERROR_COUNT",
        "ENDPOINT_AST_TEST_APPLICATION_SCORE",
        "ENDPOINT_GATEWAY_WIRELESS_CHANNEL_SWAP_EVENTS",
        "ENDPOINT_GATEWAY_WIRELESS_RETRANSMISSION_RATE",
        "ENDPOINT_GATEWAY_WIRELESS_ROAMING_EVENTS",
        "ENDPOINT_GATEWAY_WIRELESS_SIGNAL_QUALITY",
        "ENDPOINT_GATEWAY_WIRELESS_THROUGHPUT",
        "ENDPOINT_TEST_NET_LOSS",
        "ENDPOINT_TEST_NET_JITTER",
        "ENDPOINT_TEST_NET_LATENCY",
        "ENDPOINT_TEST_NET_CPU_LOAD_PERCENT",
        "ENDPOINT_TEST_NET_MEMORY_LOAD_PERCENT",
        "ENDPOINT_TEST_VPN_LOSS",
        "ENDPOINT_TEST_VPN_LATENCY",
        "ENDPOINT_TEST_TCP_CONNECTION_ERROR_COUNT",
        "ENDPOINT_TEST_APPLICATION_SCORE",
        "ENDPOINT_TEST_HTTP_AVAILABILITY",
        "ENDPOINT_TEST_HTTP_WAIT",
        "ENDPOINT_TEST_HTTP_SSL",
        "ENDPOINT_TEST_HTTP_CONNECT",
        "ENDPOINT_TEST_HTTP_DNS_LOOKUP",
        "ENDPOINT_TEST_HTTP_RESPONSE_TIME",
        "ENDPOINT_TEST_HTTP_THROUGHPUT",
        "ENDPOINT_TEST_HTTP_APPLICATION_SCORE",
        "DEVICE_AVAILABILITY",
        "DEVICE_THROUGHPUT_INPUT",
        "DEVICE_THROUGHPUT_OUTPUT",
        "DEVICE_DISCARDS_INPUT",
        "DEVICE_DISCARDS_OUTPUT",
        "DEVICE_ERRORS_INPUT",
        "DEVICE_ERRORS_OUTPUT",
        "DEVICE_DISCARDS_AND_ERRORS_INPUT",
        "DEVICE_DISCARDS_AND_ERRORS_OUTPUT",
        "DEVICE_INTERFACES_UP",
        "DEVICE_INTERFACES_WITH_STATE_CHANGES",
        "NETWORK_OUTAGES_OUTAGES",
        "NETWORK_OUTAGES_LOCATIONS",
        "NETWORK_OUTAGES_INTERFACES",
        "NETWORK_OUTAGES_AFFECTED_TESTS",
        "APPLICATION_OUTAGES_AFFECTED_TESTS",
        "APPLICATION_OUTAGES_SERVERS",
        "APPLICATION_OUTAGES_LOCATIONS",
        "APPLICATION_OUTAGES_OUTAGES",
        "APPDYNAMICS_SERVICE_HEALTH",
        "CLOUD_NATIVE_MONITORING-ACCEPTED_TOTAL_THROUGHPUT",
        "CLOUD_NATIVE_MONITORING-ACCEPTED_OUTBOUND_THROUGHPUT",
        "CLOUD_NATIVE_MONITORING-ACCEPTED_INBOUND_THROUGHPUT",
        "CLOUD_NATIVE_MONITORING-ACCEPTED_INTERNAL_THROUGHPUT",
        "CLOUD_NATIVE_MONITORING-REJECTED_TOTAL_THROUGHPUT",
        "CLOUD_NATIVE_MONITORING-REJECTED_OUTBOUND_THROUGHPUT",
        "CLOUD_NATIVE_MONITORING-REJECTED_INBOUND_THROUGHPUT",
        "CLOUD_NATIVE_MONITORING-REJECTED_INTERNAL_THROUGHPUT",
        "CLOUD_NATIVE_MONITORING-TOTAL_CONNECTION_RATE",
        "CLOUD_NATIVE_MONITORING-CONNECTION_RATE",
        "CLOUD_NATIVE_MONITORING-INTERNAL_CONNECTION_RATE",
        "CLOUD_NATIVE_MONITORING-ALL_EVENTS",
        "CLOUD_NATIVE_MONITORING-CONFIGURATION_CHANGE_EVENTS",
        "CLOUD_NATIVE_MONITORING-AUTOSCALING_EVENTS",
        "TRAFFIC_INSIGHTS_MONITORING-TOTAL_THROUGHPUT",
        "TRAFFIC_INSIGHTS_MONITORING-DOWNSTREAM_THROUGHPUT",
        "TRAFFIC_INSIGHTS_MONITORING-UPSTREAM_THROUGHPUT",
        "TRAFFIC_INSIGHTS_MONITORING-CONNECTION_RATE"
      ]
    },
    "Templates_API_DashboardMetricDirection": {
      "type": "string",
      "description": "Direction of agent to agent metric.",
      "enum": [
        "TO_TARGET",
        "FROM_TARGET",
        "BIDIRECTIONAL"
      ]
    },
    "Templates_API_DashboardRefreshRateTemplate": {
      "type": "string",
      "description": "The refresh rate of the dashboard.",
      "default": "off",
      "enum": [
        "off",
        "2m",
        "5m",
        "10m",
        "15m",
        "30m",
        "60m"
      ]
    },
    "Templates_API_DashboardWidgetTemplate": {
      "type": "object",
      "description": "Configuration of a dashboard widget.",
      "properties": {
        "title": {
          "description": "The title of the widget.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "type": {
          "description": "The type of widget.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_WidgetType"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "visualMode": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_VisualMode"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "metricGroup": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_MetricGroup"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "direction": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_DashboardMetricDirection"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "metric": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_DashboardMetric"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "filters": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_WidgetFilters"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "measure": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_ApiWidgetMeasure"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "fixedTimespan": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_ApiDurationTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "shouldExcludeAlertSuppressionWindows": {
          "description": "Excludes alert suppression window data if set to `true`.",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_DeploymentStrategy": {
      "type": "string",
      "description": "The deployment strategy to apply to the asset.",
      "enum": [
        "create",
        "update",
        "ignore"
      ]
    },
    "Templates_API_DnsServerEntryTemplate": {
      "description": "Server host name (FQDN). Example \"www.example.com\".",
      "type": "object",
      "properties": {
        "serverName": {
          "$ref": "#/$defs/Templates_API_StringTemplate"
        }
      },
      "required": [
        "serverName"
      ]
    },
    "Templates_API_DnsServerTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_NetworkTestBaseTemplate"
        },
        {
          "type": "object",
          "required": [
            "type",
            "agents",
            "dnsServers",
            "domain",
            "interval"
          ],
          "properties": {
            "type": {
              "$ref": "#/$defs/Templates_API_DnsServerTestTypeTemplate"
            },
            "dnsServers": {
              "anyOf": [
                {
                  "$ref": "#/$defs/Templates_API_DnsServersTemplate"
                },
                {
                  "$ref": "#/$defs/Templates_API_HandlebarsExpression"
                }
              ]
            },
            "domain": {
              "$ref": "#/$defs/Templates_API_DnsTargetDomainTemplate"
            }
          }
        }
      ]
    },
    "Templates_API_DnsServerTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "dns-server"
    },
    "Templates_API_DnsServersTemplate": {
      "description": "DNS Servers to target",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Templates_API_DnsServerEntryTemplate"
      }
    },
    "Templates_API_DnsTargetDomainTemplate": {
      "description": "Specifies the target DNS host name for the test, suffixed by the record type (e.g., www.thousandeyes.com CNAME). If no record type is specified, the test will default to an ANY record.\n",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_DnsTraceTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "type": "object",
          "required": [
            "type",
            "agents",
            "domain",
            "interval"
          ],
          "properties": {
            "type": {
              "$ref": "#/$defs/Templates_API_DnsTraceTestTypeTemplate"
            },
            "dnsTransportProtocolTemplate": {
              "$ref": "#/$defs/Templates_API_TransportProtocolTemplate"
            },
            "domain": {
              "$ref": "#/$defs/Templates_API_DnsTargetDomainTemplate"
            }
          }
        }
      ]
    },
    "Templates_API_DnsTraceTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "dns-trace"
    },
    "Templates_API_EndpointAgentSelectionConfigTemplate": {
      "description": "Configuration that will be used to determine what Endpoint Agents to assign to a test.",
      "required": [
        "maxMachines"
      ],
      "type": "object",
      "properties": {
        "monitoringSettingsType": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointMonitoringSettingsTypeTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "agentIds": {
          "description": "An array of agent IDs used to assign specific Endpoint Agents to the test. Used when `monitoringSettingsType` is `SPECIFIC_AGENTS`.",
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "description": "Agent ID"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "labelIds": {
          "description": "An array of label IDs used to assign specific Endpoint Agents to the test. Used when `monitoringSettingsType` is `LIST_OF_LABELS`.",
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "integer",
                "description": "An Endpoint label ID.",
                "format": "int64"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "maxMachines": {
          "description": "Maximum number of machines assigned to a test.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_EndpointAlertRuleConfigTemplate": {
      "description": "Alert rules to associate with the test.",
      "required": [
        "ruleId"
      ],
      "type": "object",
      "properties": {
        "ruleId": {
          "description": "The ID of the Alert rule to associate with test.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_EndpointAuthTypeEnumTemplate": {
      "description": "The authentication type.",
      "type": "string",
      "enum": [
        "NONE",
        "BASIC",
        "NTLM",
        "KERBEROS",
        "OAUTH",
        "LEGACY"
      ]
    },
    "Templates_API_EndpointAuthTypeTemplate": {
      "description": "The authentication type.",
      "anyOf": [
        {
          "$ref": "#/$defs/Templates_API_EndpointAuthTypeEnumTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_EndpointGenericConfigTemplate": {
      "description": "Settings common to HTTP and Network tests.",
      "required": [
        "interval",
        "priority"
      ],
      "type": "object",
      "properties": {
        "interval": {
          "description": "Interval in seconds of when the test runs.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointTestIntervalTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "priority": {
          "description": "Define a priority for scheduling. Higher priority value will be scheduled first.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_EndpointHttpTestConfigTemplate": {
      "description": "HTTP test settings.",
      "required": [
        "httpTimeLimit",
        "sslVersion",
        "targetFetchTime",
        "targetResponseTime",
        "url",
        "verifyCertHostname"
      ],
      "type": "object",
      "properties": {
        "url": {
          "description": "URL to target for the test.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "targetResponseTime": {
          "description": "Target response time in milliseconds.",
          "anyOf": [
            {
              "type": "integer",
              "format": "int64"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "targetFetchTime": {
          "description": "Target fetch time in milliseconds.",
          "anyOf": [
            {
              "type": "integer",
              "format": "int64"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "headers": {
          "description": "Headers to be used in the HTTP request.",
          "anyOf": [
            {
              "maxLength": 1024,
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "verifyCertHostname": {
          "description": "Flag indicating if we are to verify the certificate.",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "authType": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointAuthTypeTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "bytesToDownload": {
          "description": "Maximum number of bytes to download on a request. If not present it means no limit.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "httpTimeLimit": {
          "description": "Maximum amount of time in milliseconds the HTTP Server test will run.",
          "anyOf": [
            {
              "maximum": 60000,
              "minimum": 5000,
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "username": {
          "description": "Username if auth enabled.",
          "anyOf": [
            {
              "maximum": 255,
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "password": {
          "description": "Password if auth enabled.",
          "anyOf": [
            {
              "maximum": 255,
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "postBody": {
          "description": "Request body to be used with the POST request.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "contentRegex": {
          "description": "Regular expression used to validate the received content. Must conform with the POSIX Extended Regular Expression Syntax.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "sslVersion": {
          "description": "SSL Version to be used: \n- `0` - Auto\n- `3` - SSLv3\n- `4` - TLSv1.0\n- `5` - TLSv1.1\n- `6` - TLSv1.2\n",
          "anyOf": [
            {
              "maximum": 6,
              "minimum": 0,
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "expectedResponseCode": {
          "description": "Expected HTTP response code. If not present 2xx or 3xx are expected.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "targetIpOverride": {
          "description": "If set to a valid IP address, this is where the request will\nbe sent regardless of what the agent's DNS resolver says.\n",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "clientCert": {
          "description": "Client PEM certificate used during the request.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "userAgent": {
          "description": "The user-agent string to be used by the request. It can be any user-agent string. If not provided, the default implementation user-agent is used.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "maxRedirects": {
          "description": "Maximum allowed redirects.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "proxyId": {
          "description": "Proxy used by the agent to execute the test.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "proxyDirect": {
          "description": "Indicates if a direct proxy should be used when proxyId is not set.",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_EndpointIpVersionTemplate": {
      "description": "IP version the test should use for network tests.",
      "type": "string",
      "enum": [
        "V4_ONLY",
        "V6_ONLY",
        "V6_PREFER",
        "OS_DEFAULT"
      ]
    },
    "Templates_API_EndpointMonitoringSettingsTypeTemplate": {
      "description": "The strategy to use for selecting Endpoint agents to include in a test. Possible values are:\n- `SPECIFIC_AGENTS` - use `agentIds` to select a specific set of agents\n- `ANY_AGENT` - select all agents available\n- `LIST_OF_LABELS` - use `labelIds` to select agents based on a set of matching labels\n",
      "type": "string",
      "enum": [
        "ANY_AGENT",
        "SPECIFIC_AGENTS",
        "LIST_OF_LABELS"
      ]
    },
    "Templates_API_EndpointNetworkTestConfigTemplate": {
      "description": "Network test settings.",
      "required": [
        "flagPing",
        "flagTraceroute",
        "ipVersion",
        "networkProtocol",
        "pathtraceInSession",
        "tcpConnect",
        "tcpProbeMode"
      ],
      "type": "object",
      "properties": {
        "flagPing": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "Indicates if the test should run ping."
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "flagTraceroute": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "Indicates if the test should run traceroute."
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "ipVersion": {
          "description": "IP version the test should use for network tests.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointIpVersionTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "networkProtocol": {
          "$ref": "#/$defs/Templates_API_EndpointTestConfigProtocolTemplate"
        },
        "pathtraceInSession": {
          "type": "boolean",
          "description": "Used in TCP mode only."
        },
        "tcpProbeMode": {
          "$ref": "#/$defs/Templates_API_EndpointTcpProbeModeTemplate"
        },
        "tcpConnect": {
          "type": "boolean",
          "description": "Indicates whether to use TCP Connect when running the ICMP test.",
          "default": false
        }
      }
    },
    "Templates_API_EndpointServerConfigTemplate": {
      "description": "Target server information.",
      "required": [
        "port",
        "serverName"
      ],
      "type": "object",
      "properties": {
        "serverName": {
          "type": "string",
          "description": "Server host name or IP."
        },
        "port": {
          "maximum": 65535,
          "minimum": 0,
          "type": "integer",
          "description": "Server port"
        }
      }
    },
    "Templates_API_EndpointTcpProbeModeTemplate": {
      "type": "string",
      "description": "Used in TCP mode only.",
      "enum": [
        "UNKNOWN",
        "AUTO",
        "SYN",
        "SACK"
      ]
    },
    "Templates_API_EndpointTestCategoryOptionsTemplate": {
      "type": "string",
      "enum": [
        "SCHEDULED_TEST",
        "DYNAMIC_APP_TEST"
      ]
    },
    "Templates_API_EndpointTestCategoryTemplate": {
      "description": "Whether the test is `SCHEDULED_TEST` or `DYNAMIC_APP_TEST`.",
      "anyOf": [
        {
          "$ref": "#/$defs/Templates_API_EndpointTestCategoryOptionsTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_EndpointTestConfigProtocolTemplate": {
      "type": "string",
      "description": "The protocol to use for ping/traceroute tests.",
      "enum": [
        "UNKNOWN",
        "ICMP",
        "TCP",
        "UDP",
        "PREFER_TCP",
        "AUTODETECT"
      ]
    },
    "Templates_API_EndpointTestConfigTemplate": {
      "description": "Configuration settings for a ThousandEyes Endpoint test. All test fields can be templated with Handlebars \nexpression unless otherwise noted.\n",
      "required": [
        "name",
        "testCategory",
        "testType",
        "genericConfig",
        "machineConfig",
        "networkConfig"
      ],
      "type": "object",
      "properties": {
        "testName": {
          "description": "The name of the test.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "description": {
          "description": "The description of the test.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "testType": {
          "description": "The type of Endpoint scheduled test.\n\nPossible values are:\n\n- `Network` - endpoint network test\n- `Http` - endpoint http test\n",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointTestTypeTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "testCategory": {
          "$ref": "#/$defs/Templates_API_EndpointTestCategoryTemplate"
        },
        "flagEnabled": {
          "description": "Flag indicating if the test is enabled.",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "alertRules": {
          "anyOf": [
            {
              "type": "array",
              "description": "Alert rules associated with the test config.",
              "items": {
                "$ref": "#/$defs/Templates_API_EndpointAlertRuleConfigTemplate"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "genericConfig": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointGenericConfigTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "machineConfig": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointAgentSelectionConfigTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "networkConfig": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointNetworkTestConfigTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "server": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointServerConfigTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "httpConfig": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointHttpTestConfigTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "testLabelIds": {
          "description": "A list of labels to assign to the test. Typically this value will be set using Handlebars\nreference to a user input. Example: `\"testLabelIds\": \"[{{labels.endpointLabel.groupId}}]\"`\n\n**Deprecation notice:** Labels (`testLabelIds`) are based on the V6 API, which is deprecated.\nUse `tagIds` instead for V7 API support. Do not use `testLabelIds` and `tagIds` together on the same test.\n",
          "deprecated": true,
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_EndpointTestLabelListTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "tagIds": {
          "description": "The Tags to assign to the endpoint test, identified by tag ID. Typically set using\nHandlebars references to tags defined in the template. Tags are the recommended\nreplacement for labels (`testLabelIds`) and provide full V7 API support.\n",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TagIdListTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_EndpointTestIntervalTemplate": {
      "description": "How often the test will run, in seconds.",
      "type": "integer",
      "enum": [
        60,
        120,
        300,
        600,
        900,
        1800,
        3600
      ]
    },
    "Templates_API_EndpointTestLabelListTemplate": {
      "description": "A list of label IDs identifying label to be assigned.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Templates_API_NumberTemplate"
      }
    },
    "Templates_API_EndpointTestTypeOptionsTemplate": {
      "type": "string",
      "enum": [
        "Http",
        "Network"
      ]
    },
    "Templates_API_EndpointTestTypeTemplate": {
      "description": "The type of Endpoint scheduled test.\n\nPossible values are:\n\n- `Network` - endpoint network test\n- `Http` - endpoint http test\n",
      "anyOf": [
        {
          "$ref": "#/$defs/Templates_API_EndpointTestTypeOptionsTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_FilterContextDataSourceTemplate": {
      "description": "Type of data source for dashboard global filter.",
      "type": "string",
      "enum": [
        "ALERT",
        "APPDYNAMICS_SERVICE_HEALTH",
        "DEVICES",
        "DNSP",
        "ENDPOINT_AGENTS",
        "INTERNET_INSIGHTS",
        "ROUTING",
        "THIRD_PARTY_APPLICATIONS",
        "VIRTUAL_AGENT"
      ]
    },
    "Templates_API_HandlebarsExpression": {
      "description": "A valid Handlebars expression. Can reference user inputs, such as `{{name}}`, or fields of other assets defined in the template.\n* `{{userInputs.<key>}}` - resolves to the user provided value the `userInput` identified its key.\n* `{{name}}` - resolves to the name of the deployed template.\n* `{{<asset key>.<field>}}` - resolves to the value of a field of another asset defined in the template identified by the asset key and field name. \nFor example, set the `testIds` field of an `alertRule` by referencing the `testId` field of a `tests` asset.\n  **Note**: Due to dependencies, assets can only reference fields of other assets that appear earlier in the hierarchy below (e.g., labels cannot reference other assets, tests can reference labels and tags, etc.)\n  - Labels\n  - Tags\n  - Tests (can reference `{{labels.*.groupId}}` and `{{tags.*.id}}`)\n  - Endpoint Tests (can reference `{{labels.*.groupId}}` and `{{tags.*.id}}`)\n  - Connected Devices Tests (can reference `{{labels.*.groupId}}` and `{{tags.*.id}}`)\n  - Alert Rules\n  - Dashboard Filters\n  - Dashboards\n\n  Tags are deployed in two phases. Every field on the tag configuration except `assignments` (`key`, `value`, `objectType`, `accessType`, and optional `color`) is applied before dependent assets so that tag IDs are available for Handlebars references (for example, `{{tags.myTag.id}}`). The `assignments` field is applied after those assets exist (for example, after the tests you reference have been created), so it can resolve deployed IDs such as `{{tests.myTest.testId}}`. Both phases run automatically during deployment.\n",
      "type": "string",
      "pattern": ".*{{.*}}.*"
    },
    "Templates_API_HttpServerTestBaseTemplate": {
      "type": "object",
      "properties": {
        "networkMeasurements": {
          "description": "`1` to enable network measurements, `0` to disable.\n",
          "title": "NetworkMeasurements",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "desiredStatusCode": {
          "description": "Expected HTTP status response code.",
          "title": "DesiredStatusCode",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "followRedirects": {
          "description": "Whether or not transaction test should follow redirects.",
          "title": "FollowRedirects",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "httpTargetTime": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ],
          "description": "Target time for HTTP server completion; specified in milliseconds.",
          "minimum": 100,
          "maximum": 5000
        },
        "httpTimeLimit": {
          "$ref": "#/$defs/Templates_API_NumberTemplate"
        },
        "httpVersion": {
          "description": "HTTP Version; 2 for default (prefer HTTP/2), 1 for HTTP/1.1 only.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_HttpVersionTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "authType": {
          "description": "The Authentication type.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_AuthTypeTestTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "username": {
          "description": "The username to be used for Basic/NTLM authentication.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "password": {
          "description": "The password to be used for Basic/NTLM authentication.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "useNtlm": {
          "description": "Whether test should use NTLM during auth.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "userAgent": {
          "description": "The user-agent string to be provided during the test.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "customHeaders": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_CustomHeadersTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "verifyCertificate": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "clientCertificate": {
          "description": "The string representation (containing newline characters) of client certificate, if used.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "sslVersionId": {
          "description": "The SSL Version; `0` for auto, `3` for SSLv3, `4` for TLS v1.0, `5` for TLS v1.1, `6` for TLS v1.2.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_SslVersionIdTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_HttpServerTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_NetworkTestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_HttpServerTestBaseTemplate"
        },
        {
          "type": "object",
          "required": [
            "type",
            "agents",
            "interval"
          ],
          "properties": {
            "type": {
              "$ref": "#/$defs/Templates_API_HttpServerTestTypeTemplate"
            },
            "downloadLimit": {
              "$ref": "#/$defs/Templates_API_NumberTemplate",
              "description": "Specify maximum number of bytes to download from the target object."
            },
            "dnsOverride": {
              "$ref": "#/$defs/Templates_API_StringTemplate",
              "description": "IP address to use for DNS override."
            },
            "postBody": {
              "$ref": "#/$defs/Templates_API_StringTemplate",
              "description": "POST body to be sent with the request."
            }
          }
        }
      ]
    },
    "Templates_API_HttpServerTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "http-server"
    },
    "Templates_API_HttpVersionTemplate": {
      "description": "The HTTP Version; 2 for default (prefer HTTP/2), 1 for HTTP/1.1 only.",
      "type": "integer",
      "default": 2,
      "enum": [
        1,
        2
      ]
    },
    "Templates_API_LabelAssignmentTemplate": {
      "type": "object",
      "description": "Label to assign to a test, identified by the ID (`groupId`).",
      "properties": {
        "groupId": {
          "$ref": "#/$defs/Templates_API_NumberTemplate"
        }
      }
    },
    "Templates_API_LabelConfigurationTemplate": {
      "type": "object",
      "description": "A label object that is compatible with [ThousandEyes V6 API](https://developer.cisco.com/docs/thousandeyes/v6/create-a-label/#request).\nAll field values can be templated with Handlebars expression unless otherwise noted.\n",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "description": "The name of the label.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "type": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_LabelTypeTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "tests": {
          "description": "Array of CEA/Synthetic testId objects, if the type specified is `tests`.",
          "title": "Label_tests",
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Templates_API_TestIdTemplate"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "endpointTests": {
          "description": "Array of Endpoint testId objects, if the type specified is `endpoint_tests`.",
          "title": "Label_endpointTests",
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Templates_API_TestIdTemplate"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_LabelTypeTemplate": {
      "description": "The type of label. Acceptable values are:\n- `tests` - A Label that can be assigned to CEA/Synthetic tests\n- `endpoint_tests` - A Label that can be assigned to Endpoint tests\n",
      "type": "string",
      "enum": [
        "tests",
        "endpoint_tests"
      ]
    },
    "Templates_API_LegacyDurationUnit": {
      "type": "string",
      "deprecated": true,
      "description": "Timespan unit.",
      "enum": [
        "Minutes",
        "Hours",
        "Days"
      ]
    },
    "Templates_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"
        }
      }
    },
    "Templates_API_MetricGroup": {
      "type": "string",
      "description": "Metric group of widget as it appears in the UI. Note: may not be required in some cases.",
      "enum": [
        "AGENT_TO_AGENT",
        "AGENT_TO_SERVER",
        "HTTP_SERVER",
        "FTP_SERVER",
        "PAGE_LOAD",
        "TRANSACTIONS_CLASSIC",
        "TRANSACTIONS",
        "API",
        "ENDPOINT_BROWSER_SESSION_NETWORK",
        "ENDPOINT_BROWSER_SESSION_SYSTEM",
        "ENDPOINT_BROWSER_SESSION_VISITED_PAGES",
        "ENDPOINT_SCHEDULED_TEST_HTTP_SERVER",
        "ENDPOINT_SCHEDULED_TEST_NETWORK",
        "ENDPOINT_SCHEDULED_TEST_SYSTEM",
        "ENDPOINT_AST_TEST_NETWORK",
        "ENDPOINT_AST_TEST_SYSTEM",
        "ENDPOINT_LOCAL_NETWORK_GATEWAY",
        "ENDPOINT_LOCAL_NETWORK_AGENTS",
        "ENDPOINT_LOCAL_NETWORK_DNS",
        "ENDPOINT_LOCAL_NETWORK_NETWORK_ACCESS",
        "ENDPOINT_LOCAL_NETWORK_PROXY",
        "ENDPOINT_LOCAL_NETWORK_SYSTEM",
        "ENDPOINT_LOCAL_NETWORK_VPN",
        "ENDPOINT_LOCAL_NETWORK_WIRELESS",
        "ENDPOINT_LOCAL_NETWORK_CELLULAR",
        "BGP",
        "DEVICE",
        "VOIP",
        "SIP",
        "ALERTS",
        "DNS",
        "DOMAIN_TRACE",
        "DNSSEC",
        "DNSP",
        "NETWORK_OUTAGES",
        "APPLICATION_OUTAGES",
        "APPDYNAMICS_SERVICE_HEALTH",
        "CLOUD_NATIVE_MONITORING-TRAFFIC_FLOW",
        "CLOUD_NATIVE_MONITORING-EVENTS",
        "TRAFFIC_INSIGHTS_MONITORING-TRAFFIC_FLOW"
      ]
    },
    "Templates_API_NetworkTestBaseTemplate": {
      "type": "object",
      "properties": {
        "interval": {
          "description": "How often the network test will run, in seconds.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TestInterval"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "port": {
          "$ref": "#/$defs/Templates_API_PortTemplate"
        },
        "bgpMeasurements": {
          "description": "Enable/disable BGP measurements.",
          "title": "BgpMeasurements",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "bandwidthMeasurements": {
          "description": "Enable/disable bandwidth measurements.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "mtuMeasurements": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "numPathTraces": {
          "description": "Number of path trace probes to run. Defaults to 3, with a range of 3 to 10.",
          "title": "NumPathTraces",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_NumPathTracesTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "pathTraceMode": {
          "description": "The path trace mode. Choose `inSession` to perform the path trace within a TCP session. Defaults to `classic` for network path discovery.",
          "title": "PathTraceMode",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_PathTraceModeTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "probeMode": {
          "description": "The probe mode used by the end-to-end Network test. Only valid if the protocol is set to `TCP`. Defaults to `AUTO`.",
          "title": "ProbeMode",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_ProbeModeTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "protocol": {
          "description": "The network transport protocol that will be used. Defaults to `TCP`.",
          "title": "TransportProtocol",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TransportProtocolTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_NumPathTracesTemplate": {
      "description": "Number of path trace probes to run. Defaults to 3, with a range of 3 to 10.",
      "type": "integer",
      "minimum": 3,
      "maximum": 10,
      "default": 3
    },
    "Templates_API_NumberTemplate": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_PageLoadStrategyTemplate": {
      "type": "string",
      "default": "normal",
      "enum": [
        "none",
        "eager",
        "normal"
      ]
    },
    "Templates_API_PageLoadTestBaseTemplate": {
      "type": "object",
      "required": [
        "type",
        "agents",
        "interval",
        "url"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/Templates_API_PageLoadTestTypeTemplate"
        },
        "httpInterval": {
          "description": "How often the HTTP test will run, in seconds.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TestInterval"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "pageLoadTargetTime": {
          "$ref": "#/$defs/Templates_API_NumberTemplate",
          "description": "Target time for page load completion, in seconds. Cannot exceed the `pageLoadTimeLimit` value.",
          "minimum": 1,
          "maximum": 60,
          "default": 6
        },
        "pageLoadTimeLimit": {
          "$ref": "#/$defs/Templates_API_NumberTemplate",
          "description": "Page load timeout, in seconds. Must be greater than `httpTimeLimit`. Defaults to 10.",
          "default": 10
        }
      }
    },
    "Templates_API_PageLoadTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_NetworkTestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_HttpServerTestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_BrowserTestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_PageLoadTestBaseTemplate"
        }
      ]
    },
    "Templates_API_PageLoadTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "page-load"
    },
    "Templates_API_PathTraceModeTemplate": {
      "description": "The path trace mode. Choose `inSession` to perform the path trace within a TCP session. Defaults to `classic` for network path discovery.",
      "type": "string",
      "default": "classic",
      "enum": [
        "classic",
        "inSession"
      ]
    },
    "Templates_API_PortTemplate": {
      "description": "The network port.",
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_ProbeModeTemplate": {
      "description": "The probe mode used by the end-to-end Network test. Only valid if the protocol is set to `TCP`. Defaults to `AUTO`.",
      "type": "string",
      "default": "AUTO",
      "enum": [
        "AUTO",
        "SACK",
        "SYN"
      ]
    },
    "Templates_API_ResourceInclusion": {
      "type": "string",
      "description": "The deployment inclusion configuration for the asset.",
      "enum": [
        "skipped",
        "included"
      ]
    },
    "Templates_API_SchemaVersionConfig": {
      "title": "SchemaVersionConfig",
      "description": "Configuration for resource schema versions. Specifies which schema version (`v6` or `v7`)\nto use for each resource type in a template. If a field is omitted, the default version is used.\nDefaults: `tests`=v6, `alertRules`=v6. Other resources default internally (`labels`=v6; \n`tags`, `dashboards`, `endpointTests`, `connectedDevicesTests`=v7).\n",
      "type": "object",
      "properties": {
        "tests": {
          "$ref": "#/$defs/Templates_API_TestsSchemaVersion"
        },
        "alertRules": {
          "$ref": "#/$defs/Templates_API_AlertRulesSchemaVersion"
        }
      }
    },
    "Templates_API_SelfLinks": {
      "type": "object",
      "description": "A links object containing the self link.",
      "readOnly": true,
      "properties": {
        "self": {
          "$ref": "#/$defs/Templates_API_Link"
        }
      }
    },
    "Templates_API_SipProtocolTemplate": {
      "description": "The SIP protocol to use for SIP transport layer; defaults to TCP. When creating or updating a SIP test, set this field as part of the `targetSipCredentials` field.\n",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_SipRegistrarTemplate": {
      "description": "The target SIP server, without port.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_SipServerTestBaseTemplate": {
      "type": "object",
      "required": [
        "type",
        "agents",
        "targetSipCredentials"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/Templates_API_SipServerTestTypeTemplate"
        },
        "desiredStatusCode": {
          "$ref": "#/$defs/Templates_API_NumberTemplate",
          "description": "The expected SIP response code."
        },
        "server": {
          "$ref": "#/$defs/Templates_API_StringTemplate",
          "description": "The domain and port of the target SIP server."
        },
        "protocol": {
          "$ref": "#/$defs/Templates_API_SipProtocolTemplate"
        },
        "targetSipCredentials": {
          "$ref": "#/$defs/Templates_API_TargetSipCredentialsTemplate"
        }
      }
    },
    "Templates_API_SipServerTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_SipServerTestBaseTemplate"
        }
      ]
    },
    "Templates_API_SipServerTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "sip-server"
    },
    "Templates_API_SslVersionIdTemplate": {
      "description": "The SSL Version; `0` for auto, `3` for SSLv3, `4` for TLS v1.0, `5` for TLS v1.1, `6` for TLS v1.2.",
      "type": "integer",
      "default": 0,
      "enum": [
        0,
        3,
        4,
        5,
        6,
        7
      ]
    },
    "Templates_API_StringTemplate": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_TagAssignmentListTemplate": {
      "description": "A list of objects to assign a tag to.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Templates_API_TagAssignmentTemplate"
      }
    },
    "Templates_API_TagAssignmentObjectType": {
      "type": "string",
      "description": "The type of object that can be assigned a tag.",
      "enum": [
        "test",
        "endpoint-test",
        "connected-devices-test",
        "dashboard"
      ]
    },
    "Templates_API_TagAssignmentTemplate": {
      "type": "object",
      "description": "Identifies an object to assign a tag to.",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "description": "The object ID, typically a Handlebars reference to a deployed test.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "type": {
          "description": "The type of object being assigned.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TagAssignmentObjectType"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_TagConfigurationTemplate": {
      "type": "object",
      "description": "A tag configuration object for use in ThousandEyes Templates. Tags use a key/value model\nto provide meaningful metadata to ThousandEyes assets (such as tests, dashboards, endpoint tests).\n\nExcept for `assignments`, every field on this object defines the tag itself (`key`,\n`value`, `objectType`, `accessType`, and optional `color`). In those fields, values may\nbe plain strings or Handlebars expressions, but only `{{userInputs.*}}` and `{{name}}`\nreferences are allowed.\nReferences to other template assets such as `{{tests.*}}`, `{{endpointTests.*}}`, or\n`{{connectedDevicesTests.*}}` are **not permitted** in tag metadata fields and will result\nin an error during deployment.\n\nThe `assignments` field is the exception: it supports the full Handlebars context including\nreferences to `{{tests.*}}`, `{{endpointTests.*}}`, and `{{connectedDevicesTests.*}}`,\nallowing you to assign tags to deployed test resources (e.g.,\n`[{ \"id\": \"{{tests.myTest.testId}}\", \"type\": \"test\" }]`).\nAlternatively, you can use the `tagIds` field on the test configuration to associate\ntags with tests.\n",
      "required": [
        "key",
        "value",
        "objectType",
        "accessType"
      ],
      "properties": {
        "key": {
          "description": "The tag's key.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "value": {
          "description": "The tag's value.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "objectType": {
          "description": "The type of object the tag is associated with.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TagObjectTypeTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "accessType": {
          "description": "The access type of the tag.",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_AccessType"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "color": {
          "description": "The tag color as a hex code.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "assignments": {
          "description": "A list of objects to assign this tag to. Unlike tag metadata fields, `assignments` supports\nthe full Handlebars context including `{{tests.*}}`, `{{endpointTests.*}}`, and\n`{{connectedDevicesTests.*}}` references, allowing you to assign tags to deployed test\nresources. Assignments are processed in a second phase after all tests have been created,\nso test IDs are available for resolution. Assignments are additive: existing assignments\nfrom other deployments are preserved.\n",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TagAssignmentListTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_TagIdListTemplate": {
      "description": "A list of tag IDs identifying tags to be assigned.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Templates_API_TagIdTemplate"
      }
    },
    "Templates_API_TagIdTemplate": {
      "description": "A tag ID, typically a Handlebars reference to a tag defined in the template.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_TagObjectTypeTemplate": {
      "type": "string",
      "description": "The type of object associated with the tag. Supported values for templates are:\n- `test` - CEA/Synthetic tests\n- `endpoint-test` - Endpoint tests\n- `connected-devices-test` - Connected Devices tests\n- `dashboard` - Dashboards\n",
      "enum": [
        "test",
        "endpoint-test",
        "connected-devices-test",
        "dashboard"
      ]
    },
    "Templates_API_TargetServerTemplate": {
      "description": "Target host name or IP address. Example \"app.thousandeyes.com\".",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_TargetSipCredentialsTemplate": {
      "type": "object",
      "properties": {
        "authUser": {
          "$ref": "#/$defs/Templates_API_StringTemplate"
        },
        "password": {
          "$ref": "#/$defs/Templates_API_StringTemplate"
        },
        "port": {
          "$ref": "#/$defs/Templates_API_PortTemplate"
        },
        "protocol": {
          "$ref": "#/$defs/Templates_API_SipProtocolTemplate"
        },
        "sipRegistrar": {
          "$ref": "#/$defs/Templates_API_SipRegistrarTemplate"
        }
      },
      "required": [
        "sipRegistrar",
        "port"
      ]
    },
    "Templates_API_Template": {
      "title": "Template",
      "required": [
        "name"
      ],
      "description": "The template to create or update.",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the template."
        },
        "description": {
          "type": "string",
          "description": "Text that describes the template."
        },
        "icon": {
          "$ref": "#/$defs/Templates_API_TemplateIcon"
        },
        "isBuiltIn": {
          "type": "boolean",
          "description": "Indicates whether the template is a built-in template. This field is read-only for normal users."
        },
        "schemaVersion": {
          "$ref": "#/$defs/Templates_API_SchemaVersionConfig"
        },
        "certificationLevel": {
          "$ref": "#/$defs/Templates_API_CertificationLevel",
          "description": "The certification level of the Template. Normal users may only create `user` templates.\n"
        },
        "userInputs": {
          "description": "A map of <key, UserInput>. User Inputs are values that the user must fill in order for\nthe Template to deploy. User Inputs are like variables that can be used for dynamically setting just\nabout any field in the Template, including fields for Tests, Labels, Dashboards, and most other template assets.\nUser Inputs are referenced using Handlebars template substitution notation. For example:\n\n`\"testName\": \"{{userInputs.targetDomain}} - HTTP\"`\n\nThe [Handlebars Syntax](https://handlebarsjs.com/guide/builtin-helpers.html) also supports basic logic operations\nand iterators that allow creating powerful and flexible templates.\n",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_UserInput"
          }
        },
        "groupings": {
          "uniqueItems": true,
          "type": "array",
          "description": "An ordered list of groupings that organize template objects, such as user inputs or tests.",
          "items": {
            "$ref": "#/$defs/Templates_API_TemplateGrouping"
          }
        },
        "labels": {
          "type": "object",
          "description": "A map of <name, Label> objects. These are ThousandEyes Labels that will be created when the template is deployed.\n\n**Deprecation notice:** Labels are based on the V6 API, which is deprecated and has no V7 equivalent.\nUse `tags` instead, which provide enhanced functionality with full V7 API support.\nDo not use `labels` and `tags` together in the same template; prefer `tags` for all new templates.\n",
          "deprecated": true,
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_LabelConfigurationTemplate"
          }
        },
        "tests": {
          "type": "object",
          "description": "A map of <name, TestConfiguration> objects. These are the ThousandEyes CEA/Synthetic tests that will be created when the template is deployed.\n",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_TestConfigurationTemplate"
          }
        },
        "endpointTests": {
          "type": "object",
          "description": "A map of <name, EndpointTestConfiguration> objects. These are the Endpoint tests that will be created when the template is deployed. Field values support Handlebars template substitution.\n",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_EndpointTestConfigTemplate"
          }
        },
        "tags": {
          "type": "object",
          "description": "A map of <name, TagConfiguration> objects. These are ThousandEyes Tags that will be created when the template is deployed.\nTags use a key/value model and can be assigned to tests, endpoint tests, connected devices tests, and dashboards.\nTag IDs can be referenced in other template assets using Handlebars notation,\ne.g., `\"tagIds\": [\"{{tags.myTag.id}}\"]`.\n",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_TagConfigurationTemplate"
          }
        },
        "alertRules": {
          "type": "object",
          "description": "A map of <key, AlertRuleConfigurationTemplate> objects. These are the set of Alert Rules that will be created when the template is deployed.\n",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_AlertRuleConfigurationTemplate",
            "description": "An Alert Rule object. Values can be templated with Handlebars notation. As such, the Alert Rule object is defined here as\na set of key/value pairs. See external docs for schema details.\n"
          }
        },
        "dashboards": {
          "description": "A map of <key, DashboardConfiguration> objects. These are the set of dashboards that will be created when the template is deployed. Dashboard fields support Handlebars notation.\n",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_DashboardConfigurationTemplate"
          }
        },
        "dashboardFilters": {
          "type": "object",
          "description": "A map of <key, DashboardFilter> objects. These will be the dashboard filters created when the template is deployed.",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_DashboardFilterConfigurationTemplate"
          }
        },
        "deploymentStrategy": {
          "description": "A map of <assetKey, DeploymentStrategy> values. The `deploymentStrategy` field defines how the system behaves when an asset (test, label, tag, dashboard) defined in the template already exists.\nThe `assetKey` identifies the asset that the deployment strategy will apply to.\nFor tests, the system uses the test type and name to determine if a test already exists. For example, if a template contains an http-server test named `Test123` and an http-server test with the same name already exists, the system assumes that this test already exists. If the test had a different type (for example, page-load), then the system would not consider the test to already exist because the types are different.\nFor Labels and Dashboards, the system uses only the name. For Tags, the unique key is determined by the combination of `key`, `value`, and `objectType`.\nAlert Rules do not currently support `deploymentStrategy`.\nBelow are the possible deployment strategies and their behaviors:\n  * `create` - The system will always attempt to create the asset. If an asset of the same name and type already exists, the system will generate an error. This behavior ensures that each asset created from a template is unique. This is the default behavior.\n  * `update` - If an asset of the same type and name already exists, the existing asset is used instead of creating a new asset. If the configuration of the asset in the template is different from the existing one, the latest configuration is applied.\n  * `ignore` - If an asset of the same type and name already exists, the existing asset is used instead of creating a new asset. If the configuration of the asset in the template is different from the existing one, the configuration of the existing asset is used and the configuration in the template is ignored.\nThe `update` and `ignore` strategies essentially allow assets to be shared across templates. For example, the built-in \"Custom Web Page\", \"Custom Web Server\", and \"Custom Device\" templates all contain a Dashboard asset called \"Health Overview\". It's `deploymentStrategy` is set to `ignore`, which means that the first deployment of a template such as the \"Custom Web Page\" template creates the \"Health Overview\" dashboard. Subsequent deployments of the \"Custom Web Page\" template do not attempt to recreate the \"Health Overview\" dashboard. Instead, the existing dashboard is reused.\nNote: Assets that were not created using a template are not included when the system searches for existing assets; they are not used with `update` or `ignore`.\n",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_DeploymentStrategy"
          }
        },
        "resourceInclusion": {
          "description": "A map of `<assetKey, ResourceInclusion>` pairs. The `resourceInclusion` field specifies whether an asset (such as a test, endpoint test, label, tag, dashboard, or alert rule) should be included in a deployment.\nThe `assetKey` identifies the specific asset to which the inclusion rule applies.\nPossible resource inclusion values for each asset:\n  * `included` - The system will always create the asset.\n  * `skipped` - The system will not create the asset.\nIf an `assetKey` is not present in the `resourceInclusion` map, it defaults to `included`.\n**Note**: The deployment payload can override the `resourceInclusion` value defined in a template.\n",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Templates_API_ResourceInclusion"
          }
        },
        "modules": {
          "uniqueItems": true,
          "type": "array",
          "description": "ThousandEyes modules this template belongs to. Regular users can only set this to `default`.",
          "items": {
            "$ref": "#/$defs/Templates_API_TemplateModule"
          }
        }
      }
    },
    "Templates_API_TemplateGrouping": {
      "description": "Represents a grouping of different template resources for display purposes in the UI. This grouping does not affect template deployment.",
      "properties": {
        "name": {
          "description": "The name of the grouping.",
          "type": "string"
        },
        "title": {
          "description": "The title of the grouping.",
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/Templates_API_TemplateGroupingType"
        },
        "description": {
          "description": "Description of the grouping.",
          "type": "string"
        },
        "items": {
          "uniqueItems": true,
          "description": "A list of items within the group, corresponding to the keys in the `userInputs` or `tests` fields of the template. Each key must be unique within its respective group (`user-input` or `test`).",
          "items": {
            "description": "The unique key for an item in this grouping.",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "name",
        "title",
        "type"
      ],
      "type": "object"
    },
    "Templates_API_TemplateGroupingType": {
      "type": "string",
      "description": "The type of resources included in the grouping. Supported types are `Tests` and `User Inputs`. Grouped tests are displayed under a shared `title` in the template test list view, while grouped user inputs are organized into sections in the Global Inputs area, using the provided `title` and `description`.",
      "enum": [
        "test",
        "user-input"
      ]
    },
    "Templates_API_TemplateIcon": {
      "type": "string",
      "description": "Icon that will be used when displaying the template in UI. If none supplied, will display `thousandeyes` icon. Supported values include:\n- `api`\n- `custom`\n- `server`\n- `user-template`\n- `thousandeyes`\n"
    },
    "Templates_API_TemplateModule": {
      "type": "string",
      "description": "A ThousandEyes module this template belongs to. Regular users can only set to `default`.",
      "enum": [
        "default"
      ]
    },
    "Templates_API_TemplateResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TemplateResponseBase"
        },
        {
          "$ref": "#/$defs/Templates_API_Template"
        },
        {
          "type": "object",
          "properties": {
            "_links": {
              "$ref": "#/$defs/Templates_API_SelfLinks"
            }
          }
        }
      ]
    },
    "Templates_API_TemplateResponseBase": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The ID of the template."
        },
        "dateCreated": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the template was created."
        }
      }
    },
    "Templates_API_Templates": {
      "type": "object",
      "properties": {
        "templates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Templates_API_TemplateResponse"
          }
        }
      }
    },
    "Templates_API_TestBaseTemplate": {
      "type": "object",
      "required": [
        "testName",
        "type",
        "agents"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/Templates_API_TestTypeTemplate"
        },
        "testName": {
          "description": "The name of the test, must be unique.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "agents": {
          "description": "The agents to assign to the test identified by `agentId`.",
          "title": "Agents",
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Templates_API_AgentAssignmentTemplate"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "groups": {
          "description": "The Labels to assign to the test.\n\n**Deprecation notice:** Labels (`groups`) are based on the V6 API, which is deprecated.\nUse `tagIds` instead for V7 API support. Do not use `groups` and `tagIds` together on the same test.\n",
          "deprecated": true,
          "anyOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Templates_API_LabelAssignmentTemplate"
              }
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "tagIds": {
          "description": "The Tags to assign to the test, identified by tag ID. Typically set using\nHandlebars references to tags defined in the template. Tags are the recommended\nreplacement for labels (`groups`) and provide full V7 API support.\n",
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_TagIdListTemplate"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "description": {
          "description": "Description of the test.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_TestConfigurationTemplate": {
      "description": "A ThousandEyes CEA (Synthetic) test configuration that is compatible with [ThousandEyes V6 API](https://developer.cisco.com/docs/thousandeyes/v6/tests-metadata/). \nAll field values can be templated with Handlebars expression unless otherwise noted.\n",
      "oneOf": [
        {
          "$ref": "#/$defs/Templates_API_AgentToServerTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_HttpServerTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_PageLoadTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_AgentToAgentTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_VoiceTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_TransactionTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_SipServerTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_DnsServerTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_DnsTraceTestTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_BgpTestTemplate"
        }
      ]
    },
    "Templates_API_TestIdTemplate": {
      "description": "Test identified by the test's ID.",
      "type": "object",
      "properties": {
        "testId": {
          "$ref": "#/$defs/Templates_API_StringTemplate",
          "description": "ID of the test."
        }
      }
    },
    "Templates_API_TestInterval": {
      "type": "integer",
      "enum": [
        60,
        120,
        300,
        600,
        900,
        1800,
        3600
      ],
      "description": "Interval between test runs in seconds.",
      "default": 60
    },
    "Templates_API_TestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "enum": [
        "agent-to-server",
        "agent-to-agent",
        "dns-server",
        "dns-trace",
        "http-server",
        "page-load",
        "web-transactions",
        "sip-server",
        "voice",
        "bgp"
      ]
    },
    "Templates_API_TestsSchemaVersion": {
      "type": "string",
      "description": "Schema version for test resources.",
      "default": "v6",
      "enum": [
        "v6",
        "v7"
      ]
    },
    "Templates_API_TransactionScriptTemplate": {
      "description": "Transaction script for transaction test. Must be a JavaScript string with escaped quotes.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/Templates_API_HandlebarsExpression"
        }
      ]
    },
    "Templates_API_TransactionTestBaseTemplate": {
      "type": "object",
      "required": [
        "type",
        "agents",
        "interval",
        "transactionScript",
        "url"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/Templates_API_TransactionTestTypeTemplate"
        },
        "targetTime": {
          "$ref": "#/$defs/Templates_API_NumberTemplate",
          "type": "integer",
          "description": "The target time for a transaction test to complete, in seconds. Defaults to 10. Cannot exceed the `timeLimit` value.",
          "minimum": 1,
          "maximum": 180,
          "default": 10
        },
        "timeLimit": {
          "description": "The time limit for a transaction test, in seconds. Defaults to 30.",
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        },
        "transactionScript": {
          "$ref": "#/$defs/Templates_API_TransactionScriptTemplate"
        },
        "disableScreenshot": {
          "anyOf": [
            {
              "$ref": "#/$defs/Templates_API_BooleanNumber"
            },
            {
              "$ref": "#/$defs/Templates_API_HandlebarsExpression"
            }
          ]
        }
      }
    },
    "Templates_API_TransactionTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_NetworkTestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_HttpServerTestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_BrowserTestBaseTemplate"
        },
        {
          "$ref": "#/$defs/Templates_API_TransactionTestBaseTemplate"
        }
      ]
    },
    "Templates_API_TransactionTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "web-transactions"
    },
    "Templates_API_TransportProtocolTemplate": {
      "description": "The network transport protocol to use for the test.",
      "type": "string",
      "enum": [
        "TCP",
        "UDP"
      ]
    },
    "Templates_API_UserInput": {
      "description": "A user input is a value that the user must provide when deploying a template.\nUser Input values are provided by the user in the UI under the **Global Settings** section.\nWhen deploying via the API, User Inputs values are specified in the payload using the `userInputValues` field.\n",
      "required": [
        "name",
        "type"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the user input field."
        },
        "type": {
          "$ref": "#/$defs/Templates_API_UserInputType"
        },
        "title": {
          "type": "string",
          "description": "The title of the user input field; may be used by UI."
        },
        "description": {
          "type": "string",
          "description": "Description of the user input field; used by UI."
        },
        "defaultValue": {
          "$ref": "#/$defs/Templates_API_UserInputValue",
          "description": "Default value of user input field."
        },
        "allowedValues": {
          "type": "array",
          "description": "Allowed values for the User Input. An array of name/value pairs that specify specific values that can be used with the User Input. In the UI, user inputs with `allowedValues` will be displayed as a drop down selector; the `name` will be used as the display text.",
          "items": {
            "$ref": "#/$defs/Templates_API_UserInputAllowedValue"
          }
        }
      }
    },
    "Templates_API_UserInputAllowedValue": {
      "type": "object",
      "description": "The list of values that the user is allowed to use as inputs.",
      "properties": {
        "value": {
          "$ref": "#/$defs/Templates_API_UserInputValue"
        },
        "name": {
          "type": "string",
          "description": "The name of the value, which will be used for display in the UI and API messages."
        }
      }
    },
    "Templates_API_UserInputType": {
      "type": "string",
      "description": "The type of user input. This defines the value the user can provide as well as the UI component displayed when redering User Inputs.\nThe type is used to validate the user provided value when deploying a template.\n- `string`: User input expects a string value; UI will be rendered as a text box.\n- `number`: User input expects a numeric value; UI will be rendered as a text box.\n- `boolean`: User input expects a boolean value; UI will be rendered as a check box.\n- `string[]`: User input expects an array of string values; UI will be rendered as drop down.\n- `number[]`: User input expects an array of numeric values; UI will be rendered as drop down.\n- `boolean[]`: User input expects an array of boolean values; UI will be rendered as drop down.\n- `agents`: User input expects an array of `agentId`s; UI will be rendered as an Agent Selector (CEA) drop down.\n- `bgpPrefix`: User input expects a BGP prefix value; UI will be rendered as a text box with validation for correct BGP prefix format.\n- `tests`: User input expects an array of `testId`s; UI will be rendered as a Test Selector (CEA) drop down.\n- `any`: For any other user inputs that don't belong to the types listed above. These will be determined based on usage in template.\n",
      "enum": [
        "string",
        "number",
        "boolean",
        "string[]",
        "number[]",
        "boolean[]",
        "agents",
        "bgpPrefix",
        "tests",
        "any"
      ]
    },
    "Templates_API_UserInputValue": {
      "description": "A user input value. The type of object depends on the user input `type` field.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "object"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      ]
    },
    "Templates_API_VisualMode": {
      "type": "string",
      "description": "Visual mode in the UI. Either full or half the width of the window.",
      "default": "Full",
      "enum": [
        "Full",
        "Half screen"
      ]
    },
    "Templates_API_VoiceIntervalTemplate": {
      "description": "Voice test interval in seconds.",
      "type": "integer",
      "enum": [
        300,
        600,
        900,
        1800,
        3600
      ]
    },
    "Templates_API_VoiceTestTemplate": {
      "allOf": [
        {
          "$ref": "#/$defs/Templates_API_TestBaseTemplate"
        },
        {
          "type": "object",
          "required": [
            "type",
            "agents",
            "interval",
            "targetAgentId"
          ],
          "properties": {
            "type": {
              "$ref": "#/$defs/Templates_API_VoiceTestTypeTemplate"
            },
            "interval": {
              "description": "How often the Voice test will run, in seconds.",
              "anyOf": [
                {
                  "$ref": "#/$defs/Templates_API_VoiceIntervalTemplate"
                },
                {
                  "$ref": "#/$defs/Templates_API_HandlebarsExpression"
                }
              ]
            },
            "dscpId": {
              "$ref": "#/$defs/Templates_API_NumberTemplate",
              "description": "The DSCP value.",
              "default": 46
            },
            "dscp": {
              "$ref": "#/$defs/Templates_API_StringTemplate",
              "description": "The DSCP string."
            },
            "port": {
              "$ref": "#/$defs/Templates_API_NumberTemplate",
              "description": "The Port to target.",
              "default": 49152,
              "minimum": 1024,
              "maximum": 65535
            },
            "targetAgentId": {
              "$ref": "#/$defs/Templates_API_NumberTemplate",
              "description": "Id of the target agent for the test."
            }
          }
        }
      ]
    },
    "Templates_API_VoiceTestTypeTemplate": {
      "type": "string",
      "description": "The type of test. Cannot be templated with Handlebars.",
      "default": "voice"
    },
    "Templates_API_WidgetFilters": {
      "type": "object",
      "description": "(Optional) Specifies the filters applied to the widget. When present, the `filters` property displays. Each filter object has two properties: `filterProperty` and `filterValue`. The `filterProperty` can be values like `AGENT`, `ENDPOINT_MACHINE_ID`, `TEST`, `MONITOR`, etc.  The `filterValue` represents an identifier array of the selected property.",
      "additionalProperties": {
        "uniqueItems": true,
        "type": "array",
        "items": {}
      }
    },
    "Templates_API_WidgetMeasureType": {
      "type": "string",
      "description": "Determines how to aggregate the the metric.",
      "enum": [
        "MINIMUM",
        "MAXIMUM",
        "MEAN",
        "MEDIAN",
        "NTH_PERCENTILE",
        "PERCPOSITIVE",
        "PERCZERO",
        "STDDEV",
        "TOTAL",
        "VALUES",
        "SUM",
        "CLOUD_NATIVE_MONITORING-MEAN",
        "CLOUD_NATIVE_MONITORING-SUM",
        "TRAFFIC_INSIGHTS_MONITORING-SUM",
        "TRAFFIC_INSIGHTS_MONITORING-MEAN"
      ]
    },
    "Templates_API_WidgetType": {
      "type": "string",
      "description": "Type of the Widget",
      "enum": [
        "Bar Chart: Stacked",
        "Bar Chart: Grouped",
        "Heatmap",
        "Time Series: Line",
        "Time Series: Stacked Area",
        "Pie Chart",
        "Table",
        "Multi Metric Table",
        "Number",
        "Agent Status",
        "Color Grid",
        "Alert List",
        "List",
        "Test Table",
        "Map",
        "Box and Whiskers"
      ]
    }
  }
}