Skip to content

Commit 72dcd82

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b980d49f of spec repo
1 parent ed2876c commit 72dcd82

17 files changed

+836
-20
lines changed

.apigentools-info

+4-4
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-02-10 19:09:26.701430",
8-
"spec_repo_commit": "824f78a1"
7+
"regenerated": "2025-02-11 09:59:41.165078",
8+
"spec_repo_commit": "b980d49f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-10 19:09:26.716618",
13-
"spec_repo_commit": "824f78a1"
12+
"regenerated": "2025-02-11 09:59:41.182412",
13+
"spec_repo_commit": "b980d49f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+92
Original file line numberDiff line numberDiff line change
@@ -15657,6 +15657,15 @@ components:
1565715657
example: 1729843470000
1565815658
format: int64
1565915659
type: integer
15660+
groupSignalsBy:
15661+
description: Additional grouping to perform on top of the existing groups
15662+
in the query section. Must be a subset of the existing groups.
15663+
example:
15664+
- service
15665+
items:
15666+
description: Field to group by.
15667+
type: string
15668+
type: array
1566015669
index:
1566115670
description: Index used to load the data.
1566215671
example: cloud_siem
@@ -24242,6 +24251,11 @@ components:
2424224251
SecurityMonitoringRuleCase:
2424324252
description: Case when signal is generated.
2424424253
properties:
24254+
actions:
24255+
description: Action to perform for each rule case.
24256+
items:
24257+
$ref: '#/components/schemas/SecurityMonitoringRuleCaseAction'
24258+
type: array
2424524259
condition:
2424624260
description: 'A rule case contains logical operations (`>`,`>=`, `&&`, `||`)
2424724261
to determine if a signal should be generated
@@ -24260,9 +24274,42 @@ components:
2426024274
status:
2426124275
$ref: '#/components/schemas/SecurityMonitoringRuleSeverity'
2426224276
type: object
24277+
SecurityMonitoringRuleCaseAction:
24278+
description: Action to perform when a signal is triggered. Only available for
24279+
Application Security rule type.
24280+
properties:
24281+
options:
24282+
$ref: '#/components/schemas/SecurityMonitoringRuleCaseActionOptions'
24283+
type:
24284+
$ref: '#/components/schemas/SecurityMonitoringRuleCaseActionType'
24285+
type: object
24286+
SecurityMonitoringRuleCaseActionOptions:
24287+
description: Options for the rule action
24288+
properties:
24289+
duration:
24290+
description: Duration of the action in seconds. 0 indicates no expiration.
24291+
example: 0
24292+
format: int64
24293+
minimum: 0
24294+
type: integer
24295+
type: object
24296+
SecurityMonitoringRuleCaseActionType:
24297+
description: The action type.
24298+
enum:
24299+
- block_ip
24300+
- block_user
24301+
type: string
24302+
x-enum-varnames:
24303+
- BLOCK_IP
24304+
- BLOCK_USER
2426324305
SecurityMonitoringRuleCaseCreate:
2426424306
description: Case when signal is generated.
2426524307
properties:
24308+
actions:
24309+
description: Action to perform for each rule case.
24310+
items:
24311+
$ref: '#/components/schemas/SecurityMonitoringRuleCaseAction'
24312+
type: array
2426624313
condition:
2426724314
description: 'A case contains logical operations (`>`,`>=`, `&&`, `||`)
2426824315
to determine if a signal should be generated
@@ -24724,6 +24771,15 @@ components:
2472424771
items:
2472524772
$ref: '#/components/schemas/SecurityMonitoringFilter'
2472624773
type: array
24774+
groupSignalsBy:
24775+
description: Additional grouping to perform on top of the existing groups
24776+
in the query section. Must be a subset of the existing groups.
24777+
example:
24778+
- service
24779+
items:
24780+
description: Field to group by.
24781+
type: string
24782+
type: array
2472724783
hasExtendedTitle:
2472824784
description: Whether the notifications include the triggering group-by values
2472924785
in their title.
@@ -25429,6 +25485,15 @@ components:
2542925485
items:
2543025486
$ref: '#/components/schemas/SecurityMonitoringFilter'
2543125487
type: array
25488+
groupSignalsBy:
25489+
description: Additional grouping to perform on top of the existing groups
25490+
in the query section. Must be a subset of the existing groups.
25491+
example:
25492+
- service
25493+
items:
25494+
description: Field to group by.
25495+
type: string
25496+
type: array
2543225497
hasExtendedTitle:
2543325498
description: Whether the notifications include the triggering group-by values
2543425499
in their title.
@@ -25501,6 +25566,15 @@ components:
2550125566
items:
2550225567
$ref: '#/components/schemas/SecurityMonitoringFilter'
2550325568
type: array
25569+
groupSignalsBy:
25570+
description: Additional grouping to perform on top of the existing groups
25571+
in the query section. Must be a subset of the existing groups.
25572+
example:
25573+
- service
25574+
items:
25575+
description: Field to group by.
25576+
type: string
25577+
type: array
2550425578
hasExtendedTitle:
2550525579
description: Whether the notifications include the triggering group-by values
2550625580
in their title.
@@ -25642,6 +25716,15 @@ components:
2564225716
items:
2564325717
$ref: '#/components/schemas/SecurityMonitoringFilter'
2564425718
type: array
25719+
groupSignalsBy:
25720+
description: Additional grouping to perform on top of the existing groups
25721+
in the query section. Must be a subset of the existing groups.
25722+
example:
25723+
- service
25724+
items:
25725+
description: Field to group by.
25726+
type: string
25727+
type: array
2564525728
hasExtendedTitle:
2564625729
description: Whether the notifications include the triggering group-by values
2564725730
in their title.
@@ -25719,6 +25802,15 @@ components:
2571925802
items:
2572025803
$ref: '#/components/schemas/SecurityMonitoringFilter'
2572125804
type: array
25805+
groupSignalsBy:
25806+
description: Additional grouping to perform on top of the existing groups
25807+
in the query section. Must be a subset of the existing groups.
25808+
example:
25809+
- service
25810+
items:
25811+
description: Field to group by.
25812+
type: string
25813+
type: array
2572225814
hasExtendedTitle:
2572325815
description: Whether the notifications include the triggering group-by values
2572425816
in their title.

