Skip to content

Commit a493616

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spectherve
authored
Regenerate client from commit a82be8f8 of spec repo (#750)
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> Co-authored-by: Thomas Hervé <[email protected]>
1 parent 938a201 commit a493616

File tree

6 files changed

+38
-7
lines changed

6 files changed

+38
-7
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:33.415866",
8-
"spec_repo_commit": "448d6aae"
7+
"regenerated": "2022-07-20 11:53:43.490687",
8+
"spec_repo_commit": "a82be8f8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-07-19 16:28:33.428437",
13-
"spec_repo_commit": "448d6aae"
12+
"regenerated": "2022-07-20 11:53:43.507959",
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.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const params: v2.SecurityMonitoringApiUpdateSecurityMonitoringRuleRequest = {
4343
aggregation: "count",
4444
distinctFields: [],
4545
groupByFields: [],
46+
metrics: [],
4647
},
4748
],
4849
tags: [],

features/v2/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

packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export class SecurityMonitoringRuleQuery {
2828
* aggregations.
2929
*/
3030
"metric"?: string;
31+
/**
32+
* Group of target fields to aggregate over when using the new value aggregations.
33+
*/
34+
"metrics"?: Array<string>;
3135
/**
3236
* Name of the query.
3337
*/
@@ -62,6 +66,10 @@ export class SecurityMonitoringRuleQuery {
6266
baseName: "metric",
6367
type: "string",
6468
},
69+
metrics: {
70+
baseName: "metrics",
71+
type: "Array<string>",
72+
},
6573
name: {
6674
baseName: "name",
6775
type: "string",

packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export class SecurityMonitoringRuleQueryCreate {
2828
* aggregations.
2929
*/
3030
"metric"?: string;
31+
/**
32+
* Group of target fields to aggregate over when using the new value aggregations.
33+
*/
34+
"metrics"?: Array<string>;
3135
/**
3236
* Name of the query.
3337
*/
@@ -62,6 +66,10 @@ export class SecurityMonitoringRuleQueryCreate {
6266
baseName: "metric",
6367
type: "string",
6468
},
69+
metrics: {
70+
baseName: "metrics",
71+
type: "Array<string>",
72+
},
6573
name: {
6674
baseName: "name",
6775
type: "string",

0 commit comments

Comments
 (0)