Skip to content

Commit 3e0b8a4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a09fec54 of spec repo (#1196)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent cef2360 commit 3e0b8a4

File tree

7 files changed

+130
-11
lines changed

7 files changed

+130
-11
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.4",
7-
"regenerated": "2022-10-06 09:26:36.587132",
8-
"spec_repo_commit": "c520a0fb"
7+
"regenerated": "2022-10-07 13:12:58.196696",
8+
"spec_repo_commit": "a09fec54"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-06 09:26:36.625426",
13-
"spec_repo_commit": "c520a0fb"
12+
"regenerated": "2022-10-07 13:12:58.212913",
13+
"spec_repo_commit": "a09fec54"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7850,7 +7850,7 @@ components:
78507850
- message
78517851
type: object
78527852
SecurityMonitoringSignalRuleQuery:
7853-
description: Query for matching rule on signals
7853+
description: Query for matching rule on signals.
78547854
properties:
78557855
aggregation:
78567856
$ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
@@ -7877,7 +7877,7 @@ components:
78777877
type: string
78787878
ruleId:
78797879
description: Rule ID to match on signals.
7880-
example: d3f-ru1-e1d
7880+
example: org-ru1-e1d
78817881
type: string
78827882
required:
78837883
- ruleId
@@ -7931,7 +7931,7 @@ components:
79317931
queries:
79327932
description: Queries for selecting logs which are part of the rule.
79337933
items:
7934-
$ref: '#/components/schemas/SecurityMonitoringSignalRuleQuery'
7934+
$ref: '#/components/schemas/SecurityMonitoringSignalRuleResponseQuery'
79357935
type: array
79367936
tags:
79377937
description: Tags for generated signals.
@@ -7949,6 +7949,41 @@ components:
79497949
description: The version of the rule.
79507950
format: int64
79517951
type: integer
7952+
SecurityMonitoringSignalRuleResponseQuery:
7953+
description: Query for matching rule on signals.
7954+
properties:
7955+
aggregation:
7956+
$ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
7957+
correlatedByFields:
7958+
description: Fields to group by.
7959+
items:
7960+
description: Field.
7961+
type: string
7962+
type: array
7963+
correlatedQueryIndex:
7964+
description: Index of the rule query used to retrieve the correlated field.
7965+
format: int32
7966+
maximum: 9
7967+
type: integer
7968+
defaultRuleId:
7969+
description: Default Rule ID to match on signals.
7970+
example: d3f-ru1-e1d
7971+
type: string
7972+
metrics:
7973+
description: Group of target fields to aggregate over when using the new
7974+
value aggregations.
7975+
items:
7976+
description: Field.
7977+
type: string
7978+
type: array
7979+
name:
7980+
description: Name of the query.
7981+
type: string
7982+
ruleId:
7983+
description: Rule ID to match on signals.
7984+
example: org-ru1-e1d
7985+
type: string
7986+
type: object
79527987
SecurityMonitoringSignalRuleType:
79537988
description: The rule type.
79547989
enum:

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,6 +3557,13 @@ security\_monitoring\_signal\_rule\_response
35573557
:members:
35583558
:show-inheritance:
35593559

3560+
security\_monitoring\_signal\_rule\_response\_query
3561+
---------------------------------------------------
3562+
3563+
.. automodule:: datadog_api_client.v2.model.security_monitoring_signal_rule_response_query
3564+
:members:
3565+
:show-inheritance:
3566+
35603567
security\_monitoring\_signal\_rule\_type
35613568
----------------------------------------
35623569

src/datadog_api_client/v2/model/security_monitoring_signal_rule_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def openapi_types(_):
4242

4343
def __init__(self_, rule_id, *args, **kwargs):
4444
"""
45-
Query for matching rule on signals
45+
Query for matching rule on signals.
4646
4747
:param aggregation: The aggregation type.
4848
:type aggregation: SecurityMonitoringRuleQueryAggregation, optional

src/datadog_api_client/v2/model/security_monitoring_signal_rule_response.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ def openapi_types(_):
1515
from datadog_api_client.v2.model.security_monitoring_rule_case import SecurityMonitoringRuleCase
1616
from datadog_api_client.v2.model.security_monitoring_filter import SecurityMonitoringFilter
1717
from datadog_api_client.v2.model.security_monitoring_rule_options import SecurityMonitoringRuleOptions
18-
from datadog_api_client.v2.model.security_monitoring_signal_rule_query import SecurityMonitoringSignalRuleQuery
18+
from datadog_api_client.v2.model.security_monitoring_signal_rule_response_query import (
19+
SecurityMonitoringSignalRuleResponseQuery,
20+
)
1921
from datadog_api_client.v2.model.security_monitoring_signal_rule_type import SecurityMonitoringSignalRuleType
2022

2123
return {
@@ -31,7 +33,7 @@ def openapi_types(_):
3133
"message": (str,),
3234
"name": (str,),
3335
"options": (SecurityMonitoringRuleOptions,),
34-
"queries": ([SecurityMonitoringSignalRuleQuery],),
36+
"queries": ([SecurityMonitoringSignalRuleResponseQuery],),
3537
"tags": ([str],),
3638
"type": (SecurityMonitoringSignalRuleType,),
3739
"update_author_id": (int,),
@@ -99,7 +101,7 @@ def __init__(self_, *args, **kwargs):
99101
:type options: SecurityMonitoringRuleOptions, optional
100102
101103
:param queries: Queries for selecting logs which are part of the rule.
102-
:type queries: [SecurityMonitoringSignalRuleQuery], optional
104+
:type queries: [SecurityMonitoringSignalRuleResponseQuery], optional
103105
104106
:param tags: Tags for generated signals.
105107
:type tags: [str], optional
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
5+
6+
from datadog_api_client.model_utils import (
7+
ModelNormal,
8+
cached_property,
9+
)
10+
11+
12+
class SecurityMonitoringSignalRuleResponseQuery(ModelNormal):
13+
validations = {
14+
"correlated_query_index": {
15+
"inclusive_maximum": 9,
16+
},
17+
}
18+
19+
@cached_property
20+
def openapi_types(_):
21+
from datadog_api_client.v2.model.security_monitoring_rule_query_aggregation import (
22+
SecurityMonitoringRuleQueryAggregation,
23+
)
24+
25+
return {
26+
"aggregation": (SecurityMonitoringRuleQueryAggregation,),
27+
"correlated_by_fields": ([str],),
28+
"correlated_query_index": (int,),
29+
"default_rule_id": (str,),
30+
"metrics": ([str],),
31+
"name": (str,),
32+
"rule_id": (str,),
33+
}
34+
35+
attribute_map = {
36+
"aggregation": "aggregation",
37+
"correlated_by_fields": "correlatedByFields",
38+
"correlated_query_index": "correlatedQueryIndex",
39+
"default_rule_id": "defaultRuleId",
40+
"metrics": "metrics",
41+
"name": "name",
42+
"rule_id": "ruleId",
43+
}
44+
45+
def __init__(self_, *args, **kwargs):
46+
"""
47+
Query for matching rule on signals.
48+
49+
:param aggregation: The aggregation type.
50+
:type aggregation: SecurityMonitoringRuleQueryAggregation, optional
51+
52+
:param correlated_by_fields: Fields to group by.
53+
:type correlated_by_fields: [str], optional
54+
55+
:param correlated_query_index: Index of the rule query used to retrieve the correlated field.
56+
:type correlated_query_index: int, optional
57+
58+
:param default_rule_id: Default Rule ID to match on signals.
59+
:type default_rule_id: str, optional
60+
61+
:param metrics: Group of target fields to aggregate over when using the new value aggregations.
62+
:type metrics: [str], optional
63+
64+
:param name: Name of the query.
65+
:type name: str, optional
66+
67+
:param rule_id: Rule ID to match on signals.
68+
:type rule_id: str, optional
69+
"""
70+
super().__init__(kwargs)
71+
72+
self_._check_pos_args(args)

src/datadog_api_client/v2/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,9 @@
600600
)
601601
from datadog_api_client.v2.model.security_monitoring_signal_rule_query import SecurityMonitoringSignalRuleQuery
602602
from datadog_api_client.v2.model.security_monitoring_signal_rule_response import SecurityMonitoringSignalRuleResponse
603+
from datadog_api_client.v2.model.security_monitoring_signal_rule_response_query import (
604+
SecurityMonitoringSignalRuleResponseQuery,
605+
)
603606
from datadog_api_client.v2.model.security_monitoring_signal_rule_type import SecurityMonitoringSignalRuleType
604607
from datadog_api_client.v2.model.security_monitoring_signal_state import SecurityMonitoringSignalState
605608
from datadog_api_client.v2.model.security_monitoring_signal_state_update_attributes import (

0 commit comments

Comments
 (0)