-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SMD-491] - Introduce the detections methods and the new value rules options #1116
[SMD-491] - Introduce the detections methods and the new value rules options #1116
Conversation
be85de7
to
9f1facf
Compare
9f1facf
to
c4441a1
Compare
fd21ae7
to
aa2246b
Compare
22b3d8b
to
7e54075
Compare
d59d285
to
ded55de
Compare
ded55de
to
ae4a752
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also update the doc here? https://github.com/DataDog/terraform-provider-datadog/blob/master/docs/resources/security_monitoring_rule.md
@@ -108,6 +116,30 @@ func datadogSecurityMonitoringRuleSchema() map[string]*schema.Schema { | |||
Required: true, | |||
Description: "A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. This time is calculated from the first seen timestamp.", | |||
}, | |||
|
|||
"new_value_options": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new_value
would make more sense imo since this is already inside of options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm; agreed; but it's the same "string" in the json api; so like this we have a direct mapping; I think it will help avoiding confusions.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This PR extend the current datadog provider for security rules.
It add support for the detection method "new_value"; as for the detection method fields.
It will be followed by other PRs making the provider up to date with the current state of the API.