Skip to content

Commit 0ecfd5f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1393084 of spec repo
1 parent fb48d9e commit 0ecfd5f

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189930,7 +189930,7 @@ paths:
189930189930
data:
189931189931
attributes:
189932189932
enabled: true
189933-
name: Rule 1
189933+
name: Rule <UUID>
189934189934
selectors:
189935189935
query: (source:production_service OR env:prod)
189936189936
rule_types:
@@ -190111,7 +190111,7 @@ paths:
190111190111
data:
190112190112
attributes:
190113190113
enabled: true
190114-
name: Rule 1
190114+
name: Rule <UUID>
190115190115
selectors:
190116190116
query: (source:production_service OR env:prod)
190117190117
rule_types:
@@ -190753,7 +190753,7 @@ paths:
190753190753
data:
190754190754
attributes:
190755190755
enabled: true
190756-
name: Rule 1
190756+
name: Rule <UUID>
190757190757
selectors:
190758190758
query: (source:production_service OR env:prod)
190759190759
rule_types:
@@ -190936,7 +190936,7 @@ paths:
190936190936
data:
190937190937
attributes:
190938190938
enabled: true
190939-
name: Rule 1
190939+
name: Rule <UUID>
190940190940
selectors:
190941190941
query: (source:production_service OR env:prod)
190942190942
rule_types:

