Skip to content

Commit 8f3074c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Security Monitoring - Make hasOptionalGroupByFields updatable (#3058)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent fe53521 commit 8f3074c

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19060,11 +19060,11 @@ components:
1906019060
type: string
1906119061
type: array
1906219062
hasOptionalGroupByFields:
19063+
default: false
1906319064
description: When false, events without a group-by value are ignored by
1906419065
the query. When true, events with missing group-by fields are processed
1906519066
with `N/A`, replacing the missing values.
1906619067
example: false
19067-
readOnly: true
1906819068
type: boolean
1906919069
metrics:
1907019070
description: Group of target fields to aggregate over when using the sum,
@@ -39603,11 +39603,11 @@ components:
3960339603
type: string
3960439604
type: array
3960539605
hasOptionalGroupByFields:
39606+
default: false
3960639607
description: When false, events without a group-by value are ignored by
3960739608
the rule. When true, events with missing group-by fields are processed
3960839609
with `N/A`, replacing the missing values.
3960939610
example: false
39610-
readOnly: true
3961139611
type: boolean
3961239612
index:
3961339613
description: '**This field is currently unstable and might be removed in

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class HistoricalJobQuery {
4848

4949
public static final String JSON_PROPERTY_HAS_OPTIONAL_GROUP_BY_FIELDS =
5050
"hasOptionalGroupByFields";
51-
private Boolean hasOptionalGroupByFields;
51+
private Boolean hasOptionalGroupByFields = false;
5252

5353
public static final String JSON_PROPERTY_METRICS = "metrics";
5454
private List<String> metrics = null;
@@ -167,6 +167,11 @@ public void setGroupByFields(List<String> groupByFields) {
167167
this.groupByFields = groupByFields;
168168
}
169169

170+
public HistoricalJobQuery hasOptionalGroupByFields(Boolean hasOptionalGroupByFields) {
171+
this.hasOptionalGroupByFields = hasOptionalGroupByFields;
172+
return this;
173+
}
174+
170175
/**
171176
* When false, events without a group-by value are ignored by the query. When true, events with
172177
* missing group-by fields are processed with <code>N/A</code>, replacing the missing values.
@@ -180,6 +185,10 @@ public Boolean getHasOptionalGroupByFields() {
180185
return hasOptionalGroupByFields;
181186
}
182187

188+
public void setHasOptionalGroupByFields(Boolean hasOptionalGroupByFields) {
189+
this.hasOptionalGroupByFields = hasOptionalGroupByFields;
190+
}
191+
183192
public HistoricalJobQuery metrics(List<String> metrics) {
184193
this.metrics = metrics;
185194
return this;

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class SecurityMonitoringStandardRuleQuery {
5454

5555
public static final String JSON_PROPERTY_HAS_OPTIONAL_GROUP_BY_FIELDS =
5656
"hasOptionalGroupByFields";
57-
private Boolean hasOptionalGroupByFields;
57+
private Boolean hasOptionalGroupByFields = false;
5858

5959
public static final String JSON_PROPERTY_INDEX = "index";
6060
private String index;
@@ -202,6 +202,12 @@ public void setGroupByFields(List<String> groupByFields) {
202202
this.groupByFields = groupByFields;
203203
}
204204

205+
public SecurityMonitoringStandardRuleQuery hasOptionalGroupByFields(
206+
Boolean hasOptionalGroupByFields) {
207+
this.hasOptionalGroupByFields = hasOptionalGroupByFields;
208+
return this;
209+
}
210+
205211
/**
206212
* When false, events without a group-by value are ignored by the rule. When true, events with
207213
* missing group-by fields are processed with <code>N/A</code>, replacing the missing values.
@@ -215,6 +221,10 @@ public Boolean getHasOptionalGroupByFields() {
215221
return hasOptionalGroupByFields;
216222
}
217223

224+
public void setHasOptionalGroupByFields(Boolean hasOptionalGroupByFields) {
225+
this.hasOptionalGroupByFields = hasOptionalGroupByFields;
226+
}
227+
218228
public SecurityMonitoringStandardRuleQuery index(String index) {
219229
this.index = index;
220230
return this;

0 commit comments

Comments
 (0)