Skip to content

Commit c3c5351

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b16decd2 of spec repo
1 parent d78f4b1 commit c3c5351

File tree

7 files changed

+277
-6
lines changed

7 files changed

+277
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-19 17:45:09.241591",
8-
"spec_repo_commit": "77e5efb9"
7+
"regenerated": "2025-05-20 15:09:21.687450",
8+
"spec_repo_commit": "b16decd2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-19 17:45:09.257657",
13-
"spec_repo_commit": "77e5efb9"
12+
"regenerated": "2025-05-20 15:09:21.704017",
13+
"spec_repo_commit": "b16decd2"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14081,11 +14081,23 @@ components:
1408114081
enum:
1408214082
- http
1408314083
- grpc
14084+
- ssl
14085+
- dns
14086+
- tcp
14087+
- udp
14088+
- icmp
14089+
- websocket
1408414090
example: http
1408514091
type: string
1408614092
x-enum-varnames:
1408714093
- HTTP
1408814094
- GRPC
14095+
- SSL
14096+
- DNS
14097+
- TCP
14098+
- UDP
14099+
- ICMP
14100+
- WEBSOCKET
1408914101
SyntheticsAPITestType:
1409014102
default: api
1409114103
description: Type of the Synthetic test, `api`.

examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,146 @@
8383
call_type: DatadogAPIClient::V1::SyntheticsTestCallType::UNARY,
8484
}),
8585
}),
86+
DatadogAPIClient::V1::SyntheticsAPITestStep.new({
87+
name: "SSL step",
88+
subtype: DatadogAPIClient::V1::SyntheticsAPITestStepSubtype::SSL,
89+
allow_failure: false,
90+
is_critical: true,
91+
_retry: DatadogAPIClient::V1::SyntheticsTestOptionsRetry.new({
92+
count: 0,
93+
interval: 300,
94+
}),
95+
assertions: [
96+
DatadogAPIClient::V1::SyntheticsAssertionTarget.new({
97+
operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::IS_IN_MORE_DAYS_THAN,
98+
type: DatadogAPIClient::V1::SyntheticsAssertionType::CERTIFICATE,
99+
target: 10,
100+
}),
101+
],
102+
request: DatadogAPIClient::V1::SyntheticsTestRequest.new({
103+
host: "example.org",
104+
port: 443,
105+
}),
106+
}),
107+
DatadogAPIClient::V1::SyntheticsAPITestStep.new({
108+
name: "DNS step",
109+
subtype: DatadogAPIClient::V1::SyntheticsAPITestStepSubtype::DNS,
110+
allow_failure: false,
111+
is_critical: true,
112+
_retry: DatadogAPIClient::V1::SyntheticsTestOptionsRetry.new({
113+
count: 0,
114+
interval: 300,
115+
}),
116+
assertions: [
117+
DatadogAPIClient::V1::SyntheticsAssertionTarget.new({
118+
operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::LESS_THAN,
119+
type: DatadogAPIClient::V1::SyntheticsAssertionType::RESPONSE_TIME,
120+
target: 1000,
121+
}),
122+
],
123+
request: DatadogAPIClient::V1::SyntheticsTestRequest.new({
124+
host: "troisdizaines.com",
125+
dns_server: "8.8.8.8",
126+
dns_server_port: "53",
127+
}),
128+
}),
129+
DatadogAPIClient::V1::SyntheticsAPITestStep.new({
130+
name: "TCP step",
131+
subtype: DatadogAPIClient::V1::SyntheticsAPITestStepSubtype::TCP,
132+
allow_failure: false,
133+
is_critical: true,
134+
_retry: DatadogAPIClient::V1::SyntheticsTestOptionsRetry.new({
135+
count: 0,
136+
interval: 300,
137+
}),
138+
assertions: [
139+
DatadogAPIClient::V1::SyntheticsAssertionTarget.new({
140+
operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::LESS_THAN,
141+
type: DatadogAPIClient::V1::SyntheticsAssertionType::RESPONSE_TIME,
142+
target: 1000,
143+
}),
144+
],
145+
request: DatadogAPIClient::V1::SyntheticsTestRequest.new({
146+
host: "34.95.79.70",
147+
port: 80,
148+
should_track_hops: true,
149+
timeout: 32,
150+
}),
151+
}),
152+
DatadogAPIClient::V1::SyntheticsAPITestStep.new({
153+
name: "ICMP step",
154+
subtype: DatadogAPIClient::V1::SyntheticsAPITestStepSubtype::ICMP,
155+
allow_failure: false,
156+
is_critical: true,
157+
_retry: DatadogAPIClient::V1::SyntheticsTestOptionsRetry.new({
158+
count: 0,
159+
interval: 300,
160+
}),
161+
assertions: [
162+
DatadogAPIClient::V1::SyntheticsAssertionTarget.new({
163+
operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::IS,
164+
target: 0,
165+
type: DatadogAPIClient::V1::SyntheticsAssertionType::PACKET_LOSS_PERCENTAGE,
166+
}),
167+
],
168+
request: DatadogAPIClient::V1::SyntheticsTestRequest.new({
169+
host: "34.95.79.70",
170+
number_of_packets: 4,
171+
should_track_hops: true,
172+
timeout: 38,
173+
}),
174+
}),
175+
DatadogAPIClient::V1::SyntheticsAPITestStep.new({
176+
name: "Websocket step",
177+
subtype: DatadogAPIClient::V1::SyntheticsAPITestStepSubtype::WEBSOCKET,
178+
allow_failure: false,
179+
is_critical: true,
180+
_retry: DatadogAPIClient::V1::SyntheticsTestOptionsRetry.new({
181+
count: 0,
182+
interval: 300,
183+
}),
184+
assertions: [
185+
DatadogAPIClient::V1::SyntheticsAssertionTarget.new({
186+
operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::LESS_THAN,
187+
type: DatadogAPIClient::V1::SyntheticsAssertionType::RESPONSE_TIME,
188+
target: 1000,
189+
}),
190+
],
191+
request: DatadogAPIClient::V1::SyntheticsTestRequest.new({
192+
url: "ws://34.95.79.70/web-socket",
193+
message: "My message",
194+
headers: {
195+
f: "g",
196+
},
197+
basic_auth: DatadogAPIClient::V1::SyntheticsBasicAuthWeb.new({
198+
type: DatadogAPIClient::V1::SyntheticsBasicAuthWebType::WEB,
199+
username: "user",
200+
password: "password",
201+
}),
202+
}),
203+
}),
204+
DatadogAPIClient::V1::SyntheticsAPITestStep.new({
205+
name: "UDP step",
206+
subtype: DatadogAPIClient::V1::SyntheticsAPITestStepSubtype::UDP,
207+
allow_failure: false,
208+
is_critical: true,
209+
_retry: DatadogAPIClient::V1::SyntheticsTestOptionsRetry.new({
210+
count: 0,
211+
interval: 300,
212+
}),
213+
assertions: [
214+
DatadogAPIClient::V1::SyntheticsAssertionTarget.new({
215+
operator: DatadogAPIClient::V1::SyntheticsAssertionOperator::LESS_THAN,
216+
type: DatadogAPIClient::V1::SyntheticsAssertionType::RESPONSE_TIME,
217+
target: 1000,
218+
}),
219+
],
220+
request: DatadogAPIClient::V1::SyntheticsTestRequest.new({
221+
host: "8.8.8.8",
222+
port: 53,
223+
message: "A image.google.com",
224+
}),
225+
}),
86226
],
87227
}),
88228
locations: [

features/v1/given.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
"parameters": [
251251
{
252252
"name": "body",
253-
"value": "{\n \"config\": {\n \"configVariables\": [\n {\n \"example\": \"content-type\",\n \"name\": \"PROPERTY\",\n \"pattern\": \"content-type\",\n \"type\": \"text\"\n }\n ],\n \"steps\": [\n {\n \"allowFailure\": true,\n \"assertions\": [\n {\n \"operator\": \"is\",\n \"type\": \"statusCode\",\n \"target\": 200\n }\n ],\n \"exitIfSucceed\": true,\n \"extractedValues\": [\n {\n \"field\": \"server\",\n \"name\": \"EXTRACTED_VALUE\",\n \"parser\": {\n \"type\": \"raw\"\n },\n \"type\": \"http_header\",\n \"secure\": true\n }\n ],\n \"isCritical\": true,\n \"name\": \"request is sent\",\n \"request\": {\n \"method\": \"GET\",\n \"timeout\": 10,\n \"url\": \"https://datadoghq.com\",\n \"httpVersion\": \"http2\"\n },\n \"retry\": {\n \"count\": 5,\n \"interval\": 1000\n },\n \"subtype\": \"http\",\n \"extractedValuesFromScript\": \"dd.variable.set('STATUS_CODE', dd.response.statusCode);\"\n },\n {\n \"name\": \"Wait\",\n \"subtype\": \"wait\",\n \"value\": 1\n },\n {\n \"name\": \"GRPC CALL\",\n \"subtype\": \"grpc\",\n \"extractedValues\": [],\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"grpcbin.test.k6.io\",\n \"port\": 9000,\n \"service\": \"grpcbin.GRPCBin\",\n \"method\": \"Index\",\n \"message\": \"{}\",\n \"compressedJsonDescriptor\": \"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==\",\n \"metadata\": {},\n \"callType\": \"unary\"\n }\n }\n ]\n },\n \"locations\": [\"aws:us-east-2\"],\n \"message\": \"BDD test payload: synthetics_api_test_multi_step_payload.json\",\n \"name\": \"{{ unique }}\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": true,\n \"follow_redirects\": true,\n \"min_failure_duration\": 10,\n \"min_location_failed\": 1,\n \"monitor_name\": \"{{ unique }}\",\n \"monitor_priority\": 5,\n \"retry\": { \"count\": 3, \"interval\": 1000 },\n \"tick_every\": 60\n },\n \"subtype\": \"multi\",\n \"tags\": [\"testing:api\"],\n \"type\": \"api\"\n}\n"
253+
"value": "{\n \"config\": {\n \"configVariables\": [\n {\n \"example\": \"content-type\",\n \"name\": \"PROPERTY\",\n \"pattern\": \"content-type\",\n \"type\": \"text\"\n }\n ],\n \"steps\": [\n {\n \"allowFailure\": true,\n \"assertions\": [\n {\n \"operator\": \"is\",\n \"type\": \"statusCode\",\n \"target\": 200\n }\n ],\n \"exitIfSucceed\": true,\n \"extractedValues\": [\n {\n \"field\": \"server\",\n \"name\": \"EXTRACTED_VALUE\",\n \"parser\": {\n \"type\": \"raw\"\n },\n \"type\": \"http_header\",\n \"secure\": true\n }\n ],\n \"isCritical\": true,\n \"name\": \"request is sent\",\n \"request\": {\n \"method\": \"GET\",\n \"timeout\": 10,\n \"url\": \"https://datadoghq.com\",\n \"httpVersion\": \"http2\"\n },\n \"retry\": {\n \"count\": 5,\n \"interval\": 1000\n },\n \"subtype\": \"http\",\n \"extractedValuesFromScript\": \"dd.variable.set('STATUS_CODE', dd.response.statusCode);\"\n },\n {\n \"name\": \"Wait\",\n \"subtype\": \"wait\",\n \"value\": 1\n },\n {\n \"name\": \"GRPC CALL\",\n \"subtype\": \"grpc\",\n \"extractedValues\": [],\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"grpcbin.test.k6.io\",\n \"port\": 9000,\n \"service\": \"grpcbin.GRPCBin\",\n \"method\": \"Index\",\n \"message\": \"{}\",\n \"compressedJsonDescriptor\": \"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==\",\n \"metadata\": {},\n \"callType\": \"unary\"\n }\n },\n {\n \"name\": \"SSL step\",\n \"subtype\": \"ssl\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": { \"count\": 0, \"interval\": 300 },\n \"assertions\": [\n { \"operator\": \"isInMoreThan\", \"type\": \"certificate\", \"target\": 10 }\n ],\n \"request\": {\n \"host\": \"example.org\",\n \"port\": 443\n }\n },\n {\n \"name\": \"DNS step\",\n \"subtype\": \"dns\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": { \"count\": 0, \"interval\": 300 },\n \"assertions\": [\n { \"operator\": \"lessThan\", \"type\": \"responseTime\", \"target\": 1000 }\n ],\n \"request\": {\n \"host\": \"troisdizaines.com\",\n \"dnsServer\": \"8.8.8.8\",\n \"dnsServerPort\": \"53\"\n }\n },\n {\n \"name\": \"TCP step\",\n \"subtype\": \"tcp\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": { \"count\": 0, \"interval\": 300 },\n \"assertions\": [\n { \"operator\": \"lessThan\", \"type\": \"responseTime\", \"target\": 1000 }\n ],\n \"request\": {\n \"host\": \"34.95.79.70\",\n \"port\": 80,\n \"shouldTrackHops\": true,\n \"timeout\": 32\n }\n },\n {\n \"name\": \"ICMP step\",\n \"subtype\": \"icmp\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": { \"count\": 0, \"interval\": 300 },\n \"assertions\": [\n { \"operator\": \"is\", \"target\": 0, \"type\": \"packetLossPercentage\" }\n ],\n \"request\": {\n \"host\": \"34.95.79.70\",\n \"numberOfPackets\": 4,\n \"shouldTrackHops\": true,\n \"timeout\": 38\n }\n },\n {\n \"name\": \"Websocket step\",\n \"subtype\": \"websocket\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": { \"count\": 0, \"interval\": 300 },\n \"assertions\": [\n { \"operator\": \"lessThan\", \"type\": \"responseTime\", \"target\": 1000 }\n ],\n \"request\": {\n \"url\": \"ws://34.95.79.70/web-socket\",\n \"message\": \"My message\",\n \"headers\": { \"f\": \"g\" },\n \"basicAuth\": {\n \"type\": \"web\",\n \"username\": \"user\",\n \"password\": \"password\"\n }\n }\n },\n {\n \"name\": \"UDP step\",\n \"subtype\": \"udp\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": { \"count\": 0, \"interval\": 300 },\n \"assertions\": [\n { \"operator\": \"lessThan\", \"type\": \"responseTime\", \"target\": 1000 }\n ],\n \"request\": {\n \"host\": \"8.8.8.8\",\n \"port\": 53,\n \"message\": \"A image.google.com\"\n }\n }\n ]\n },\n \"locations\": [\"aws:us-east-2\"],\n \"message\": \"BDD test payload: synthetics_api_test_multi_step_payload.json\",\n \"name\": \"{{ unique }}\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": true,\n \"follow_redirects\": true,\n \"min_failure_duration\": 10,\n \"min_location_failed\": 1,\n \"monitor_name\": \"{{ unique }}\",\n \"monitor_priority\": 5,\n \"retry\": { \"count\": 3, \"interval\": 1000 },\n \"tick_every\": 60\n },\n \"subtype\": \"multi\",\n \"tags\": [\"testing:api\"],\n \"type\": \"api\"\n}\n"
254254
}
255255
],
256256
"step": "there is a valid \"synthetics_api_test_multi_step\" in the system",

features/v1/synthetics.feature

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,24 @@ Feature: Synthetics
302302
And the response "config.steps[1].subtype" is equal to "wait"
303303
And the response "config.steps[1].value" is equal to 1
304304
And the response "config.steps[2].request.host" is equal to "grpcbin.test.k6.io"
305-
And the response "config.steps[2].request.host" is equal to "grpcbin.test.k6.io"
305+
And the response "config.steps[3].subtype" is equal to "ssl"
306+
And the response "config.steps[3].request.host" is equal to "example.org"
307+
And the response "config.steps[3].request.port" is equal to 443
308+
And the response "config.steps[4].subtype" is equal to "dns"
309+
And the response "config.steps[4].request.host" is equal to "troisdizaines.com"
310+
And the response "config.steps[4].request.dnsServer" is equal to "8.8.8.8"
311+
And the response "config.steps[4].request.dnsServerPort" is equal to "53"
312+
And the response "config.steps[5].subtype" is equal to "tcp"
313+
And the response "config.steps[5].request.host" is equal to "34.95.79.70"
314+
And the response "config.steps[5].request.shouldTrackHops" is equal to true
315+
And the response "config.steps[6].subtype" is equal to "icmp"
316+
And the response "config.steps[6].request.host" is equal to "34.95.79.70"
317+
And the response "config.steps[6].request.numberOfPackets" is equal to 4
318+
And the response "config.steps[7].subtype" is equal to "websocket"
319+
And the response "config.steps[7].request.url" is equal to "ws://34.95.79.70/web-socket"
320+
And the response "config.steps[7].request.message" is equal to "My message"
321+
And the response "config.steps[8].subtype" is equal to "udp"
322+
And the response "config.steps[8].request.host" is equal to "8.8.8.8"
306323

307324
@generated @skip @team:DataDog/synthetics-ct
308325
Scenario: Delete a global variable returns "JSON format is wrong" response

0 commit comments

Comments
 (0)