Skip to content

Commit 6bdaf63

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix maxSignalDuration third party (#1986)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 1d2a6dd commit 6bdaf63

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
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.6",
7-
"regenerated": "2024-09-04 14:47:45.810220",
8-
"spec_repo_commit": "b31c228b"
7+
"regenerated": "2024-09-04 15:23:39.223505",
8+
"spec_repo_commit": "fe4f848e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-04 14:47:45.828213",
13-
"spec_repo_commit": "b31c228b"
12+
"regenerated": "2024-09-04 15:23:39.241725",
13+
"spec_repo_commit": "fe4f848e"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-05-10T16:34:29.476Z
1+
2024-09-04T13:32:10.858Z

cassettes/features/v2/security_monitoring/Create-a-detection-rule-with-detection-method-third-party-returns-OK-response.yml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
2626
detection_method: DatadogAPIClient::V2::SecurityMonitoringRuleDetectionMethod::THIRD_PARTY,
2727
keep_alive: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive::ZERO_MINUTES,
28-
max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::ZERO_MINUTES,
28+
max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::TEN_MINUTES,
2929
third_party_rule_options: DatadogAPIClient::V2::SecurityMonitoringRuleThirdPartyOptions.new({
3030
default_status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO,
3131
root_queries: [

features/v2/security_monitoring.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Feature: Security Monitoring
133133
@team:DataDog/k9-cloud-security-platform
134134
Scenario: Create a detection rule with detection method 'third_party' returns "OK" response
135135
Given new "CreateSecurityMonitoringRule" request
136-
And body with value {"name":"{{ unique }}","type":"log_detection","isEnabled":true,"thirdPartyCases":[{"query":"status:error","name":"high","status":"high"},{"query":"status:info","name":"low","status":"low"}],"queries":[],"cases":[],"message":"This is a third party rule","options":{"detectionMethod":"third_party","keepAlive":0,"maxSignalDuration":0,"thirdPartyRuleOptions":{"defaultStatus":"info","rootQueries":[{"query":"source:guardduty @details.alertType:*EC2*", "groupByFields":["instance-id"]},{"query":"source:guardduty", "groupByFields":[]}]}}}
136+
And body with value {"name":"{{ unique }}","type":"log_detection","isEnabled":true,"thirdPartyCases":[{"query":"status:error","name":"high","status":"high"},{"query":"status:info","name":"low","status":"low"}],"queries":[],"cases":[],"message":"This is a third party rule","options":{"detectionMethod":"third_party","keepAlive":0,"maxSignalDuration":600,"thirdPartyRuleOptions":{"defaultStatus":"info","rootQueries":[{"query":"source:guardduty @details.alertType:*EC2*", "groupByFields":["instance-id"]},{"query":"source:guardduty", "groupByFields":[]}]}}}
137137
When the request is sent
138138
Then the response status is 200 OK
139139
And the response "name" is equal to "{{ unique }}"

0 commit comments

Comments
 (0)