Sha256: 425e8c83635475549f8ca05768cd2a8301bdfef5d2e3972c4b7da88c568e7456
Contents?: true
Size: 1.17 KB
Versions: 15
Compression:
Stored size: 1.17 KB
Contents
# Create an API SSL test returns "OK - Returns the created test details." response require "datadog_api_client" api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ config: DatadogAPIClient::V1::SyntheticsAPITestConfig.new({ assertions: [ DatadogAPIClient::V1::SyntheticsAssertionTarget.new({ operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::IS_IN_MORE_DAYS_THAN, target: 10, type: DatadogAPIClient::V1::SyntheticsAssertionType::CERTIFICATE, }), ], request: DatadogAPIClient::V1::SyntheticsTestRequest.new({ host: "datadoghq.com", port: 443, }), }), locations: [ "aws:us-east-2", ], message: "BDD test payload: synthetics_api_ssl_test_payload.json", name: "Example-Synthetic", options: DatadogAPIClient::V1::SyntheticsTestOptions.new({ accept_self_signed: true, check_certificate_revocation: true, tick_every: 60, }), subtype: DatadogAPIClient::V1::SyntheticsTestDetailsSubType::SSL, tags: [ "testing:api", ], type: DatadogAPIClient::V1::SyntheticsAPITestType::API, }) p api_instance.create_synthetics_api_test(body)
Version data entries
15 entries across 15 versions & 1 rubygems