Skip to content

Commit da104a1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a4a463b9 of spec repo
1 parent 5c77811 commit da104a1

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-11 14:29:04.493461",
8-
"spec_repo_commit": "847bdb30"
7+
"regenerated": "2025-06-12 15:18:41.395504",
8+
"spec_repo_commit": "a4a463b9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-11 14:29:04.519045",
13-
"spec_repo_commit": "847bdb30"
12+
"regenerated": "2025-06-12 15:18:41.412440",
13+
"spec_repo_commit": "a4a463b9"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7238,6 +7238,14 @@ components:
72387238
type: array
72397239
complianceSignalOptions:
72407240
$ref: '#/components/schemas/CloudConfigurationRuleComplianceSignalOptions'
7241+
customMessage:
7242+
description: Custom/Overridden message for generated signals (used in case
7243+
of Default rule update).
7244+
type: string
7245+
customName:
7246+
description: Custom/Overridden name of the rule (used in case of Default
7247+
rule update).
7248+
type: string
72417249
filters:
72427250
description: Additional queries to filter matched events before they are
72437251
processed.
@@ -32717,6 +32725,8 @@ components:
3271732725

3271832726
based on the event counts in the previously defined queries.'
3271932727
type: string
32728+
customStatus:
32729+
$ref: '#/components/schemas/SecurityMonitoringRuleSeverity'
3272032730
name:
3272132731
description: Name of the case.
3272232732
type: string
@@ -33243,6 +33253,13 @@ components:
3324333253
type: array
3324433254
complianceSignalOptions:
3324533255
$ref: '#/components/schemas/CloudConfigurationRuleComplianceSignalOptions'
33256+
customMessage:
33257+
description: Custom/Overridden Message for generated signals (used in case
33258+
of Default rule update).
33259+
type: string
33260+
customName:
33261+
description: Custom/Overridden name (used in case of Default rule update).
33262+
type: string
3324633263
filters:
3324733264
description: Additional queries to filter matched events before they are
3324833265
processed. This field is deprecated for log detection, signal correlation,
@@ -33574,6 +33591,14 @@ components:
3357433591
items:
3357533592
$ref: '#/components/schemas/SecurityMonitoringRuleCaseCreate'
3357633593
type: array
33594+
customMessage:
33595+
description: Custom/Overridden message for generated signals (used in case
33596+
of Default rule update).
33597+
type: string
33598+
customName:
33599+
description: Custom/Overridden name of the rule (used in case of Default
33600+
rule update).
33601+
type: string
3357733602
filters:
3357833603
description: Additional queries to filter matched events before they are
3357933604
processed. This field is deprecated for log detection, signal correlation,
@@ -33673,6 +33698,14 @@ components:
3367333698
description: User ID of the user who created the rule.
3367433699
format: int64
3367533700
type: integer
33701+
customMessage:
33702+
description: Custom/Overridden message for generated signals (used in case
33703+
of Default rule update).
33704+
type: string
33705+
customName:
33706+
description: Custom/Overridden name of the rule (used in case of Default
33707+
rule update).
33708+
type: string
3367633709
deprecationDate:
3367733710
description: When the rule will be deprecated, timestamp in milliseconds.
3367833711
format: int64
@@ -34060,6 +34093,14 @@ components:
3406034093
items:
3406134094
$ref: '#/components/schemas/SecurityMonitoringRuleCaseCreate'
3406234095
type: array
34096+
customMessage:
34097+
description: Custom/Overridden message for generated signals (used in case
34098+
of Default rule update).
34099+
type: string
34100+
customName:
34101+
description: Custom/Overridden name of the rule (used in case of Default
34102+
rule update).
34103+
type: string
3406334104
filters:
3406434105
description: Additional queries to filter matched events before they are
3406534106
processed. This field is deprecated for log detection, signal correlation,
@@ -34137,6 +34178,10 @@ components:
3413734178
properties:
3413834179
aggregation:
3413934180
$ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
34181+
customQueryExtension:
34182+
description: Query extension to append to the logs query.
34183+
example: a > 3
34184+
type: string
3414034185
dataSource:
3414134186
$ref: '#/components/schemas/SecurityMonitoringStandardDataSource'
3414234187
distinctFields:
@@ -34200,6 +34245,14 @@ components:
3420034245
description: User ID of the user who created the rule.
3420134246
format: int64
3420234247
type: integer
34248+
customMessage:
34249+
description: Custom/Overridden message for generated signals (used in case
34250+
of Default rule update).
34251+
type: string
34252+
customName:
34253+
description: Custom/Overridden name of the rule (used in case of Default
34254+
rule update).
34255+
type: string
3420334256
defaultTags:
3420434257
description: Default Tags for default rules (included in tags)
3420534258
example:
@@ -34646,6 +34699,8 @@ components:
3464634699
SecurityMonitoringThirdPartyRuleCase:
3464734700
description: Case when signal is generated by a third party rule.
3464834701
properties:
34702+
customStatus:
34703+
$ref: '#/components/schemas/SecurityMonitoringRuleSeverity'
3464934704
name:
3465034705
description: Name of the case.
3465134706
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)