Skip to content

Commit 3ebbfe1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 932d2fa1 of spec repo
1 parent 65aeae8 commit 3ebbfe1

15 files changed

+327
-51
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-27 17:12:14.968856",
8-
"spec_repo_commit": "ed439f7c"
7+
"regenerated": "2025-05-28 13:17:46.801340",
8+
"spec_repo_commit": "932d2fa1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 17:12:14.988382",
13-
"spec_repo_commit": "ed439f7c"
12+
"regenerated": "2025-05-28 13:17:46.819360",
13+
"spec_repo_commit": "932d2fa1"
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: 144 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
import com.datadog.api.client.v1.model.SyntheticsAssertionTarget;
1717
import com.datadog.api.client.v1.model.SyntheticsAssertionTargetValue;
1818
import com.datadog.api.client.v1.model.SyntheticsAssertionType;
19+
import com.datadog.api.client.v1.model.SyntheticsBasicAuth;
20+
import com.datadog.api.client.v1.model.SyntheticsBasicAuthWeb;
21+
import com.datadog.api.client.v1.model.SyntheticsBasicAuthWebType;
1922
import com.datadog.api.client.v1.model.SyntheticsConfigVariable;
2023
import com.datadog.api.client.v1.model.SyntheticsConfigVariableType;
2124
import com.datadog.api.client.v1.model.SyntheticsGlobalVariableParserType;
@@ -122,7 +125,147 @@ public static void main(String[] args) {
122125
.compressedJsonDescriptor(
123126
"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==")
124127
.metadata(Map.ofEntries())
125-
.callType(SyntheticsTestCallType.UNARY))))))
128+
.callType(SyntheticsTestCallType.UNARY))),
129+
new SyntheticsAPIStep(
130+
new SyntheticsAPITestStep()
131+
.name("SSL step")
132+
.subtype(SyntheticsAPITestStepSubtype.SSL)
133+
.allowFailure(false)
134+
.isCritical(true)
135+
.retry(
136+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
137+
.assertions(
138+
Collections.singletonList(
139+
new SyntheticsAssertion(
140+
new SyntheticsAssertionTarget()
141+
.operator(
142+
SyntheticsAssertionOperator
143+
.IS_IN_MORE_DAYS_THAN)
144+
.type(SyntheticsAssertionType.CERTIFICATE)
145+
.target(
146+
new SyntheticsAssertionTargetValue(10.0)))))
147+
.request(
148+
new SyntheticsTestRequest()
149+
.host("example.org")
150+
.port(new SyntheticsTestRequestPort(443L)))),
151+
new SyntheticsAPIStep(
152+
new SyntheticsAPITestStep()
153+
.name("DNS step")
154+
.subtype(SyntheticsAPITestStepSubtype.DNS)
155+
.allowFailure(false)
156+
.isCritical(true)
157+
.retry(
158+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
159+
.assertions(
160+
Collections.singletonList(
161+
new SyntheticsAssertion(
162+
new SyntheticsAssertionTarget()
163+
.operator(SyntheticsAssertionOperator.LESS_THAN)
164+
.type(SyntheticsAssertionType.RESPONSE_TIME)
165+
.target(
166+
new SyntheticsAssertionTargetValue(
167+
1000.0)))))
168+
.request(
169+
new SyntheticsTestRequest()
170+
.host("troisdizaines.com")
171+
.dnsServer("8.8.8.8")
172+
.dnsServerPort("53"))),
173+
new SyntheticsAPIStep(
174+
new SyntheticsAPITestStep()
175+
.name("TCP step")
176+
.subtype(SyntheticsAPITestStepSubtype.TCP)
177+
.allowFailure(false)
178+
.isCritical(true)
179+
.retry(
180+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
181+
.assertions(
182+
Collections.singletonList(
183+
new SyntheticsAssertion(
184+
new SyntheticsAssertionTarget()
185+
.operator(SyntheticsAssertionOperator.LESS_THAN)
186+
.type(SyntheticsAssertionType.RESPONSE_TIME)
187+
.target(
188+
new SyntheticsAssertionTargetValue(
189+
1000.0)))))
190+
.request(
191+
new SyntheticsTestRequest()
192+
.host("34.95.79.70")
193+
.port(new SyntheticsTestRequestPort(80L))
194+
.shouldTrackHops(true)
195+
.timeout(32.0))),
196+
new SyntheticsAPIStep(
197+
new SyntheticsAPITestStep()
198+
.name("ICMP step")
199+
.subtype(SyntheticsAPITestStepSubtype.ICMP)
200+
.allowFailure(false)
201+
.isCritical(true)
202+
.retry(
203+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
204+
.assertions(
205+
Collections.singletonList(
206+
new SyntheticsAssertion(
207+
new SyntheticsAssertionTarget()
208+
.operator(SyntheticsAssertionOperator.IS)
209+
.target(new SyntheticsAssertionTargetValue(0.0))
210+
.type(
211+
SyntheticsAssertionType
212+
.PACKET_LOSS_PERCENTAGE))))
213+
.request(
214+
new SyntheticsTestRequest()
215+
.host("34.95.79.70")
216+
.numberOfPackets(4)
217+
.shouldTrackHops(true)
218+
.timeout(38.0))),
219+
new SyntheticsAPIStep(
220+
new SyntheticsAPITestStep()
221+
.name("Websocket step")
222+
.subtype(SyntheticsAPITestStepSubtype.WEBSOCKET)
223+
.allowFailure(false)
224+
.isCritical(true)
225+
.retry(
226+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
227+
.assertions(
228+
Collections.singletonList(
229+
new SyntheticsAssertion(
230+
new SyntheticsAssertionTarget()
231+
.operator(SyntheticsAssertionOperator.LESS_THAN)
232+
.type(SyntheticsAssertionType.RESPONSE_TIME)
233+
.target(
234+
new SyntheticsAssertionTargetValue(
235+
1000.0)))))
236+
.request(
237+
new SyntheticsTestRequest()
238+
.url("ws://34.95.79.70/web-socket")
239+
.message("My message")
240+
.headers(Map.ofEntries(Map.entry("f", "g")))
241+
.basicAuth(
242+
new SyntheticsBasicAuth(
243+
new SyntheticsBasicAuthWeb()
244+
.type(SyntheticsBasicAuthWebType.WEB)
245+
.username("user")
246+
.password("password"))))),
247+
new SyntheticsAPIStep(
248+
new SyntheticsAPITestStep()
249+
.name("UDP step")
250+
.subtype(SyntheticsAPITestStepSubtype.UDP)
251+
.allowFailure(false)
252+
.isCritical(true)
253+
.retry(
254+
new SyntheticsTestOptionsRetry().count(0L).interval(300.0))
255+
.assertions(
256+
Collections.singletonList(
257+
new SyntheticsAssertion(
258+
new SyntheticsAssertionTarget()
259+
.operator(SyntheticsAssertionOperator.LESS_THAN)
260+
.type(SyntheticsAssertionType.RESPONSE_TIME)
261+
.target(
262+
new SyntheticsAssertionTargetValue(
263+
1000.0)))))
264+
.request(
265+
new SyntheticsTestRequest()
266+
.host("8.8.8.8")
267+
.port(new SyntheticsTestRequestPort(53L))
268+
.message("A image.google.com"))))))
126269
.locations(Collections.singletonList("aws:us-east-2"))
127270
.message("BDD test payload: synthetics_api_test_multi_step_payload.json")
128271
.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)