Sha256: ddc9524a1f3427f04c9321db25bcf3f24f9fded3515209a846797284a9669e87
Contents?: true
Size: 1.23 KB
Versions: 16
Compression:
Stored size: 1.23 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-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response", 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
16 entries across 16 versions & 1 rubygems