Skip to main content

traceroute_tests

Creates, updates, deletes, gets or lists a traceroute_tests resource.

Overview

Nametraceroute_tests
TypeResource
Idcloudflare.zero_trust.traceroute_tests

Fields

The following fields are returned by SELECT queries:

DEX traceroute test details response

NameDatatypeDescription
namestringThe name of the Traceroute synthetic application test (example: Atlassian Sign In Page)
hoststringThe host of the Traceroute synthetic application test (example: 1.1.1.1)
intervalstringThe interval at which the Traceroute synthetic application test is set to run. (example: 0h5m0s)
kindstring (traceroute)
target_policiesarray
targetedboolean
tracerouteStatsobject
tracerouteStatsByColoarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, test_iddeviceId, from, to, interval, coloGet test details and aggregate performance metrics for an traceroute test for a given time period between 1 hour and 7 days.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
test_idstringUnique identifier for a specific test
colostringOptionally filter result stats to a Cloudflare colo. Cannot be used in combination with deviceId param.
deviceIdarrayOptionally filter result stats to a specific device(s). Cannot be used in combination with colo param.
fromstringStart time for aggregate metrics in ISO ms
intervalstringTime interval for aggregate time slots.
tostringEnd time for aggregate metrics in ISO ms

SELECT examples

Get test details and aggregate performance metrics for an traceroute test for a given time period between 1 hour and 7 days.

SELECT
name,
host,
interval,
kind,
target_policies,
targeted,
tracerouteStats,
tracerouteStatsByColo
FROM cloudflare.zero_trust.traceroute_tests
WHERE account_id = '{{ account_id }}' -- required
AND test_id = '{{ test_id }}' -- required
AND deviceId = '{{ deviceId }}'
AND from = '{{ from }}'
AND to = '{{ to }}'
AND interval = '{{ interval }}'
AND colo = '{{ colo }}'
;