Skip to content

Commit 5f0c663

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 40cbf93 of spec repo
1 parent ea064c5 commit 5f0c663

12 files changed

+68
-17
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.4.1.dev8",
7-
"regenerated": "2021-06-14 11:43:39.500836",
8-
"spec_repo_commit": "6c1fcab"
7+
"regenerated": "2021-06-14 20:59:19.360934",
8+
"spec_repo_commit": "40cbf93"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-06-14 11:44:08.726867",
13-
"spec_repo_commit": "6c1fcab"
12+
"regenerated": "2021-06-14 20:59:49.061003",
13+
"spec_repo_commit": "40cbf93"
1414
}
1515
}
1616
}

docs/v2/SecurityMonitoringApi.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ with ApiClient(configuration) as api_client:
144144
query="query_example",
145145
),
146146
],
147+
has_extended_title=True,
147148
is_enabled=True,
148149
message="",
149-
name="",
150+
name="My security monitoring rule.",
150151
options=SecurityMonitoringRuleOptions(
151152
detection_method=SecurityMonitoringRuleDetectionMethod("threshold"),
152153
evaluation_window=SecurityMonitoringRuleEvaluationWindow(0),
@@ -172,7 +173,7 @@ with ApiClient(configuration) as api_client:
172173
],
173174
metric="metric_example",
174175
name="name_example",
175-
query="a < 3",
176+
query="a > 3",
176177
),
177178
],
178179
tags=["env:prod","team:security"],
@@ -900,6 +901,7 @@ with ApiClient(configuration) as api_client:
900901
query="query_example",
901902
),
902903
],
904+
has_extended_title=True,
903905
is_enabled=True,
904906
message="message_example",
905907
name="name_example",
@@ -934,6 +936,7 @@ with ApiClient(configuration) as api_client:
934936
tags=[
935937
"tags_example",
936938
],
939+
version=1,
937940
) # SecurityMonitoringRuleUpdatePayload |
938941

939942
# example passing only required values which don't have defaults set

docs/v2/SecurityMonitoringListRulesResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ List of rules.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**data** | [**[SecurityMonitoringRuleResponse]**](SecurityMonitoringRuleResponse.md) | TODO. | [optional]
8+
**data** | [**[SecurityMonitoringRuleResponse]**](SecurityMonitoringRuleResponse.md) | Array containing the list of rules. | [optional]
99
**meta** | [**ResponseMetaAttributes**](ResponseMetaAttributes.md) | | [optional]
1010

1111
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

docs/v2/SecurityMonitoringRuleCreatePayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**options** | [**SecurityMonitoringRuleOptions**](SecurityMonitoringRuleOptions.md) | |
1313
**queries** | [**[SecurityMonitoringRuleQueryCreate]**](SecurityMonitoringRuleQueryCreate.md) | Queries for selecting logs which are part of the rule. |
1414
**filters** | [**[SecurityMonitoringFilter]**](SecurityMonitoringFilter.md) | Additional queries to filter matched events before they are processed. | [optional]
15+
**has_extended_title** | **bool** | Whether the notifications include the triggering group-by values in their title. | [optional]
1516
**tags** | **[str]** | Tags for generated signals. | [optional]
1617

1718
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

docs/v2/SecurityMonitoringRuleResponse.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SecurityMonitoringRuleResponse
22

3-
Detection rule.
3+
Rule.
44

55
## Properties
66
Name | Type | Description | Notes
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**created_at** | **int** | When the rule was created, timestamp in milliseconds. | [optional]
1010
**creation_author_id** | **int** | User ID of the user who created the rule. | [optional]
1111
**filters** | [**[SecurityMonitoringFilter]**](SecurityMonitoringFilter.md) | Additional queries to filter matched events before they are processed. | [optional]
12+
**has_extended_title** | **bool** | Whether the notifications include the triggering group-by values in their title. | [optional]
1213
**id** | **str** | The ID of the rule. | [optional]
1314
**is_default** | **bool** | Whether the rule is included by default. | [optional]
1415
**is_deleted** | **bool** | Whether the rule has been deleted. | [optional]
@@ -18,6 +19,7 @@ Name | Type | Description | Notes
1819
**options** | [**SecurityMonitoringRuleOptions**](SecurityMonitoringRuleOptions.md) | | [optional]
1920
**queries** | [**[SecurityMonitoringRuleQuery]**](SecurityMonitoringRuleQuery.md) | Queries for selecting logs which are part of the rule. | [optional]
2021
**tags** | **[str]** | Tags for generated signals. | [optional]
22+
**update_author_id** | **int** | User ID of the user who updated the rule. | [optional]
2123
**version** | **int** | The version of the rule. | [optional]
2224

