examples/v1/synthetics/CreateSyntheticsBrowserTest.rb in datadog_api_client-2.10.0 vs examples/v1/synthetics/CreateSyntheticsBrowserTest.rb in datadog_api_client-2.11.0
- old
+ new
@@ -4,9 +4,18 @@
api_instance = DatadogAPIClient::V1::SyntheticsAPI.new
body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({
config: DatadogAPIClient::V1::SyntheticsBrowserTestConfig.new({
assertions: [],
+ variables: [
+ DatadogAPIClient::V1::SyntheticsBrowserVariable.new({
+ type: DatadogAPIClient::V1::SyntheticsBrowserVariableType::TEXT,
+ name: "TEST_VARIABLE",
+ pattern: "secret",
+ secure: true,
+ example: "secret",
+ }),
+ ],
config_variables: [
DatadogAPIClient::V1::SyntheticsConfigVariable.new({
example: "content-type",
name: "PROPERTY",
pattern: "content-type",