Skip to content

Commit

Permalink
Adds accepted reasons for archiving signal (#2681)
Browse files Browse the repository at this point in the history
* bump go

* update staticheck

* disable S1009

* bump github workflows

* Regenerate client from commit efa118f1 of spec repo

---------

Co-authored-by: Anika Maskara <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent 9cf9c84 commit 9992dcc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-06 20:54:48.659232",
"spec_repo_commit": "0f558cbc"
"regenerated": "2024-11-07 20:43:56.127925",
"spec_repo_commit": "efa118f1"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-06 20:54:48.678103",
"spec_repo_commit": "0f558cbc"
"regenerated": "2024-11-07 20:43:56.147264",
"spec_repo_commit": "efa118f1"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13093,13 +13093,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
SignalAssigneeUpdateRequest:
description: Attributes describing an assignee update operation over a security
Expand Down
4 changes: 4 additions & 0 deletions api/datadogV1/model_signal_archive_reason.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const (
SIGNALARCHIVEREASON_FALSE_POSITIVE SignalArchiveReason = "false_positive"
SIGNALARCHIVEREASON_TESTING_OR_MAINTENANCE SignalArchiveReason = "testing_or_maintenance"
SIGNALARCHIVEREASON_INVESTIGATED_CASE_OPENED SignalArchiveReason = "investigated_case_opened"
SIGNALARCHIVEREASON_TRUE_POSITIVE_BENIGN SignalArchiveReason = "true_positive_benign"
SIGNALARCHIVEREASON_TRUE_POSITIVE_MALICIOUS SignalArchiveReason = "true_positive_malicious"
SIGNALARCHIVEREASON_OTHER SignalArchiveReason = "other"
)

Expand All @@ -27,6 +29,8 @@ var allowedSignalArchiveReasonEnumValues = []SignalArchiveReason{
SIGNALARCHIVEREASON_FALSE_POSITIVE,
SIGNALARCHIVEREASON_TESTING_OR_MAINTENANCE,
SIGNALARCHIVEREASON_INVESTIGATED_CASE_OPENED,
SIGNALARCHIVEREASON_TRUE_POSITIVE_BENIGN,
SIGNALARCHIVEREASON_TRUE_POSITIVE_MALICIOUS,
SIGNALARCHIVEREASON_OTHER,
}

Expand Down

0 comments on commit 9992dcc

Please sign in to comment.