2325
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

docs/v2/SecurityMonitoringRuleUpdatePayload.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**cases** | [**[SecurityMonitoringRuleCase]**](SecurityMonitoringRuleCase.md) | Cases for generating signals. | [optional]
99
**filters** | [**[SecurityMonitoringFilter]**](SecurityMonitoringFilter.md) | Additional queries to filter matched events before they are processed. | [optional]
10+
**has_extended_title** | **bool** | Whether the notifications include the triggering group-by values in their title. | [optional]
1011
**is_enabled** | **bool** | Whether the rule is enabled. | [optional]
1112
**message** | **str** | Message for generated signals. | [optional]
1213
**name** | **str** | Name of the rule. | [optional]
1314
**options** | [**SecurityMonitoringRuleOptions**](SecurityMonitoringRuleOptions.md) | | [optional]
1415
**queries** | [**[SecurityMonitoringRuleQuery]**](SecurityMonitoringRuleQuery.md) | Queries for selecting logs which are part of the rule. | [optional]
1516
**tags** | **[str]** | Tags for generated signals. | [optional]
17+
**version** | **int** | The version of the rule being updated. | [optional]
1618

1719
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
1820

src/datadog_api_client/v2/model/security_monitoring_list_rules_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
135135
Animal class but this time we won't travel
136136
through its discriminator because we passed in
137137
_visited_composed_classes = (Animal,)
138-
data ([SecurityMonitoringRuleResponse]): TODO.. [optional] # noqa: E501
138+
data ([SecurityMonitoringRuleResponse]): Array containing the list of rules.. [optional] # noqa: E501
139139
meta (ResponseMetaAttributes): [optional] # noqa: E501
140140
"""
141141

src/datadog_api_client/v2/model/security_monitoring_rule_create_payload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def openapi_types():
8585
"options": (SecurityMonitoringRuleOptions,), # noqa: E501
8686
"queries": ([SecurityMonitoringRuleQueryCreate],), # noqa: E501
8787
"filters": ([SecurityMonitoringFilter],), # noqa: E501
88+
"has_extended_title": (bool,), # noqa: E501
8889
"tags": ([str],), # noqa: E501
8990
}
9091

@@ -100,6 +101,7 @@ def discriminator():
100101
"options": "options", # noqa: E501
101102
"queries": "queries", # noqa: E501
102103
"filters": "filters", # noqa: E501
104+
"has_extended_title": "hasExtendedTitle", # noqa: E501
103105
"tags": "tags", # noqa: E501
104106
}
105107

@@ -160,6 +162,7 @@ def __init__(self, cases, is_enabled, message, name, options, queries, *args, **
160162
through its discriminator because we passed in
161163
_visited_composed_classes = (Animal,)
162164
filters ([SecurityMonitoringFilter]): Additional queries to filter matched events before they are processed.. [optional] # noqa: E501
165+
has_extended_title (bool): Whether the notifications include the triggering group-by values in their title.. [optional] # noqa: E501
163166
tags ([str]): Tags for generated signals.. [optional] # noqa: E501
164167
"""
165168

src/datadog_api_client/v2/model/security_monitoring_rule_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def openapi_types():
8282
"created_at": (int,), # noqa: E501
8383
"creation_author_id": (int,), # noqa: E501
8484
"filters": ([SecurityMonitoringFilter],), # noqa: E501
85+
"has_extended_title": (bool,), # noqa: E501
8586
"id": (str,), # noqa: E501
8687
"is_default": (bool,), # noqa: E501
8788
"is_deleted": (bool,), # noqa: E501
@@ -91,6 +92,7 @@ def openapi_types():
9192
"options": (SecurityMonitoringRuleOptions,), # noqa: E501
9293
"queries": ([SecurityMonitoringRuleQuery],), # noqa: E501
9394
"tags": ([str],), # noqa: E501
95+
"update_author_id": (int,), # noqa: E501
9496
"version": (int,), # noqa: E501
9597
}
9698

