diff --git a/tubular/scripts/dd_synthetic_tests.py b/tubular/scripts/dd_synthetic_tests.py index 4712dd7c..1cfdd2dd 100644 --- a/tubular/scripts/dd_synthetic_tests.py +++ b/tubular/scripts/dd_synthetic_tests.py @@ -13,6 +13,7 @@ class DatadogClient: ''' Invokes datadog API to run and monitor synthetic tests ''' + DATADOG_SYNTHETIC_TESTS_API_URL = "https://api.datadoghq.com/api/v1/synthetics/tests" DATADOG_SYNTHETIC_TESTS_API_URL = "https://api.datadoghq.com/api/v1/synthetics/tests" MAX_ALLOWABLE_TIME_SECS = 300 # 5 minutes @@ -31,7 +32,7 @@ def trigger_synthetic_tests(self, test_requests: [dict]) -> str: if self.test_run_id: raise Exception("Datadog error: tests already triggered") - url = f"{self.DATADOG_SYNTHETIC_TESTS_API_URL}/trigger" + url = f"{self.DATADOG_SYNTHETIC_TESTS_API_URL}/trigger/ci" headers = { "Content-Type": "application/json", "DD-API-KEY": self.api_key,