Sha256: b2d99e6072f7d6e2dc45230d3cf0e2fb1265234ef088075275c4663218c78288

Contents?: true

Size: 481 Bytes

Versions: 20

Compression:

Stored size: 481 Bytes

Contents

# Trigger Synthetics tests returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::SyntheticsAPI.new

# there is a valid "synthetics_api_test" in the system
SYNTHETICS_API_TEST_PUBLIC_ID = ENV["SYNTHETICS_API_TEST_PUBLIC_ID"]

body = DatadogAPIClient::V1::SyntheticsTriggerBody.new({
  tests: [
    DatadogAPIClient::V1::SyntheticsTriggerTest.new({
      public_id: SYNTHETICS_API_TEST_PUBLIC_ID,
    }),
  ],
})
p api_instance.trigger_tests(body)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
datadog_api_client-2.10.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.9.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.8.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.7.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.6.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.5.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.4.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.3.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.2.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.1.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.0.2 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.0.1 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-2.0.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-1.11.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-1.10.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-1.9.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-1.8.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-1.7.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-1.6.0 examples/v1/synthetics/TriggerTests.rb
datadog_api_client-1.5.0 examples/v1/synthetics/TriggerTests.rb