@@ -103,6 +105,7 @@ def discriminator():
103105
"created_at": "createdAt", # noqa: E501
104106
"creation_author_id": "creationAuthorId", # noqa: E501
105107
"filters": "filters", # noqa: E501
108+
"has_extended_title": "hasExtendedTitle", # noqa: E501
106109
"id": "id", # noqa: E501
107110
"is_default": "isDefault", # noqa: E501
108111
"is_deleted": "isDeleted", # noqa: E501
@@ -112,6 +115,7 @@ def discriminator():
112115
"options": "options", # noqa: E501
113116
"queries": "queries", # noqa: E501
114117
"tags": "tags", # noqa: E501
118+
"update_author_id": "updateAuthorId", # noqa: E501
115119
"version": "version", # noqa: E501
116120
}
117121

@@ -167,6 +171,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
167171
created_at (int): When the rule was created, timestamp in milliseconds.. [optional] # noqa: E501
168172
creation_author_id (int): User ID of the user who created the rule.. [optional] # noqa: E501
169173
filters ([SecurityMonitoringFilter]): Additional queries to filter matched events before they are processed.. [optional] # noqa: E501
174+
has_extended_title (bool): Whether the notifications include the triggering group-by values in their title.. [optional] # noqa: E501
170175
id (str): The ID of the rule.. [optional] # noqa: E501
171176
is_default (bool): Whether the rule is included by default.. [optional] # noqa: E501
172177
is_deleted (bool): Whether the rule has been deleted.. [optional] # noqa: E501
@@ -176,6 +181,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
176181
options (SecurityMonitoringRuleOptions): [optional] # noqa: E501
177182
queries ([SecurityMonitoringRuleQuery]): Queries for selecting logs which are part of the rule.. [optional] # noqa: E501
178183
tags ([str]): Tags for generated signals.. [optional] # noqa: E501
184+
update_author_id (int): User ID of the user who updated the rule.. [optional] # noqa: E501
179185
version (int): The version of the rule.. [optional] # noqa: E501
180186
"""
181187

src/datadog_api_client/v2/model/security_monitoring_rule_update_payload.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ class SecurityMonitoringRuleUpdatePayload(ModelNormal):
6060

6161
allowed_values = {}
6262

63-
validations = {}
63+
validations = {
64+
("version",): {
65+
"inclusive_maximum": 2147483647,
66+
},
67+
}
6468

6569
additional_properties_type = None
6670

@@ -80,12 +84,14 @@ def openapi_types():
8084
return {
8185
"cases": ([SecurityMonitoringRuleCase],), # noqa: E501
8286
"filters": ([SecurityMonitoringFilter],), # noqa: E501
87+
"has_extended_title": (bool,), # noqa: E501
8388
"is_enabled": (bool,), # noqa: E501
8489
"message": (str,), # noqa: E501
8590
"name": (str,), # noqa: E501
8691
"options": (SecurityMonitoringRuleOptions,), # noqa: E501
8792
"queries": ([SecurityMonitoringRuleQuery],), # noqa: E501
8893
"tags": ([str],), # noqa: E501
94+
"version": (int,), # noqa: E501
8995
}
9096

9197
@cached_property
@@ -95,12 +101,14 @@ def discriminator():
95101
attribute_map = {
96102
"cases": "cases", # noqa: E501
97103
"filters": "filters", # noqa: E501
104+
"has_extended_title": "hasExtendedTitle", # noqa: E501
98105
"is_enabled": "isEnabled", # noqa: E501
99106
"message": "message", # noqa: E501
100107
"name": "name", # noqa: E501
101108
"options": "options", # noqa: E501
102109
"queries": "queries", # noqa: E501
103110
"tags": "tags", # noqa: E501
111+
"version": "version", # noqa: E501
104112
}
105113

106114
_composed_schemas = {}
@@ -153,12 +161,14 @@ def __init__(self, *args, **kwargs): # noqa: E501
153161
_visited_composed_classes = (Animal,)
154162
cases ([SecurityMonitoringRuleCase]): Cases for generating signals.. [optional] # noqa: E501
155163
filters ([SecurityMonitoringFilter]): Additional queries to filter matched events before they are processed.. [optional] # noqa: E501
164+
has_extended_title (bool): Whether the notifications include the triggering group-by values in their title.. [optional] # noqa: E501
156165
is_enabled (bool): Whether the rule is enabled.. [optional] # noqa: E501
157166
message (str): Message for generated signals.. [optional] # noqa: E501
158167
name (str): Name of the rule.. [optional] # noqa: E501
159168
options (SecurityMonitoringRuleOptions): [optional] # noqa: E501
160169
queries ([SecurityMonitoringRuleQuery]): Queries for selecting logs which are part of the rule.. [optional] # noqa: E501
161170
tags ([str]): Tags for generated signals.. [optional] # noqa: E501
171+
version (int): The version of the rule being updated.. [optional] # noqa: E501
162172
"""
163173

