You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inline rule definitions for a deployment gate evaluation. When provided, rules are evaluated
29388
+
directly from this configuration instead of using the pre-configured gate rules.
29389
+
At least one rule is required.
29390
+
properties:
29391
+
dry_run:
29392
+
description: Gate-level dry run. When enabled, the rules are evaluated normally but the gate always returns `pass`. The real result is visible in the Datadog UI.
29393
+
example: false
29394
+
type: boolean
29395
+
rules:
29396
+
description: The list of rules to evaluate. At least one rule is required.
description: A faulty deployment detection rule to evaluate as part of a deployment gate evaluation.
29601
+
properties:
29602
+
dry_run:
29603
+
description: Rule-level dry run. When enabled, the rule is evaluated normally but it always returns `pass`. The real result is visible in the Datadog UI.
description: Options for a `faulty_deployment_detection` rule.
29620
+
properties:
29621
+
duration:
29622
+
description: Evaluation window in seconds. Maximum 7200 (2 hours).
29623
+
example: 900
29624
+
format: int64
29625
+
maximum: 7200
29626
+
type: integer
29627
+
excluded_resources:
29628
+
description: APM resource names to exclude from analysis.
29629
+
example:
29630
+
- "GET /healthcheck"
29631
+
items:
29632
+
type: string
29633
+
type: array
29634
+
type: object
29635
+
DeploymentGatesFDDRuleType:
29636
+
description: The type identifier for a faulty deployment detection rule.
29637
+
enum:
29638
+
- faulty_deployment_detection
29639
+
example: faulty_deployment_detection
29640
+
type: string
29641
+
x-enum-varnames:
29642
+
- FAULTY_DEPLOYMENT_DETECTION
29565
29643
DeploymentGatesListResponse:
29566
29644
description: Response containing a paginated list of deployment gates.
29567
29645
properties:
@@ -29596,6 +29674,49 @@ components:
29596
29674
minimum: 1
29597
29675
type: integer
29598
29676
type: object
29677
+
DeploymentGatesMonitorRule:
29678
+
description: A monitor rule to evaluate as part of a deployment gate evaluation.
29679
+
properties:
29680
+
dry_run:
29681
+
description: Rule-level dry run. When enabled, the rule is evaluated normally but it always returns `pass`. The real result is visible in the Datadog UI.
Copy file name to clipboardExpand all lines: features/v2/deployment_gates.feature
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -286,23 +286,23 @@ Feature: Deployment Gates
286
286
Scenario: Trigger a deployment gate evaluation returns "Accepted" response
287
287
Given operation "TriggerDeploymentGatesEvaluation" enabled
288
288
And new "TriggerDeploymentGatesEvaluation" request
289
-
And body with value {"data": {"attributes": {"env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
289
+
And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
290
290
When the request is sent
291
291
Then the response status is 202 Accepted
292
292
293
293
@generated@skip@team:DataDog/ci-app-backend
294
294
Scenario: Trigger a deployment gate evaluation returns "Bad request." response
295
295
Given operation "TriggerDeploymentGatesEvaluation" enabled
296
296
And new "TriggerDeploymentGatesEvaluation" request
297
-
And body with value {"data": {"attributes": {"env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
297
+
And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
298
298
When the request is sent
299
299
Then the response status is 400 Bad request.
300
300
301
301
@generated@skip@team:DataDog/ci-app-backend
302
302
Scenario: Trigger a deployment gate evaluation returns "Deployment gate not found." response
303
303
Given operation "TriggerDeploymentGatesEvaluation" enabled
304
304
And new "TriggerDeploymentGatesEvaluation" request
305
-
And body with value {"data": {"attributes": {"env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
305
+
And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
306
306
When the request is sent
307
307
Then the response status is 404 Deployment gate not found.
0 commit comments