Skip to content

Commit 8bd2dcb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix consistency issues in security monitoring signal triage routes (#1404)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b7616ff commit 8bd2dcb

File tree

2 files changed

+28
-45
lines changed

2 files changed

+28
-45
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -57909,6 +57909,7 @@ components:
5790957909
- none
5791057910
- false_positive
5791157911
- testing_or_maintenance
57912+
- remediated
5791257913
- investigated_case_opened
5791357914
- true_positive_benign
5791457915
- true_positive_malicious
@@ -57918,6 +57919,7 @@ components:
5791857919
- NONE
5791957920
- FALSE_POSITIVE
5792057921
- TESTING_OR_MAINTENANCE
57922+
- REMEDIATED
5792157923
- INVESTIGATED_CASE_OPENED
5792257924
- TRUE_POSITIVE_BENIGN
5792357925
- TRUE_POSITIVE_MALICIOUS
@@ -102447,6 +102449,8 @@ paths:
102447102449
schema:
102448102450
$ref: "#/components/schemas/SecurityMonitoringSignalResponse"
102449102451
description: OK
102452+
"403":
102453+
$ref: "#/components/responses/NotAuthorizedResponse"
102450102454
"404":
102451102455
$ref: "#/components/responses/NotFoundResponse"
102452102456
"429":
@@ -102484,25 +102488,17 @@ paths:
102484102488
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102485102489
description: OK
102486102490
"400":
102487-
content:
102488-
application/json:
102489-
schema:
102490-
$ref: "#/components/schemas/APIErrorResponse"
102491-
description: Bad Request
102491+
$ref: "#/components/responses/BadRequestResponse"
102492102492
"403":
102493-
content:
102494-
application/json:
102495-
schema:
102496-
$ref: "#/components/schemas/APIErrorResponse"
102497-
description: Forbidden
102493+
$ref: "#/components/responses/NotAuthorizedResponse"
102498102494
"404":
102499-
content:
102500-
application/json:
102501-
schema:
102502-
$ref: "#/components/schemas/APIErrorResponse"
102503-
description: Not Found
102495+
$ref: "#/components/responses/NotFoundResponse"
102504102496
"429":
102505102497
$ref: "#/components/responses/TooManyRequestsResponse"
102498+
security:
102499+
- apiKeyAuth: []
102500+
appKeyAuth: []
102501+
- AuthZ: []
102506102502
summary: Modify the triage assignee of a security signal
102507102503
tags: ["Security Monitoring"]
102508102504
x-codegen-request-body-name: body
@@ -102532,25 +102528,17 @@ paths:
102532102528
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102533102529
description: OK
102534102530
"400":
102535-
content:
102536-
application/json:
102537-
schema:
102538-
$ref: "#/components/schemas/APIErrorResponse"
102539-
description: Bad Request
102531+
$ref: "#/components/responses/BadRequestResponse"
102540102532
"403":
102541-
content:
102542-
application/json:
102543-
schema:
102544-
$ref: "#/components/schemas/APIErrorResponse"
102545-
description: Forbidden
102533+
$ref: "#/components/responses/NotAuthorizedResponse"
102546102534
"404":
102547-
content:
102548-
application/json:
102549-
schema:
102550-
$ref: "#/components/schemas/APIErrorResponse"
102551-
description: Not Found
102535+
$ref: "#/components/responses/NotFoundResponse"
102552102536
"429":
102553102537
$ref: "#/components/responses/TooManyRequestsResponse"
102538+
security:
102539+
- apiKeyAuth: []
102540+
appKeyAuth: []
102541+
- AuthZ: []
102554102542
summary: Change the related incidents of a security signal
102555102543
tags: ["Security Monitoring"]
102556102544
x-codegen-request-body-name: body
@@ -102580,25 +102568,17 @@ paths:
102580102568
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
102581102569
description: OK
102582102570
"400":
102583-
content:
102584-
application/json:
102585-
schema:
102586-
$ref: "#/components/schemas/APIErrorResponse"
102587-
description: Bad Request
102571+
$ref: "#/components/responses/BadRequestResponse"
102588102572
"403":
102589-
content:
102590-
application/json:
102591-
schema:
102592-
$ref: "#/components/schemas/APIErrorResponse"
102593-
description: Forbidden
102573+
$ref: "#/components/responses/NotAuthorizedResponse"
102594102574
"404":
102595-
content:
102596-
application/json:
102597-
schema:
102598-
$ref: "#/components/schemas/APIErrorResponse"
102599-
description: Not Found
102575+
$ref: "#/components/responses/NotFoundResponse"
102600102576
"429":
102601102577
$ref: "#/components/responses/TooManyRequestsResponse"
102578+
security:
102579+
- apiKeyAuth: []
102580+
appKeyAuth: []
102581+
- AuthZ: []
102602102582
summary: Change the triage state of a security signal
102603102583
tags: ["Security Monitoring"]
102604102584
x-codegen-request-body-name: body

src/datadogV2/model/model_security_monitoring_signal_archive_reason.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub enum SecurityMonitoringSignalArchiveReason {
1010
NONE,
1111
FALSE_POSITIVE,
1212
TESTING_OR_MAINTENANCE,
13+
REMEDIATED,
1314
INVESTIGATED_CASE_OPENED,
1415
TRUE_POSITIVE_BENIGN,
1516
TRUE_POSITIVE_MALICIOUS,
@@ -23,6 +24,7 @@ impl ToString for SecurityMonitoringSignalArchiveReason {
2324
Self::NONE => String::from("none"),
2425
Self::FALSE_POSITIVE => String::from("false_positive"),
2526
Self::TESTING_OR_MAINTENANCE => String::from("testing_or_maintenance"),
27+
Self::REMEDIATED => String::from("remediated"),
2628
Self::INVESTIGATED_CASE_OPENED => String::from("investigated_case_opened"),
2729
Self::TRUE_POSITIVE_BENIGN => String::from("true_positive_benign"),
2830
Self::TRUE_POSITIVE_MALICIOUS => String::from("true_positive_malicious"),
@@ -54,6 +56,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringSignalArchiveReason {
5456
"none" => Self::NONE,
5557
"false_positive" => Self::FALSE_POSITIVE,
5658
"testing_or_maintenance" => Self::TESTING_OR_MAINTENANCE,
59+
"remediated" => Self::REMEDIATED,
5760
"investigated_case_opened" => Self::INVESTIGATED_CASE_OPENED,
5861
"true_positive_benign" => Self::TRUE_POSITIVE_BENIGN,
5962
"true_positive_malicious" => Self::TRUE_POSITIVE_MALICIOUS,

0 commit comments

Comments
 (0)