164174
_check_type = kwargs.pop("_check_type", True)

src/datadog_api_client/v2/openapi.yaml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4145,7 +4145,7 @@ components:
41454145
description: List of rules.
41464146
properties:
41474147
data:
4148-
description: TODO.
4148+
description: Array containing the list of rules.
41494149
items:
41504150
$ref: '#/components/schemas/SecurityMonitoringRuleResponse'
41514151
type: array
@@ -4211,6 +4211,11 @@ components:
42114211
items:
42124212
$ref: '#/components/schemas/SecurityMonitoringFilter'
42134213
type: array
4214+
hasExtendedTitle:
4215+
description: Whether the notifications include the triggering group-by values
4216+
in their title.
4217+
example: true
4218+
type: boolean
42144219
isEnabled:
42154220
description: Whether the rule is enabled.
42164221
example: true
@@ -4221,7 +4226,7 @@ components:
42214226
type: string
42224227
name:
42234228
description: The name of the rule.
4224-
example: ''
4229+
example: My security monitoring rule.
42254230
type: string
42264231
options:
42274232
$ref: '#/components/schemas/SecurityMonitoringRuleOptions'
@@ -4474,13 +4479,13 @@ components:
44744479
type: string
44754480
query:
44764481
description: Query to run on logs.
4477-
example: a < 3
4482+
example: a > 3
44784483
type: string
44794484
required:
44804485
- query
44814486
type: object
44824487
SecurityMonitoringRuleResponse:
4483-
description: Detection rule.
4488+
description: Rule.
44844489
properties:
44854490
cases:
44864491
description: Cases for generating signals.
@@ -4501,6 +4506,10 @@ components:
45014506
items:
45024507
$ref: '#/components/schemas/SecurityMonitoringFilter'
45034508
type: array
4509+
hasExtendedTitle:
4510+
description: Whether the notifications include the triggering group-by values
4511+
in their title.
4512+
type: boolean
45044513
id:
45054514
description: The ID of the rule.
45064515
type: string
@@ -4532,6 +4541,10 @@ components:
45324541
description: Tag.
45334542
type: string
45344543
type: array
4544+
updateAuthorId:
4545+
description: User ID of the user who updated the rule.
4546+
format: int64
4547+
type: integer
45354548
version:
45364549
description: The version of the rule.
45374550
format: int64
@@ -4565,6 +4578,11 @@ components:
45654578
items:
45664579
$ref: '#/components/schemas/SecurityMonitoringFilter'
45674580
type: array
4581+
hasExtendedTitle:
4582+
description: Whether the notifications include the triggering group-by values
4583+
in their title.
4584+
example: true
4585+
type: boolean
45684586
isEnabled:
45694587
description: Whether the rule is enabled.
45704588
type: boolean
@@ -4587,6 +4605,12 @@ components:
45874605
description: Tag.
45884606
type: string
45894607
type: array
4608+
version:
4609+
description: The version of the rule being updated.
4610+
example: 1
4611+
format: int32
4612+
maximum: 2147483647
4613+
type: integer
45904614
type: object
45914615
SecurityMonitoringRuntimeAgentRule:
45924616
description: The Agent rule.

0 commit comments

Comments
 (0)