Skip to content

Commit cbc99a5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cd7f8f6 of spec repo
1 parent 6a05bef commit cbc99a5

8 files changed

Lines changed: 404 additions & 75 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 57 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18908,9 +18908,6 @@ components:
1890818908
ConvertJobResultsToSignalsAttributes:
1890918909
description: Attributes for converting historical job results to signals.
1891018910
properties:
18911-
id:
18912-
description: Request ID.
18913-
type: string
1891418911
jobResultIds:
1891518912
description: Job result IDs.
1891618913
example:
@@ -37540,10 +37537,34 @@ components:
3754037537
HistoricalJobQuery:
3754137538
description: Query for selecting logs analyzed by the historical job.
3754237539
properties:
37540+
additionalFilters:
37541+
description: Additional filters appended to the query at evaluation time.
37542+
type: string
3754337543
aggregation:
3754437544
$ref: "#/components/schemas/SecurityMonitoringRuleQueryAggregation"
37545+
correlatedByFields:
37546+
description: Fields used to correlate results across queries in sequence detection rules.
37547+
items:
37548+
description: Field.
37549+
type: string
37550+
type: array
37551+
correlatedQueryIndex:
37552+
description: Zero-based index of the query to correlate with in sequence detection rules. Up to 10 queries are supported, so valid values are 0 to 9.
37553+
format: int64
37554+
maximum: 9
37555+
minimum: 0
37556+
type: integer
37557+
customQueryExtension:
37558+
description: Custom query extension used to refine the base query.
37559+
type: string
3754537560
dataSource:
3754637561
$ref: "#/components/schemas/SecurityMonitoringStandardDataSource"
37562+
datasetIds:
37563+
description: IDs of reference datasets used by this query.
37564+
items:
37565+
description: Dataset ID.
37566+
type: string
37567+
type: array
3754737568
distinctFields:
3754837569
description: Field for which the cardinality is measured. Sent as an array.
3754937570
items:
@@ -37561,6 +37582,15 @@ components:
3756137582
description: When false, events without a group-by value are ignored by the query. When true, events with missing group-by fields are processed with `N/A`, replacing the missing values.
3756237583
example: false
3756337584
type: boolean
37585+
index:
37586+
description: Index used to load the data for this query.
37587+
type: string
37588+
indexes:
37589+
description: Indexes used to load the data for this query. Mutually exclusive with `index`.
37590+
items:
37591+
description: Index name.
37592+
type: string
37593+
type: array
3756437594
metrics:
3756537595
description: Group of target fields to aggregate over when using the sum, max, geo data, or new value aggregations. The sum, max, and geo data aggregations only accept one value in this list, whereas the new value aggregation accepts up to five values.
3756637596
items:
@@ -37574,6 +37604,9 @@ components:
3757437604
description: Query to run on logs.
3757537605
example: a > 3
3757637606
type: string
37607+
queryLanguage:
37608+
description: Language used to parse the query string.
37609+
type: string
3757737610
type: object
3757837611
HistoricalJobResponse:
3757937612
description: Historical job response.
@@ -37607,6 +37640,10 @@ components:
3760737640
modifiedAt:
3760837641
description: Last modification time of the job.
3760937642
type: string
37643+
progressRate:
37644+
description: Job execution progress as a value between 0 and 1. Omitted for finished jobs.
37645+
format: double
37646+
type: number
3761037647
signalOutput:
3761137648
description: Whether the job outputs signals.
3761237649
type: boolean
@@ -43137,9 +43174,10 @@ components:
4313743174
$ref: "#/components/schemas/CalculatedField"
4313843175
type: array
4313943176
cases:
43140-
description: Cases used for generating job results.
43177+
description: Cases used for generating job results. Up to 10 cases are allowed.
4314143178
items:
4314243179
$ref: "#/components/schemas/SecurityMonitoringRuleCaseCreate"
43180+
maxItems: 10
4314343181
type: array
4314443182
from:
4314543183
description: Starting time of data analyzed by the job.
@@ -43169,9 +43207,10 @@ components:
4316943207
options:
4317043208
$ref: "#/components/schemas/HistoricalJobOptions"
4317143209
queries:
43172-
description: Queries for selecting logs analyzed by the job.
43210+
description: Queries for selecting logs analyzed by the job. Up to 10 queries are allowed.
4317343211
items:
4317443212
$ref: "#/components/schemas/HistoricalJobQuery"
43213+
maxItems: 10
4317543214
type: array
4317643215
referenceTables:
4317743216
description: Reference tables used in the queries.
@@ -43185,10 +43224,11 @@ components:
4318543224
type: string
4318643225
type: array
4318743226
thirdPartyCases:
43188-
description: Cases for generating results from third-party detection method. Only available for third-party detection method.
43227+
description: Cases for generating results from third-party detection method. Only available for third-party detection method. Up to 10 cases are allowed.
4318943228
example: []
4319043229
items:
4319143230
$ref: "#/components/schemas/SecurityMonitoringThirdPartyRuleCaseCreate"
43231+
maxItems: 10
4319243232
type: array
4319343233
to:
4319443234
description: Ending time of data analyzed by the job.
@@ -43210,6 +43250,12 @@ components:
4321043250
JobDefinitionFromRule:
4321143251
description: Definition of a historical job based on a security monitoring rule.
4321243252
properties:
43253+
caseIndex:
43254+
description: Zero-based index of the rule case to use as the job's signal condition. When omitted, all cases are evaluated. Up to 10 cases are supported, so valid values are 0 to 9.
43255+
format: int32
43256+
maximum: 9
43257+
minimum: 0
43258+
type: integer
4321343259
from:
4321443260
description: Starting time of data analyzed by the job.
4321543261
example: 1729843470000
@@ -70274,11 +70320,11 @@ components:
7027470320
properties:
7027570321
fromRule:
7027670322
$ref: "#/components/schemas/JobDefinitionFromRule"
70277-
id:
70278-
description: Request ID.
70279-
type: string
7028070323
jobDefinition:
7028170324
$ref: "#/components/schemas/JobDefinition"
70325+
signalOutput:
70326+
description: Whether the job outputs signals when results are converted.
70327+
type: boolean
7028270328
type: object
7028370329
RunHistoricalJobRequestData:
7028470330
description: Data for running a historical job request.
@@ -154835,7 +154881,7 @@ paths:
154835154881
**Note**: This endpoint is in beta and may be subject to changes.
154836154882
Please check the documentation regularly for updates.
154837154883
/api/v2/siem-historical-detections/histsignals/search:
154838-
get:
154884+
post:
154839154885
description: Search hist signals.
154840154886
operationId: SearchSecurityMonitoringHistsignals
154841154887
requestBody:
@@ -154887,6 +154933,7 @@ paths:
154887154933
- security_monitoring_signals_read
154888154934
summary: Search hist signals
154889154935
tags: ["Security Monitoring"]
154936+
x-codegen-request-body-name: body
154890154937
"x-permission":
154891154938
operator: OR
154892154939
permissions:

