Skip to content

Commit 2809020

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 266da8c of spec repo (#3250)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent bd73925 commit 2809020

File tree

6 files changed

+42
-11
lines changed

6 files changed

+42
-11
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52651,6 +52651,9 @@ components:
5265152651
modifiedAt:
5265252652
description: Last modification time of the job.
5265352653
type: string
52654+
signalOutput:
52655+
description: Whether the job outputs signals.
52656+
type: boolean
5265452657
type: object
5265552658
ThreatHuntingJobResponseData:
5265652659
description: Threat hunting job response data.

src/main/java/com/datadog/api/client/v2/model/ThreatHuntingJobResponseAttributes.java

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
ThreatHuntingJobResponseAttributes.JSON_PROPERTY_JOB_DEFINITION,
2626
ThreatHuntingJobResponseAttributes.JSON_PROPERTY_JOB_NAME,
2727
ThreatHuntingJobResponseAttributes.JSON_PROPERTY_JOB_STATUS,
28-
ThreatHuntingJobResponseAttributes.JSON_PROPERTY_MODIFIED_AT
28+
ThreatHuntingJobResponseAttributes.JSON_PROPERTY_MODIFIED_AT,
29+
ThreatHuntingJobResponseAttributes.JSON_PROPERTY_SIGNAL_OUTPUT
2930
})
3031
@jakarta.annotation.Generated(
3132
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -55,6 +56,9 @@ public class ThreatHuntingJobResponseAttributes {
5556
public static final String JSON_PROPERTY_MODIFIED_AT = "modifiedAt";
5657
private String modifiedAt;
5758

59+
public static final String JSON_PROPERTY_SIGNAL_OUTPUT = "signalOutput";
60+
private Boolean signalOutput;
61+
5862
public ThreatHuntingJobResponseAttributes createdAt(String createdAt) {
5963
this.createdAt = createdAt;
6064
return this;
@@ -224,6 +228,27 @@ public void setModifiedAt(String modifiedAt) {
224228
this.modifiedAt = modifiedAt;
225229
}
226230

231+
public ThreatHuntingJobResponseAttributes signalOutput(Boolean signalOutput) {
232+
this.signalOutput = signalOutput;
233+
return this;
234+
}
235+
236+
/**
237+
* Whether the job outputs signals.
238+
*
239+
* @return signalOutput
240+
*/
241+
@jakarta.annotation.Nullable
242+
@JsonProperty(JSON_PROPERTY_SIGNAL_OUTPUT)
243+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
244+
public Boolean getSignalOutput() {
245+
return signalOutput;
246+
}
247+
248+
public void setSignalOutput(Boolean signalOutput) {
249+
this.signalOutput = signalOutput;
250+
}
251+
227252
/**
228253
* A container for additional, undeclared properties. This is a holder for any undeclared
229254
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -290,6 +315,7 @@ public boolean equals(Object o) {
290315
&& Objects.equals(this.jobName, threatHuntingJobResponseAttributes.jobName)
291316
&& Objects.equals(this.jobStatus, threatHuntingJobResponseAttributes.jobStatus)
292317
&& Objects.equals(this.modifiedAt, threatHuntingJobResponseAttributes.modifiedAt)
318+
&& Objects.equals(this.signalOutput, threatHuntingJobResponseAttributes.signalOutput)
293319
&& Objects.equals(
294320
this.additionalProperties, threatHuntingJobResponseAttributes.additionalProperties);
295321
}
@@ -305,6 +331,7 @@ public int hashCode() {
305331
jobName,
306332
jobStatus,
307333
modifiedAt,
334+
signalOutput,
308335
additionalProperties);
309336
}
310337

@@ -320,6 +347,7 @@ public String toString() {
320347
sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n");
321348
sb.append(" jobStatus: ").append(toIndentedString(jobStatus)).append("\n");
322349
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
350+
sb.append(" signalOutput: ").append(toIndentedString(signalOutput)).append("\n");
323351
sb.append(" additionalProperties: ")
324352
.append(toIndentedString(additionalProperties))
325353
.append("\n");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-24T14:24:01.707Z
1+
2025-11-11T21:36:52.314Z

src/test/resources/cassettes/features/v2/Get_a_job_s_details_returns_OK_response.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"data\":{\"id\":\"071b3516-4072-44d9-9288-d4adaa1db921\",\"type\":\"historicalDetectionsJob\"}}",
15+
"body": "{\"data\":{\"id\":\"66896986-212c-4e6c-9890-14e5cfd0fc19\",\"type\":\"historicalDetectionsJob\"}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/vnd.api+json"
@@ -33,12 +33,12 @@
3333
"httpRequest": {
3434
"headers": {},
3535
"method": "GET",
36-
"path": "/api/v2/siem-threat-hunting/jobs/071b3516-4072-44d9-9288-d4adaa1db921",
36+
"path": "/api/v2/siem-threat-hunting/jobs/66896986-212c-4e6c-9890-14e5cfd0fc19",
3737
"keepAlive": false,
3838
"secure": true
3939
},
4040
"httpResponse": {
41-
"body": "{\"data\":{\"id\":\"071b3516-4072-44d9-9288-d4adaa1db921\",\"type\":\"historicalDetectionsJob\",\"attributes\":{\"createdAt\":\"2025-10-24 14:24:02.057923+00\",\"createdByHandle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"createdByName\":\"CI Account\",\"jobDefinition\":{\"from\":1730387522611,\"to\":1730387532611,\"index\":\"main\",\"name\":\"Excessive number of failed attempts.\",\"cases\":[{\"name\":\"Condition 1\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 1\"}],\"queries\":[{\"query\":\"source:non_existing_src_weekend\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"message\":\"A large number of failed login attempts.\",\"tags\":[],\"type\":\"log_detection\"},\"jobName\":\"Excessive number of failed attempts.\",\"jobStatus\":\"pending\",\"modifiedAt\":\"2025-10-24 14:24:02.057923+00\"}}}",
41+
"body": "{\"data\":{\"id\":\"66896986-212c-4e6c-9890-14e5cfd0fc19\",\"type\":\"historicalDetectionsJob\",\"attributes\":{\"createdAt\":\"2025-11-11 21:36:52.581297+00\",\"createdByHandle\":\"[email protected]\",\"createdByName\":\"frog\",\"jobDefinition\":{\"from\":1730387522611,\"to\":1730387532611,\"index\":\"main\",\"name\":\"Excessive number of failed attempts.\",\"cases\":[{\"name\":\"Condition 1\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 1\"}],\"queries\":[{\"query\":\"source:non_existing_src_weekend\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"message\":\"A large number of failed login attempts.\",\"tags\":[],\"type\":\"log_detection\"},\"jobName\":\"Excessive number of failed attempts.\",\"jobStatus\":\"pending\",\"modifiedAt\":\"2025-11-11 21:36:52.581297+00\",\"signalOutput\":false}}}",
4242
"headers": {
4343
"Content-Type": [
4444
"application/vnd.api+json"
@@ -53,6 +53,6 @@
5353
"timeToLive": {
5454
"unlimited": true
5555
},
56-
"id": "08901fdd-0425-df60-dbde-e039f0e4a4dc"
56+
"id": "288fd23d-8d2d-2972-e670-accb59b90273"
5757
}
5858
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-24T14:24:02.188Z
1+
2025-11-11T21:36:57.169Z

src/test/resources/cassettes/features/v2/List_historical_jobs_returns_OK_response.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"data\":{\"id\":\"e935c6c8-ba76-4ebf-8770-bb772a5ec1ed\",\"type\":\"historicalDetectionsJob\"}}",
15+
"body": "{\"data\":{\"id\":\"c3564eed-ff70-43e1-ab6f-593de95bd21f\",\"type\":\"historicalDetectionsJob\"}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/vnd.api+json"
@@ -36,14 +36,14 @@
3636
"path": "/api/v2/siem-threat-hunting/jobs",
3737
"queryStringParameters": {
3838
"filter[query]": [
39-
"id:e935c6c8-ba76-4ebf-8770-bb772a5ec1ed"
39+
"id:c3564eed-ff70-43e1-ab6f-593de95bd21f"
4040
]
4141
},
4242
"keepAlive": false,
4343
"secure": true
4444
},
4545
"httpResponse": {
46-
"body": "{\"data\":[{\"id\":\"e935c6c8-ba76-4ebf-8770-bb772a5ec1ed\",\"type\":\"historicalDetectionsJob\",\"attributes\":{\"createdAt\":\"2025-10-24 14:24:02.256887+00\",\"createdByHandle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"createdByName\":\"CI Account\",\"jobDefinition\":{\"from\":1730387522611,\"to\":1730387532611,\"index\":\"main\",\"name\":\"Excessive number of failed attempts.\",\"cases\":[{\"name\":\"Condition 1\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 1\"}],\"queries\":[{\"query\":\"source:non_existing_src_weekend\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"message\":\"A large number of failed login attempts.\",\"tags\":[],\"type\":\"log_detection\"},\"jobName\":\"Excessive number of failed attempts.\",\"jobStatus\":\"pending\",\"modifiedAt\":\"2025-10-24 14:24:02.256887+00\"}}],\"meta\":{\"totalCount\":1}}",
46+
"body": "{\"data\":[{\"id\":\"c3564eed-ff70-43e1-ab6f-593de95bd21f\",\"type\":\"historicalDetectionsJob\",\"attributes\":{\"createdAt\":\"2025-11-11 21:36:57.303304+00\",\"createdByHandle\":\"[email protected]\",\"createdByName\":\"frog\",\"jobDefinition\":{\"from\":1730387522611,\"to\":1730387532611,\"index\":\"main\",\"name\":\"Excessive number of failed attempts.\",\"cases\":[{\"name\":\"Condition 1\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 1\"}],\"queries\":[{\"query\":\"source:non_existing_src_weekend\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"message\":\"A large number of failed login attempts.\",\"tags\":[],\"type\":\"log_detection\"},\"jobName\":\"Excessive number of failed attempts.\",\"jobStatus\":\"pending\",\"modifiedAt\":\"2025-11-11 21:36:57.303304+00\",\"signalOutput\":false}}],\"meta\":{\"totalCount\":1}}",
4747
"headers": {
4848
"Content-Type": [
4949
"application/vnd.api+json"
@@ -58,6 +58,6 @@
5858
"timeToLive": {
5959
"unlimited": true
6060
},
61-
"id": "4f7ef994-a9ff-2d13-c407-4a6f863a4781"
61+
"id": "090b338f-d46d-e262-2121-9c7100f90835"
6262
}
6363
]

0 commit comments

Comments
 (0)