Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43960,13 +43960,17 @@ components:
- false_positive
- testing_or_maintenance
- investigated_case_opened
- true_positive_benign
- true_positive_malicious
- other
type: string
x-enum-varnames:
- NONE
- FALSE_POSITIVE
- TESTING_OR_MAINTENANCE
- INVESTIGATED_CASE_OPENED
- TRUE_POSITIVE_BENIGN
- TRUE_POSITIVE_MALICIOUS
- OTHER
SecurityMonitoringSignalAssigneeUpdateAttributes:
description: Attributes describing the new assignee of a security signal.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ pub enum SecurityMonitoringSignalArchiveReason {
FALSE_POSITIVE,
TESTING_OR_MAINTENANCE,
INVESTIGATED_CASE_OPENED,
TRUE_POSITIVE_BENIGN,
TRUE_POSITIVE_MALICIOUS,
OTHER,
UnparsedObject(crate::datadog::UnparsedObject),
}
Expand All @@ -22,6 +24,8 @@ impl ToString for SecurityMonitoringSignalArchiveReason {
Self::FALSE_POSITIVE => String::from("false_positive"),
Self::TESTING_OR_MAINTENANCE => String::from("testing_or_maintenance"),
Self::INVESTIGATED_CASE_OPENED => String::from("investigated_case_opened"),
Self::TRUE_POSITIVE_BENIGN => String::from("true_positive_benign"),
Self::TRUE_POSITIVE_MALICIOUS => String::from("true_positive_malicious"),
Self::OTHER => String::from("other"),
Self::UnparsedObject(v) => v.value.to_string(),
}
Expand Down Expand Up @@ -51,6 +55,8 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSignalArchiveReason {
"false_positive" => Self::FALSE_POSITIVE,
"testing_or_maintenance" => Self::TESTING_OR_MAINTENANCE,
"investigated_case_opened" => Self::INVESTIGATED_CASE_OPENED,
"true_positive_benign" => Self::TRUE_POSITIVE_BENIGN,
"true_positive_malicious" => Self::TRUE_POSITIVE_MALICIOUS,
"other" => Self::OTHER,
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
value: serde_json::Value::String(s.into()),
Expand Down