Skip to content

Commit 49666cb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a82be8f8 of spec repo (#1085)
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 69d1c19 commit 49666cb

File tree

7 files changed

+32
-8
lines changed

7 files changed

+32
-8
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.2",
7-
"regenerated": "2022-07-19 16:28:26.812126",
8-
"spec_repo_commit": "448d6aae"
7+
"regenerated": "2022-07-20 11:53:31.747156",
8+
"spec_repo_commit": "a82be8f8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-07-19 16:28:26.832274",
13-
"spec_repo_commit": "448d6aae"
12+
"regenerated": "2022-07-20 11:53:31.792513",
13+
"spec_repo_commit": "a82be8f8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6669,6 +6669,13 @@ components:
66696669
66706670
aggregations.'
66716671
type: string
6672+
metrics:
6673+
description: Group of target fields to aggregate over when using the new
6674+
value aggregations.
6675+
items:
6676+
description: Field.
6677+
type: string
6678+
type: array
66726679
name:
66736680
description: Name of the query.
66746681
type: string
@@ -6715,6 +6722,13 @@ components:
67156722
67166723
aggregations.'
67176724
type: string
6725+
metrics:
6726+
description: Group of target fields to aggregate over when using the new
6727+
value aggregations.
6728+
items:
6729+
description: Field.
6730+
type: string
6731+
type: array
67186732
name:
67196733
description: Name of the query.
67206734
type: string

examples/v2/security-monitoring/UpdateSecurityMonitoringRule.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
aggregation=SecurityMonitoringRuleQueryAggregation("count"),
7878
distinct_fields=[],
7979
group_by_fields=[],
80+
metrics=[],
8081
),
8182
],
8283
tags=[],

src/datadog_api_client/v2/model/security_monitoring_rule_query.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def openapi_types(_):
2121
"distinct_fields": ([str],),
2222
"group_by_fields": ([str],),
2323
"metric": (str,),
24+
"metrics": ([str],),
2425
"name": (str,),
2526
"query": (str,),
2627
}
@@ -30,6 +31,7 @@ def openapi_types(_):
3031
"distinct_fields": "distinctFields",
3132
"group_by_fields": "groupByFields",
3233
"metric": "metric",
34+
"metrics": "metrics",
3335
"name": "name",
3436
"query": "query",
3537
}
@@ -51,6 +53,9 @@ def __init__(self, *args, **kwargs):
5153
aggregations.
5254
:type metric: str, optional
5355
56+
:param metrics: Group of target fields to aggregate over when using the new value aggregations.
57+
:type metrics: [str], optional
58+
5459
:param name: Name of the query.
5560
:type name: str, optional
5661

src/datadog_api_client/v2/model/security_monitoring_rule_query_create.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def openapi_types(_):
2121
"distinct_fields": ([str],),
2222
"group_by_fields": ([str],),
2323
"metric": (str,),
24+
"metrics": ([str],),
2425
"name": (str,),
2526
"query": (str,),
2627
}
@@ -30,6 +31,7 @@ def openapi_types(_):
3031
"distinct_fields": "distinctFields",
3132
"group_by_fields": "groupByFields",
3233
"metric": "metric",
34+
"metrics": "metrics",
3335
"name": "name",
3436
"query": "query",
3537
}
@@ -51,6 +53,9 @@ def __init__(self, query, *args, **kwargs):
5153
aggregations.
5254
:type metric: str, optional
5355
56+
:param metrics: Group of target fields to aggregate over when using the new value aggregations.
57+
:type metrics: [str], optional
58+
5459
:param name: Name of the query.
5560
:type name: str, optional
5661

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def pytest_terminal_summary(terminalreporter, exitstatus, config):
4242
"%40test.service%3A{}%20%40ci.pipeline.id%3A{}&index=citest".format(dd_service, ci_pipeline_id)
4343
)
4444

45-
4645
except ImportError:
4746
if os.getenv("CI", "false") == "true" and RECORD == "none":
4847
raise