examples/v2/security-monitoring/CreateSignalNotificationRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static void main(String[] args) {
2828
.attributes(
2929
new CreateNotificationRuleParametersDataAttributes()
3030
.enabled(true)
31-
.name("Rule 1")
31+
.name("Rule 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
3232
.selectors(
3333
new Selectors()
3434
.query("(source:production_service OR env:prod)")

examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static void main(String[] args) {
2828
.attributes(
2929
new CreateNotificationRuleParametersDataAttributes()
3030
.enabled(true)
31-
.name("Rule 1")
31+
.name("Rule 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
3232
.selectors(
3333
new Selectors()
3434
.query("(source:production_service OR env:prod)")

examples/v2/security-monitoring/PatchSignalNotificationRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void main(String[] args) {
3131
.attributes(
3232
new PatchNotificationRuleParametersDataAttributes()
3333
.enabled(true)
34-
.name("Rule 1")
34+
.name("Rule 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
3535
.selectors(
3636
new Selectors()
3737
.query("(source:production_service OR env:prod)")

examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void main(String[] args) {
3232
.attributes(
3333
new PatchNotificationRuleParametersDataAttributes()
3434
.enabled(true)
35-
.name("Rule 1")
35+
.name("Rule 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
3636
.selectors(
3737
new Selectors()
3838
.query("(source:production_service OR env:prod)")

src/test/resources/com/datadog/api/client/v2/api/given.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@
13701370
"parameters": [
13711371
{
13721372
"name": "body",
1373-
"value": "{\n \"data\": {\n \"type\": \"notification_rules\",\n \"attributes\": {\n \"name\": \"{{ unique }}\",\n \"selectors\": {\n \"rule_types\": [\"signal_correlation\"],\n \"trigger_source\": \"security_signals\",\n \"severities\": [\"critical\"],\n \"query\": \"env:test\"\n },\n \"targets\": [\"@email@email.com\"],\n \"enabled\": true\n }\n }\n}"
1373+
"value": "{\n \"data\": {\n \"type\": \"notification_rules\",\n \"attributes\": {\n \"name\": \"Rule {{ uuid }}\",\n \"selectors\": {\n \"rule_types\": [\"signal_correlation\"],\n \"trigger_source\": \"security_signals\",\n \"severities\": [\"critical\"],\n \"query\": \"env:test\"\n },\n \"targets\": [\"@email@email.com\"],\n \"enabled\": true\n }\n }\n}"
13741374
}
13751375
],
13761376
"step": "there is a valid \"valid_signal_notification_rule\" in the system",
@@ -1382,7 +1382,7 @@
13821382
"parameters": [
13831383
{
13841384
"name": "body",
1385-
"value": "{\n \"data\": {\n \"type\": \"notification_rules\",\n \"attributes\": {\n \"name\": \"{{ unique }}\",\n \"selectors\": {\n \"rule_types\": [\"misconfiguration\", \"attack_path\"],\n \"trigger_source\": \"security_findings\",\n \"severities\": [\"critical\"],\n \"query\": \"env:test\"\n },\n \"time_aggregation\": 86400,\n \"targets\": [\"@email@email.com\"],\n \"enabled\": true\n }\n }\n}"
1385+
"value": "{\n \"data\": {\n \"type\": \"notification_rules\",\n \"attributes\": {\n \"name\": \"Rule {{ uuid }}\",\n \"selectors\": {\n \"rule_types\": [\"misconfiguration\", \"attack_path\"],\n \"trigger_source\": \"security_findings\",\n \"severities\": [\"critical\"],\n \"query\": \"env:test\"\n },\n \"time_aggregation\": 86400,\n \"targets\": [\"@email@email.com\"],\n \"enabled\": true\n }\n }\n}"
13861386
}
13871387
],
13881388
"step": "there is a valid \"valid_vulnerability_notification_rule\" in the system",

src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ Feature: Security Monitoring
883883
@team:DataDog/cloud-security-posture-management
884884
Scenario: Create a new signal-based notification rule returns "Successfully created the notification rule." response
885885
Given new "CreateSignalNotificationRule" request
886-
And body with value {"data": {"attributes": {"enabled": true, "name": "Rule 1", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["misconfiguration", "attack_path"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400}, "type": "notification_rules"}}
886+
And body with value {"data": {"attributes": {"enabled": true, "name": "Rule {{ uuid }}", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["misconfiguration", "attack_path"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400}, "type": "notification_rules"}}
887887
When the request is sent
888888
Then the response status is 201 Successfully created the notification rule.
889889

@@ -897,7 +897,7 @@ Feature: Security Monitoring
897897
@team:DataDog/cloud-security-posture-management
898898
Scenario: Create a new vulnerability-based notification rule returns "Successfully created the notification rule." response
899899
Given new "CreateVulnerabilityNotificationRule" request
900-
And body with value {"data": {"attributes": {"enabled": true, "name": "Rule 1", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["misconfiguration", "attack_path"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400}, "type": "notification_rules"}}
900+
And body with value {"data": {"attributes": {"enabled": true, "name": "Rule {{ uuid }}", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["misconfiguration", "attack_path"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400}, "type": "notification_rules"}}
901901
When the request is sent
902902
Then the response status is 201 Successfully created the notification rule.
903903

@@ -2810,7 +2810,7 @@ Feature: Security Monitoring
28102810
Given new "PatchSignalNotificationRule" request
28112811
And there is a valid "valid_signal_notification_rule" in the system
28122812
And request contains "id" parameter from "valid_signal_notification_rule.data.id"
2813-
And body with value {"data": {"attributes": {"enabled": true, "name": "Rule 1", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["misconfiguration", "attack_path"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400, "version": 1}, "id": "aaa-bbb-ccc", "type": "notification_rules"}}
2813+
And body with value {"data": {"attributes": {"enabled": true, "name": "Rule {{ uuid }}", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["misconfiguration", "attack_path"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400, "version": 1}, "id": "aaa-bbb-ccc", "type": "notification_rules"}}
28142814
When the request is sent
28152815
Then the response status is 200 Notification rule successfully patched.
28162816

@@ -2844,7 +2844,7 @@ Feature: Security Monitoring
28442844
Given new "PatchVulnerabilityNotificationRule" request
28452845
And there is a valid "valid_vulnerability_notification_rule" in the system
28462846
And request contains "id" parameter from "valid_vulnerability_notification_rule.data.id"
2847-
And body with value {"data": {"attributes": {"enabled": true, "name": "Rule 1", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["misconfiguration", "attack_path"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400, "version": 1}, "id": "aaa-bbb-ccc", "type": "notification_rules"}}
2847+
And body with value {"data": {"attributes": {"enabled": true, "name": "Rule {{ uuid }}", "selectors": {"query": "(source:production_service OR env:prod)", "rule_types": ["misconfiguration", "attack_path"], "severities": ["critical"], "trigger_source": "security_findings"}, "targets": ["@john.doe@email.com"], "time_aggregation": 86400, "version": 1}, "id": "aaa-bbb-ccc", "type": "notification_rules"}}
28482848
When the request is sent
28492849
Then the response status is 200 Notification rule successfully patched.
28502850

0 commit comments

Comments
 (0)