Skip to content

Commit 54a0fc4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5e49afe1 of spec repo
1 parent 2396c68 commit 54a0fc4

11 files changed

+601
-13
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-06-18 09:42:18.735692",
8-
"spec_repo_commit": "b6151f30"
7+
"regenerated": "2025-06-18 13:32:35.866124",
8+
"spec_repo_commit": "5e49afe1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-18 09:42:18.752679",
13-
"spec_repo_commit": "b6151f30"
12+
"regenerated": "2025-06-18 13:32:35.883307",
13+
"spec_repo_commit": "5e49afe1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7246,6 +7246,14 @@ components:
72467246
type: array
72477247
complianceSignalOptions:
72487248
$ref: '#/components/schemas/CloudConfigurationRuleComplianceSignalOptions'
7249+
customMessage:
7250+
description: Custom/Overridden message for generated signals (used in case
7251+
of Default rule update).
7252+
type: string
7253+
customName:
7254+
description: Custom/Overridden name of the rule (used in case of Default
7255+
rule update).
7256+
type: string
72497257
filters:
72507258
description: Additional queries to filter matched events before they are
72517259
processed.
@@ -32768,6 +32776,8 @@ components:
3276832776

3276932777
based on the event counts in the previously defined queries.'
3277032778
type: string
32779+
customStatus:
32780+
$ref: '#/components/schemas/SecurityMonitoringRuleSeverity'
3277132781
name:
3277232782
description: Name of the case.
3277332783
type: string
@@ -33294,6 +33304,13 @@ components:
3329433304
type: array
3329533305
complianceSignalOptions:
3329633306
$ref: '#/components/schemas/CloudConfigurationRuleComplianceSignalOptions'
33307+
customMessage:
33308+
description: Custom/Overridden Message for generated signals (used in case
33309+
of Default rule update).
33310+
type: string
33311+
customName:
33312+
description: Custom/Overridden name (used in case of Default rule update).
33313+
type: string
3329733314
filters:
3329833315
description: Additional queries to filter matched events before they are
3329933316
processed. This field is deprecated for log detection, signal correlation,
@@ -33625,6 +33642,14 @@ components:
3362533642
items:
3362633643
$ref: '#/components/schemas/SecurityMonitoringRuleCaseCreate'
3362733644
type: array
33645+
customMessage:
33646+
description: Custom/Overridden message for generated signals (used in case
33647+
of Default rule update).
33648+
type: string
33649+
customName:
33650+
description: Custom/Overridden name of the rule (used in case of Default
33651+
rule update).
33652+
type: string
3362833653
filters:
3362933654
description: Additional queries to filter matched events before they are
3363033655
processed. This field is deprecated for log detection, signal correlation,
@@ -33724,6 +33749,14 @@ components:
3372433749
description: User ID of the user who created the rule.
3372533750
format: int64
3372633751
type: integer
33752+
customMessage:
33753+
description: Custom/Overridden message for generated signals (used in case
33754+
of Default rule update).
33755+
type: string
33756+
customName:
33757+
description: Custom/Overridden name of the rule (used in case of Default
33758+
rule update).
33759+
type: string
3372733760
deprecationDate:
3372833761
description: When the rule will be deprecated, timestamp in milliseconds.
3372933762
format: int64
@@ -34111,6 +34144,14 @@ components:
3411134144
items:
3411234145
$ref: '#/components/schemas/SecurityMonitoringRuleCaseCreate'
3411334146
type: array
34147+
customMessage:
34148+
description: Custom/Overridden message for generated signals (used in case
34149+
of Default rule update).
34150+
type: string
34151+
customName:
34152+
description: Custom/Overridden name of the rule (used in case of Default
34153+
rule update).
34154+
type: string
3411434155
filters:
3411534156
description: Additional queries to filter matched events before they are
3411634157
processed. This field is deprecated for log detection, signal correlation,
@@ -34188,6 +34229,10 @@ components:
3418834229
properties:
3418934230
aggregation:
3419034231
$ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
34232+
customQueryExtension:
34233+
description: Query extension to append to the logs query.
34234+
example: a > 3
34235+
type: string
3419134236
dataSource:
3419234237
$ref: '#/components/schemas/SecurityMonitoringStandardDataSource'
3419334238
distinctFields:
@@ -34251,6 +34296,14 @@ components:
3425134296
description: User ID of the user who created the rule.
3425234297
format: int64
3425334298
type: integer
34299+
customMessage:
34300+
description: Custom/Overridden message for generated signals (used in case
34301+
of Default rule update).
34302+
type: string
34303+
customName:
34304+
description: Custom/Overridden name of the rule (used in case of Default
34305+
rule update).
34306+
type: string
3425434307
defaultTags:
3425534308
description: Default Tags for default rules (included in tags)
3425634309
example:
@@ -34697,6 +34750,8 @@ components:
3469734750
SecurityMonitoringThirdPartyRuleCase:
3469834751
description: Case when signal is generated by a third party rule.
3469934752
properties:
34753+
customStatus:
34754+
$ref: '#/components/schemas/SecurityMonitoringRuleSeverity'
3470034755
name:
3470134756
description: Name of the case.
3470234757
type: string

