Skip to content

Commit 840becf

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 76bd837b of spec repo
1 parent 63ce0a5 commit 840becf

15 files changed

Lines changed: 318 additions & 51 deletions

.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-20 07:21:26.115507",
8-
"spec_repo_commit": "fec20f97"
7+
"regenerated": "2025-05-21 08:37:48.574271",
8+
"spec_repo_commit": "76bd837b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-20 07:21:26.131253",
13-
"spec_repo_commit": "fec20f97"
12+
"regenerated": "2025-05-21 08:37:48.596980",
13+
"spec_repo_commit": "76bd837b"
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.java

Lines changed: 135 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
import com.datadog.api.client.v1.model.SyntheticsAssertionOperator;
1616
import com.datadog.api.client.v1.model.SyntheticsAssertionTarget;
1717
import com.datadog.api.client.v1.model.SyntheticsAssertionType;
18+
import com.datadog.api.client.v1.model.SyntheticsBasicAuth;
19+
import com.datadog.api.client.v1.model.SyntheticsBasicAuthWeb;
20+
import com.datadog.api.client.v1.model.SyntheticsBasicAuthWebType;
1821
import com.datadog.api.client.v1.model.SyntheticsConfigVariable;
1922
import com.datadog.api.client.v1.model.SyntheticsConfigVariableType;
2023
import com.datadog.api.client.v1.model.SyntheticsGlobalVariableParserType;
@@ -117,7 +120,138 @@ public static void main(String[] args) {
117120
.compressedJsonDescriptor(
118121
"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==")
119122
.metadata(Map.ofEntries())
120-
.callType(SyntheticsTestCallType.UNARY))))))
123+
.callType(SyntheticsTestCallType.UNARY))),
124+
new SyntheticsAPIStep(
125+
new SyntheticsAPITestStep()
126+
.name("SSL step")
127+
.subtype(SyntheticsAPITestStepSubtype.SSL)
128+
.allowFailure(false)
129+
.isCritical(true)
130+
.retry(
131+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
132+
.assertions(
133+
Collections.singletonList(
134+
new SyntheticsAssertion(
135+
new SyntheticsAssertionTarget()
136+
.operator(
137+
SyntheticsAssertionOperator
138+
.IS_IN_MORE_DAYS_THAN)
139+
.type(SyntheticsAssertionType.CERTIFICATE)
140+
.target(10))))
141+
.request(
142+
new SyntheticsTestRequest()
143+
.host("example.org")
144+
.port(new SyntheticsTestRequestPort(443L)))),
145+
new SyntheticsAPIStep(
146+
new SyntheticsAPITestStep()
147+
.name("DNS step")
148+
.subtype(SyntheticsAPITestStepSubtype.DNS)
149+
.allowFailure(false)
150+
.isCritical(true)
151+
.retry(
152+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
153+
.assertions(
154+
Collections.singletonList(
155+
new SyntheticsAssertion(
156+
new SyntheticsAssertionTarget()
157+
.operator(SyntheticsAssertionOperator.LESS_THAN)
158+
.type(SyntheticsAssertionType.RESPONSE_TIME)
159+
.target(1000))))
160+
.request(
161+
new SyntheticsTestRequest()
162+
.host("troisdizaines.com")
163+
.dnsServer("8.8.8.8")
164+
.dnsServerPort("53"))),
165+
new SyntheticsAPIStep(
166+
new SyntheticsAPITestStep()
167+
.name("TCP step")
168+
.subtype(SyntheticsAPITestStepSubtype.TCP)
169+
.allowFailure(false)
170+
.isCritical(true)
171+
.retry(
172+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
173+
.assertions(
174+
Collections.singletonList(
175+
new SyntheticsAssertion(
176+
new SyntheticsAssertionTarget()
177+
.operator(SyntheticsAssertionOperator.LESS_THAN)
178+
.type(SyntheticsAssertionType.RESPONSE_TIME)
179+
.target(1000))))
180+
.request(
181+
new SyntheticsTestRequest()
182+
.host("34.95.79.70")
183+
.port(new SyntheticsTestRequestPort(80L))
184+
.shouldTrackHops(true)
185+
.timeout(32.0))),
186+
new SyntheticsAPIStep(
187+
new SyntheticsAPITestStep()
188+
.name("ICMP step")
189+
.subtype(SyntheticsAPITestStepSubtype.ICMP)
190+
.allowFailure(false)
191+
.isCritical(true)
192+
.retry(
193+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
194+
.assertions(
195+
Collections.singletonList(
196+
new SyntheticsAssertion(
197+
new SyntheticsAssertionTarget()
198+
.operator(SyntheticsAssertionOperator.IS)
199+
.target(0)
200+
.type(
201+
SyntheticsAssertionType
202+
.PACKET_LOSS_PERCENTAGE))))
203+
.request(
204+
new SyntheticsTestRequest()
205+
.host("34.95.79.70")
206+
.numberOfPackets(4)
207+
.shouldTrackHops(true)
208+
.timeout(38.0))),
209+
new SyntheticsAPIStep(
210+
new SyntheticsAPITestStep()
211+
.name("Websocket step")
212+
.subtype(SyntheticsAPITestStepSubtype.WEBSOCKET)
213+
.allowFailure(false)
214+
.isCritical(true)
215+
.retry(
216+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
217+
.assertions(
218+
Collections.singletonList(
219+
new SyntheticsAssertion(
220+
new SyntheticsAssertionTarget()
221+
.operator(SyntheticsAssertionOperator.LESS_THAN)
222+
.type(SyntheticsAssertionType.RESPONSE_TIME)
223+
.target(1000))))
224+
.request(
225+
new SyntheticsTestRequest()
226+
.url("ws://34.95.79.70/web-socket")
227+
.message("My message")
228+
.headers(Map.ofEntries(Map.entry("f", "g")))
229+
.basicAuth(
230+
new SyntheticsBasicAuth(
231+
new SyntheticsBasicAuthWeb()
232+
.type(SyntheticsBasicAuthWebType.WEB)
233+
.username("user")
234+
.password("password"))))),
235+
new SyntheticsAPIStep(
236+
new SyntheticsAPITestStep()
237+
.name("UDP step")
238+
.subtype(SyntheticsAPITestStepSubtype.UDP)
239+
.allowFailure(false)
240+
.isCritical(true)
241+
.retry(
242+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
243+
.assertions(
244+
Collections.singletonList(
245+
new SyntheticsAssertion(
246+
new SyntheticsAssertionTarget()
247+
.operator(SyntheticsAssertionOperator.LESS_THAN)
248+
.type(SyntheticsAssertionType.RESPONSE_TIME)
249+
.target(1000))))
250+
.request(
251+
new SyntheticsTestRequest()
252+
.host("8.8.8.8")
253+
.port(new SyntheticsTestRequestPort(53L))
254+
.message("A image.google.com"))))))
121255
.locations(Collections.singletonList("aws:us-east-2"))
122256
.message("BDD test payload: synthetics_api_test_multi_step_payload.json")
123257
.name("Example-Synthetic")

src/main/java/com/datadog/api/client/v1/model/SyntheticsAPITestStepSubtype.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@
2323
public class SyntheticsAPITestStepSubtype extends ModelEnum<String> {
2424

2525
private static final Set<String> allowedValues =
26-
new HashSet<String>(Arrays.asList("http", "grpc"));
26+
new HashSet<String>(
27+
Arrays.asList("http", "grpc", "ssl", "dns", "tcp", "udp", "icmp", "websocket"));
2728

2829
public static final SyntheticsAPITestStepSubtype HTTP = new SyntheticsAPITestStepSubtype("http");
2930
public static final SyntheticsAPITestStepSubtype GRPC = new SyntheticsAPITestStepSubtype("grpc");
31+
public static final SyntheticsAPITestStepSubtype SSL = new SyntheticsAPITestStepSubtype("ssl");
32+
public static final SyntheticsAPITestStepSubtype DNS = new SyntheticsAPITestStepSubtype("dns");
33+
public static final SyntheticsAPITestStepSubtype TCP = new SyntheticsAPITestStepSubtype("tcp");
34+
public static final SyntheticsAPITestStepSubtype UDP = new SyntheticsAPITestStepSubtype("udp");
35+
public static final SyntheticsAPITestStepSubtype ICMP = new SyntheticsAPITestStepSubtype("icmp");
36+
public static final SyntheticsAPITestStepSubtype WEBSOCKET =
37+
new SyntheticsAPITestStepSubtype("websocket");
3038

3139
SyntheticsAPITestStepSubtype(String value) {
3240
super(value, allowedValues);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-25T16:34:23.928Z
1+
2025-05-20T15:08:23.475Z

0 commit comments

Comments
 (0)