tests/v2/features/security_monitoring.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,22 +298,22 @@ Feature: Security Monitoring
298298
Scenario: Update an existing rule returns "Bad Request" response
299299
Given new "UpdateSecurityMonitoringRule" request
300300
And request contains "rule_id" parameter from "REPLACE.ME"
301-
And body with value {"cases": [{"notifications": [], "status": "critical"}], "filters": [{"action": "require"}], "hasExtendedTitle": true, "options": {"decreaseCriticalityBasedOnEnv": false, "detectionMethod": "threshold", "evaluationWindow": 0, "hardcodedEvaluatorType": "log4shell", "impossibleTravelOptions": {"baselineUserLocations": true}, "keepAlive": 0, "maxSignalDuration": 0, "newValueOptions": {"forgetAfter": 1, "learningDuration": 0, "learningMethod": "duration", "learningThreshold": 0}}, "queries": [{"aggregation": "count", "distinctFields": [], "groupByFields": []}], "tags": [], "version": 1}
301+
And body with value {"cases": [{"notifications": [], "status": "critical"}], "filters": [{"action": "require"}], "hasExtendedTitle": true, "options": {"decreaseCriticalityBasedOnEnv": false, "detectionMethod": "threshold", "evaluationWindow": 0, "hardcodedEvaluatorType": "log4shell", "impossibleTravelOptions": {"baselineUserLocations": true}, "keepAlive": 0, "maxSignalDuration": 0, "newValueOptions": {"forgetAfter": 1, "learningDuration": 0, "learningMethod": "duration", "learningThreshold": 0}}, "queries": [{"aggregation": "count", "distinctFields": [], "groupByFields": [], "metrics": []}], "tags": [], "version": 1}
302302
When the request is sent
303303
Then the response status is 400 Bad Request
304304

305305
@generated @skip @team:DataDog/k9-cloud-security-platform
306306
Scenario: Update an existing rule returns "Not Found" response
307307
Given new "UpdateSecurityMonitoringRule" request
308308
And request contains "rule_id" parameter from "REPLACE.ME"
309-
And body with value {"cases": [{"notifications": [], "status": "critical"}], "filters": [{"action": "require"}], "hasExtendedTitle": true, "options": {"decreaseCriticalityBasedOnEnv": false, "detectionMethod": "threshold", "evaluationWindow": 0, "hardcodedEvaluatorType": "log4shell", "impossibleTravelOptions": {"baselineUserLocations": true}, "keepAlive": 0, "maxSignalDuration": 0, "newValueOptions": {"forgetAfter": 1, "learningDuration": 0, "learningMethod": "duration", "learningThreshold": 0}}, "queries": [{"aggregation": "count", "distinctFields": [], "groupByFields": []}], "tags": [], "version": 1}
309+
And body with value {"cases": [{"notifications": [], "status": "critical"}], "filters": [{"action": "require"}], "hasExtendedTitle": true, "options": {"decreaseCriticalityBasedOnEnv": false, "detectionMethod": "threshold", "evaluationWindow": 0, "hardcodedEvaluatorType": "log4shell", "impossibleTravelOptions": {"baselineUserLocations": true}, "keepAlive": 0, "maxSignalDuration": 0, "newValueOptions": {"forgetAfter": 1, "learningDuration": 0, "learningMethod": "duration", "learningThreshold": 0}}, "queries": [{"aggregation": "count", "distinctFields": [], "groupByFields": [], "metrics": []}], "tags": [], "version": 1}
310310
When the request is sent
311311
Then the response status is 404 Not Found
312312

313313
@generated @skip @team:DataDog/k9-cloud-security-platform
314314
Scenario: Update an existing rule returns "OK" response
315315
Given new "UpdateSecurityMonitoringRule" request
316316
And request contains "rule_id" parameter from "REPLACE.ME"
317-
And body with value {"cases": [{"notifications": [], "status": "critical"}], "filters": [{"action": "require"}], "hasExtendedTitle": true, "options": {"decreaseCriticalityBasedOnEnv": false, "detectionMethod": "threshold", "evaluationWindow": 0, "hardcodedEvaluatorType": "log4shell", "impossibleTravelOptions": {"baselineUserLocations": true}, "keepAlive": 0, "maxSignalDuration": 0, "newValueOptions": {"forgetAfter": 1, "learningDuration": 0, "learningMethod": "duration", "learningThreshold": 0}}, "queries": [{"aggregation": "count", "distinctFields": [], "groupByFields": []}], "tags": [], "version": 1}
317+
And body with value {"cases": [{"notifications": [], "status": "critical"}], "filters": [{"action": "require"}], "hasExtendedTitle": true, "options": {"decreaseCriticalityBasedOnEnv": false, "detectionMethod": "threshold", "evaluationWindow": 0, "hardcodedEvaluatorType": "log4shell", "impossibleTravelOptions": {"baselineUserLocations": true}, "keepAlive": 0, "maxSignalDuration": 0, "newValueOptions": {"forgetAfter": 1, "learningDuration": 0, "learningMethod": "duration", "learningThreshold": 0}}, "queries": [{"aggregation": "count", "distinctFields": [], "groupByFields": [], "metrics": []}], "tags": [], "version": 1}
318318
When the request is sent
319319
Then the response status is 200 OK

0 commit comments

Comments
 (0)