api/datadogV2/model_cloud_configuration_rule_payload.go

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ type CloudConfigurationRulePayload struct {
1717
Cases []CloudConfigurationRuleCaseCreate `json:"cases"`
1818
// How to generate compliance signals. Useful for cloud_configuration rules only.
1919
ComplianceSignalOptions CloudConfigurationRuleComplianceSignalOptions `json:"complianceSignalOptions"`
20+
// Custom/Overridden message for generated signals (used in case of Default rule update).
21+
CustomMessage *string `json:"customMessage,omitempty"`
22+
// Custom/Overridden name of the rule (used in case of Default rule update).
23+
CustomName *string `json:"customName,omitempty"`
2024
// Additional queries to filter matched events before they are processed.
2125
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
2226
// Whether the rule is enabled.
@@ -105,6 +109,62 @@ func (o *CloudConfigurationRulePayload) SetComplianceSignalOptions(v CloudConfig
105109
o.ComplianceSignalOptions = v
106110
}
107111

112+
// GetCustomMessage returns the CustomMessage field value if set, zero value otherwise.
113+
func (o *CloudConfigurationRulePayload) GetCustomMessage() string {
114+
if o == nil || o.CustomMessage == nil {
115+
var ret string
116+
return ret
117+
}
118+
return *o.CustomMessage
119+
}
120+
121+
// GetCustomMessageOk returns a tuple with the CustomMessage field value if set, nil otherwise
122+
// and a boolean to check if the value has been set.
123+
func (o *CloudConfigurationRulePayload) GetCustomMessageOk() (*string, bool) {
124+
if o == nil || o.CustomMessage == nil {
125+
return nil, false
126+
}
127+
return o.CustomMessage, true
128+
}
129+
130+
// HasCustomMessage returns a boolean if a field has been set.
131+
func (o *CloudConfigurationRulePayload) HasCustomMessage() bool {
132+
return o != nil && o.CustomMessage != nil
133+
}
134+
135+
// SetCustomMessage gets a reference to the given string and assigns it to the CustomMessage field.
136+
func (o *CloudConfigurationRulePayload) SetCustomMessage(v string) {
137+
o.CustomMessage = &v
138+
}
139+
140+
// GetCustomName returns the CustomName field value if set, zero value otherwise.
141+
func (o *CloudConfigurationRulePayload) GetCustomName() string {
142+
if o == nil || o.CustomName == nil {
143+
var ret string
144+
return ret
145+
}
146+
return *o.CustomName
147+
}
148+
149+
// GetCustomNameOk returns a tuple with the CustomName field value if set, nil otherwise
150+
// and a boolean to check if the value has been set.
151+
func (o *CloudConfigurationRulePayload) GetCustomNameOk() (*string, bool) {
152+
if o == nil || o.CustomName == nil {
153+
return nil, false
154+
}
155+
return o.CustomName, true
156+
}
157+
158+
// HasCustomName returns a boolean if a field has been set.
159+
func (o *CloudConfigurationRulePayload) HasCustomName() bool {
160+
return o != nil && o.CustomName != nil
161+
}
162+
163+
// SetCustomName gets a reference to the given string and assigns it to the CustomName field.
164+
func (o *CloudConfigurationRulePayload) SetCustomName(v string) {
165+
o.CustomName = &v
166+
}
167+
108168
// GetFilters returns the Filters field value if set, zero value otherwise.
109169
func (o *CloudConfigurationRulePayload) GetFilters() []SecurityMonitoringFilter {
110170
if o == nil || o.Filters == nil {
@@ -289,6 +349,12 @@ func (o CloudConfigurationRulePayload) MarshalJSON() ([]byte, error) {
289349
}
290350
toSerialize["cases"] = o.Cases
291351
toSerialize["complianceSignalOptions"] = o.ComplianceSignalOptions
352+
if o.CustomMessage != nil {
353+
toSerialize["customMessage"] = o.CustomMessage
354+
}
355+
if o.CustomName != nil {
356+
toSerialize["customName"] = o.CustomName
357+
}
292358
if o.Filters != nil {
293359
toSerialize["filters"] = o.Filters
294360
}
@@ -314,6 +380,8 @@ func (o *CloudConfigurationRulePayload) UnmarshalJSON(bytes []byte) (err error)
314380
all := struct {
315381
Cases *[]CloudConfigurationRuleCaseCreate `json:"cases"`
316382
ComplianceSignalOptions *CloudConfigurationRuleComplianceSignalOptions `json:"complianceSignalOptions"`
383+
CustomMessage *string `json:"customMessage,omitempty"`
384+
CustomName *string `json:"customName,omitempty"`
317385
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
318386
IsEnabled *bool `json:"isEnabled"`
319387
Message *string `json:"message"`
@@ -345,7 +413,7 @@ func (o *CloudConfigurationRulePayload) UnmarshalJSON(bytes []byte) (err error)
345413
}
346414
additionalProperties := make(map[string]interface{})
347415
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
348-
datadog.DeleteKeys(additionalProperties, &[]string{"cases", "complianceSignalOptions", "filters", "isEnabled", "message", "name", "options", "tags", "type"})
416+
datadog.DeleteKeys(additionalProperties, &[]string{"cases", "complianceSignalOptions", "customMessage", "customName", "filters", "isEnabled", "message", "name", "options", "tags", "type"})
349417
} else {
350418
return err
351419
}
@@ -356,6 +424,8 @@ func (o *CloudConfigurationRulePayload) UnmarshalJSON(bytes []byte) (err error)
356424
hasInvalidField = true
357425
}
358426
o.ComplianceSignalOptions = *all.ComplianceSignalOptions
427+
o.CustomMessage = all.CustomMessage
428+
o.CustomName = all.CustomName
359429
o.Filters = all.Filters
360430
o.IsEnabled = *all.IsEnabled
361431
o.Message = *all.Message

api/datadogV2/model_security_monitoring_rule_case.go

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ type SecurityMonitoringRuleCase struct {
1515
// A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated
1616
// based on the event counts in the previously defined queries.
1717
Condition *string `json:"condition,omitempty"`
18+
// Severity of the Security Signal.
19+
CustomStatus *SecurityMonitoringRuleSeverity `json:"customStatus,omitempty"`
1820
// Name of the case.
1921
Name *string `json:"name,omitempty"`
2022
// Notification targets for each rule case.
@@ -99,6 +101,34 @@ func (o *SecurityMonitoringRuleCase) SetCondition(v string) {
99101
o.Condition = &v
100102
}
101103

104+
// GetCustomStatus returns the CustomStatus field value if set, zero value otherwise.
105+
func (o *SecurityMonitoringRuleCase) GetCustomStatus() SecurityMonitoringRuleSeverity {
106+
if o == nil || o.CustomStatus == nil {
107+
var ret SecurityMonitoringRuleSeverity
108+
return ret
109+
}
110+
return *o.CustomStatus
111+
}
112+
113+
// GetCustomStatusOk returns a tuple with the CustomStatus field value if set, nil otherwise
114+
// and a boolean to check if the value has been set.
115+
func (o *SecurityMonitoringRuleCase) GetCustomStatusOk() (*SecurityMonitoringRuleSeverity, bool) {
116+
if o == nil || o.CustomStatus == nil {
117+
return nil, false
118+
}
119+
return o.CustomStatus, true
120+
}
121+
122+
// HasCustomStatus returns a boolean if a field has been set.
123+
func (o *SecurityMonitoringRuleCase) HasCustomStatus() bool {
124+
return o != nil && o.CustomStatus != nil
125+
}
126+
127+
// SetCustomStatus gets a reference to the given SecurityMonitoringRuleSeverity and assigns it to the CustomStatus field.
128+
func (o *SecurityMonitoringRuleCase) SetCustomStatus(v SecurityMonitoringRuleSeverity) {
129+
o.CustomStatus = &v
130+
}
131+
102132
// GetName returns the Name field value if set, zero value otherwise.
103133
func (o *SecurityMonitoringRuleCase) GetName() string {
104134
if o == nil || o.Name == nil {
@@ -195,6 +225,9 @@ func (o SecurityMonitoringRuleCase) MarshalJSON() ([]byte, error) {
195225
if o.Condition != nil {
196226
toSerialize["condition"] = o.Condition
197227
}
228+
if o.CustomStatus != nil {
229+
toSerialize["customStatus"] = o.CustomStatus
230+
}
198231
if o.Name != nil {
199232
toSerialize["name"] = o.Name
200233
}
@@ -216,6 +249,7 @@ func (o *SecurityMonitoringRuleCase) UnmarshalJSON(bytes []byte) (err error) {
216249
all := struct {
217250
Actions []SecurityMonitoringRuleCaseAction `json:"actions,omitempty"`
218251
Condition *string `json:"condition,omitempty"`
252+
CustomStatus *SecurityMonitoringRuleSeverity `json:"customStatus,omitempty"`
219253
Name *string `json:"name,omitempty"`
220254
Notifications []string `json:"notifications,omitempty"`
221255
Status *SecurityMonitoringRuleSeverity `json:"status,omitempty"`
@@ -225,14 +259,19 @@ func (o *SecurityMonitoringRuleCase) UnmarshalJSON(bytes []byte) (err error) {
225259
}
226260
additionalProperties := make(map[string]interface{})
227261
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
228-
datadog.DeleteKeys(additionalProperties, &[]string{"actions", "condition", "name", "notifications", "status"})
262+
datadog.DeleteKeys(additionalProperties, &[]string{"actions", "condition", "customStatus", "name", "notifications", "status"})
229263
} else {
230264
return err
231265
}
232266

233267
hasInvalidField := false
234268
o.Actions = all.Actions
235269
o.Condition = all.Condition
270+
if all.CustomStatus != nil && !all.CustomStatus.IsValid() {
271+
hasInvalidField = true
272+
} else {
273+
o.CustomStatus = all.CustomStatus
274+
}
236275
o.Name = all.Name
237276
o.Notifications = all.Notifications
238277
if all.Status != nil && !all.Status.IsValid() {

0 commit comments

Comments
 (0)