api/datadogV2/model_job_definition.go

+36-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ type JobDefinition struct {
1818
Cases []SecurityMonitoringRuleCaseCreate `json:"cases"`
1919
// Starting time of data analyzed by the job.
2020
From int64 `json:"from"`
21+
// Additional grouping to perform on top of the existing groups in the query section. Must be a subset of the existing groups.
22+
GroupSignalsBy []string `json:"groupSignalsBy,omitempty"`
2123
// Index used to load the data.
2224
Index string `json:"index"`
2325
// Message for generated results.
@@ -141,6 +143,34 @@ func (o *JobDefinition) SetFrom(v int64) {
141143
o.From = v
142144
}
143145

146+
// GetGroupSignalsBy returns the GroupSignalsBy field value if set, zero value otherwise.
147+
func (o *JobDefinition) GetGroupSignalsBy() []string {
148+
if o == nil || o.GroupSignalsBy == nil {
149+
var ret []string
150+
return ret
151+
}
152+
return o.GroupSignalsBy
153+
}
154+
155+
// GetGroupSignalsByOk returns a tuple with the GroupSignalsBy field value if set, nil otherwise
156+
// and a boolean to check if the value has been set.
157+
func (o *JobDefinition) GetGroupSignalsByOk() (*[]string, bool) {
158+
if o == nil || o.GroupSignalsBy == nil {
159+
return nil, false
160+
}
161+
return &o.GroupSignalsBy, true
162+
}
163+
164+
// HasGroupSignalsBy returns a boolean if a field has been set.
165+
func (o *JobDefinition) HasGroupSignalsBy() bool {
166+
return o != nil && o.GroupSignalsBy != nil
167+
}
168+
169+
// SetGroupSignalsBy gets a reference to the given []string and assigns it to the GroupSignalsBy field.
170+
func (o *JobDefinition) SetGroupSignalsBy(v []string) {
171+
o.GroupSignalsBy = v
172+
}
173+
144174
// GetIndex returns the Index field value.
145175
func (o *JobDefinition) GetIndex() string {
146176
if o == nil {
@@ -407,6 +437,9 @@ func (o JobDefinition) MarshalJSON() ([]byte, error) {
407437
}
408438
toSerialize["cases"] = o.Cases
409439
toSerialize["from"] = o.From
440+
if o.GroupSignalsBy != nil {
441+
toSerialize["groupSignalsBy"] = o.GroupSignalsBy
442+
}
410443
toSerialize["index"] = o.Index
411444
toSerialize["message"] = o.Message
412445
toSerialize["name"] = o.Name
@@ -440,6 +473,7 @@ func (o *JobDefinition) UnmarshalJSON(bytes []byte) (err error) {
440473
CalculatedFields []CalculatedField `json:"calculatedFields,omitempty"`
441474
Cases *[]SecurityMonitoringRuleCaseCreate `json:"cases"`
442475
From *int64 `json:"from"`
476+
GroupSignalsBy []string `json:"groupSignalsBy,omitempty"`
443477
Index *string `json:"index"`
444478
Message *string `json:"message"`
445479
Name *string `json:"name"`
@@ -477,7 +511,7 @@ func (o *JobDefinition) UnmarshalJSON(bytes []byte) (err error) {
477511
}
478512
additionalProperties := make(map[string]interface{})
479513
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
480-
datadog.DeleteKeys(additionalProperties, &[]string{"calculatedFields", "cases", "from", "index", "message", "name", "options", "queries", "referenceTables", "tags", "thirdPartyCases", "to", "type"})
514+
datadog.DeleteKeys(additionalProperties, &[]string{"calculatedFields", "cases", "from", "groupSignalsBy", "index", "message", "name", "options", "queries", "referenceTables", "tags", "thirdPartyCases", "to", "type"})
481515
} else {
482516
return err
483517
}
@@ -486,6 +520,7 @@ func (o *JobDefinition) UnmarshalJSON(bytes []byte) (err error) {
486520
o.CalculatedFields = all.CalculatedFields
487521
o.Cases = *all.Cases
488522
o.From = *all.From
523+
o.GroupSignalsBy = all.GroupSignalsBy
489524
o.Index = *all.Index
490525
o.Message = *all.Message
491526
o.Name = *all.Name

api/datadogV2/model_security_monitoring_rule_case.go

+40-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010

1111
// SecurityMonitoringRuleCase Case when signal is generated.
1212
type SecurityMonitoringRuleCase struct {
13+
// Action to perform for each rule case.
14+
Actions []SecurityMonitoringRuleCaseAction `json:"actions,omitempty"`
1315
// A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated
1416
// based on the event counts in the previously defined queries.
1517
Condition *string `json:"condition,omitempty"`
@@ -41,6 +43,34 @@ func NewSecurityMonitoringRuleCaseWithDefaults() *SecurityMonitoringRuleCase {
4143
return &this
4244
}
4345

46+
// GetActions returns the Actions field value if set, zero value otherwise.
47+
func (o *SecurityMonitoringRuleCase) GetActions() []SecurityMonitoringRuleCaseAction {
48+
if o == nil || o.Actions == nil {
49+
var ret []SecurityMonitoringRuleCaseAction
50+
return ret
51+
}
52+
return o.Actions
53+
}
54+
55+
// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise
56+
// and a boolean to check if the value has been set.
57+
func (o *SecurityMonitoringRuleCase) GetActionsOk() (*[]SecurityMonitoringRuleCaseAction, bool) {
58+
if o == nil || o.Actions == nil {
59+
return nil, false
60+
}
61+
return &o.Actions, true
62+
}
63+
64+
// HasActions returns a boolean if a field has been set.
65+
func (o *SecurityMonitoringRuleCase) HasActions() bool {
66+
return o != nil && o.Actions != nil
67+
}
68+
69+
// SetActions gets a reference to the given []SecurityMonitoringRuleCaseAction and assigns it to the Actions field.
70+
func (o *SecurityMonitoringRuleCase) SetActions(v []SecurityMonitoringRuleCaseAction) {
71+
o.Actions = v
72+
}
73+
4474
// GetCondition returns the Condition field value if set, zero value otherwise.
4575
func (o *SecurityMonitoringRuleCase) GetCondition() string {
4676
if o == nil || o.Condition == nil {
@@ -159,6 +189,9 @@ func (o SecurityMonitoringRuleCase) MarshalJSON() ([]byte, error) {
159189
if o.UnparsedObject != nil {
160190
return datadog.Marshal(o.UnparsedObject)
161191
}
192+
if o.Actions != nil {
193+
toSerialize["actions"] = o.Actions
194+
}
162195
if o.Condition != nil {
163196
toSerialize["condition"] = o.Condition
164197
}
@@ -181,22 +214,24 @@ func (o SecurityMonitoringRuleCase) MarshalJSON() ([]byte, error) {
181214
// UnmarshalJSON deserializes the given payload.
182215
func (o *SecurityMonitoringRuleCase) UnmarshalJSON(bytes []byte) (err error) {
183216
all := struct {
184-
Condition *string `json:"condition,omitempty"`
185-
Name *string `json:"name,omitempty"`
186-
Notifications []string `json:"notifications,omitempty"`
187-
Status *SecurityMonitoringRuleSeverity `json:"status,omitempty"`
217+
Actions []SecurityMonitoringRuleCaseAction `json:"actions,omitempty"`
218+
Condition *string `json:"condition,omitempty"`
219+
Name *string `json:"name,omitempty"`
220+
Notifications []string `json:"notifications,omitempty"`
221+
Status *SecurityMonitoringRuleSeverity `json:"status,omitempty"`
188222
}{}
189223
if err = datadog.Unmarshal(bytes, &all); err != nil {
190224
return datadog.Unmarshal(bytes, &o.UnparsedObject)
191225
}
192226
additionalProperties := make(map[string]interface{})
193227
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
194-
datadog.DeleteKeys(additionalProperties, &[]string{"condition", "name", "notifications", "status"})
228+
datadog.DeleteKeys(additionalProperties, &[]string{"actions", "condition", "name", "notifications", "status"})
195229
} else {
196230
return err
197231
}
198232

199233
hasInvalidField := false
234+
o.Actions = all.Actions
200235
o.Condition = all.Condition
201236
o.Name = all.Name
202237
o.Notifications = all.Notifications

0 commit comments

Comments
 (0)