src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20893,7 +20893,7 @@ public SecurityMonitoringSignalsListResponse searchSecurityMonitoringHistsignals
2089320893
new String[] {"application/json"},
2089420894
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
2089520895
return apiClient.invokeAPI(
20896-
"GET",
20896+
"POST",
2089720897
builder,
2089820898
localVarHeaderParams,
2089920899
new String[] {"application/json"},
@@ -20949,7 +20949,7 @@ public SecurityMonitoringSignalsListResponse searchSecurityMonitoringHistsignals
2094920949
return result;
2095020950
}
2095120951
return apiClient.invokeAPIAsync(
20952-
"GET",
20952+
"POST",
2095320953
builder,
2095420954
localVarHeaderParams,
2095520955
new String[] {"application/json"},

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

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/** Attributes for converting historical job results to signals. */
2323
@JsonPropertyOrder({
24-
ConvertJobResultsToSignalsAttributes.JSON_PROPERTY_ID,
2524
ConvertJobResultsToSignalsAttributes.JSON_PROPERTY_JOB_RESULT_IDS,
2625
ConvertJobResultsToSignalsAttributes.JSON_PROPERTY_NOTIFICATIONS,
2726
ConvertJobResultsToSignalsAttributes.JSON_PROPERTY_SIGNAL_MESSAGE,
@@ -31,9 +30,6 @@
3130
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
3231
public class ConvertJobResultsToSignalsAttributes {
3332
@JsonIgnore public boolean unparsed = false;
34-
public static final String JSON_PROPERTY_ID = "id";
35-
private String id;
36-
3733
public static final String JSON_PROPERTY_JOB_RESULT_IDS = "jobResultIds";
3834
private List<String> jobResultIds = new ArrayList<>();
3935

@@ -64,27 +60,6 @@ public ConvertJobResultsToSignalsAttributes(
6460
this.unparsed |= !signalSeverity.isValid();
6561
}
6662

67-
public ConvertJobResultsToSignalsAttributes id(String id) {
68-
this.id = id;
69-
return this;
70-
}
71-
72-
/**
73-
* Request ID.
74-
*
75-
* @return id
76-
*/
77-
@jakarta.annotation.Nullable
78-
@JsonProperty(JSON_PROPERTY_ID)
79-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
80-
public String getId() {
81-
return id;
82-
}
83-
84-
public void setId(String id) {
85-
this.id = id;
86-
}
87-
8863
public ConvertJobResultsToSignalsAttributes jobResultIds(List<String> jobResultIds) {
8964
this.jobResultIds = jobResultIds;
9065
return this;
@@ -237,8 +212,7 @@ public boolean equals(Object o) {
237212
}
238213
ConvertJobResultsToSignalsAttributes convertJobResultsToSignalsAttributes =
239214
(ConvertJobResultsToSignalsAttributes) o;
240-
return Objects.equals(this.id, convertJobResultsToSignalsAttributes.id)
241-
&& Objects.equals(this.jobResultIds, convertJobResultsToSignalsAttributes.jobResultIds)
215+
return Objects.equals(this.jobResultIds, convertJobResultsToSignalsAttributes.jobResultIds)
242216
&& Objects.equals(this.notifications, convertJobResultsToSignalsAttributes.notifications)
243217
&& Objects.equals(this.signalMessage, convertJobResultsToSignalsAttributes.signalMessage)
244218
&& Objects.equals(this.signalSeverity, convertJobResultsToSignalsAttributes.signalSeverity)
@@ -249,14 +223,13 @@ public boolean equals(Object o) {
249223
@Override
250224
public int hashCode() {
251225
return Objects.hash(
252-
id, jobResultIds, notifications, signalMessage, signalSeverity, additionalProperties);
226+
jobResultIds, notifications, signalMessage, signalSeverity, additionalProperties);
253227
}
254228

255229
@Override
256230
public String toString() {
257231
StringBuilder sb = new StringBuilder();
258232
sb.append("class ConvertJobResultsToSignalsAttributes {\n");
259-
sb.append(" id: ").append(toIndentedString(id)).append("\n");
260233
sb.append(" jobResultIds: ").append(toIndentedString(jobResultIds)).append("\n");
261234
sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n");
262235
sb.append(" signalMessage: ").append(toIndentedString(signalMessage)).append("\n");

0 commit comments

Comments
 (0)