Sha256: b96bdec0c76e5a31b6be7fd36187ab21df27430192a72ea0c47300ff6e137ebb
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
# Edit a Mobile test returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_mobile_test" in the system SYNTHETICS_MOBILE_TEST_PUBLIC_ID = ENV["SYNTHETICS_MOBILE_TEST_PUBLIC_ID"] body = DatadogAPIClient::V1::SyntheticsMobileTest.new({ name: "Example-Synthetic-updated", status: DatadogAPIClient::V1::SyntheticsTestPauseStatus::PAUSED, type: DatadogAPIClient::V1::SyntheticsMobileTestType::MOBILE, config: DatadogAPIClient::V1::SyntheticsMobileTestConfig.new({ variables: [], }), message: "", options: DatadogAPIClient::V1::SyntheticsMobileTestOptions.new({ device_ids: [ "synthetics:mobile:device:iphone_15_ios_17", ], mobile_application: DatadogAPIClient::V1::SyntheticsMobileTestsMobileApplication.new({ application_id: "ab0e0aed-536d-411a-9a99-5428c27d8f8e", reference_id: "6115922a-5f5d-455e-bc7e-7955a57f3815", reference_type: DatadogAPIClient::V1::SyntheticsMobileTestsMobileApplicationReferenceType::VERSION, }), tick_every: 3600, }), steps: [], }) p api_instance.update_mobile_test(SYNTHETICS_MOBILE_TEST_PUBLIC_ID, body)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.29.1 | examples/v1/synthetics/UpdateMobileTest.rb |
datadog_api_client-2.28.1 | examples/v1/synthetics/UpdateMobileTest.rb |