Skip to content

Commit 1df824f

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

3 files changed

Lines changed: 29 additions & 48 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -57944,6 +57944,7 @@ components:
5794457944
- none
5794557945
- false_positive
5794657946
- testing_or_maintenance
57947+
- remediated
5794757948
- investigated_case_opened
5794857949
- true_positive_benign
5794957950
- true_positive_malicious
@@ -57953,6 +57954,7 @@ components:
5795357954
- NONE
5795457955
- FALSE_POSITIVE
5795557956
- TESTING_OR_MAINTENANCE
57957+
- REMEDIATED
5795657958
- INVESTIGATED_CASE_OPENED
5795757959
- TRUE_POSITIVE_BENIGN
5795857960
- TRUE_POSITIVE_MALICIOUS
@@ -103305,6 +103307,8 @@ paths:
103305103307
schema:
103306103308
$ref: "#/components/schemas/SecurityMonitoringSignalResponse"
103307103309
description: OK
103310+
"403":
103311+
$ref: "#/components/responses/NotAuthorizedResponse"
103308103312
"404":
103309103313
$ref: "#/components/responses/NotFoundResponse"
103310103314
"429":
@@ -103342,25 +103346,17 @@ paths:
103342103346
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103343103347
description: OK
103344103348
"400":
103345-
content:
103346-
application/json:
103347-
schema:
103348-
$ref: "#/components/schemas/APIErrorResponse"
103349-
description: Bad Request
103349+
$ref: "#/components/responses/BadRequestResponse"
103350103350
"403":
103351-
content:
103352-
application/json:
103353-
schema:
103354-
$ref: "#/components/schemas/APIErrorResponse"
103355-
description: Forbidden
103351+
$ref: "#/components/responses/NotAuthorizedResponse"
103356103352
"404":
103357-
content:
103358-
application/json:
103359-
schema:
103360-
$ref: "#/components/schemas/APIErrorResponse"
103361-
description: Not Found
103353+
$ref: "#/components/responses/NotFoundResponse"
103362103354
"429":
103363103355
$ref: "#/components/responses/TooManyRequestsResponse"
103356+
security:
103357+
- apiKeyAuth: []
103358+
appKeyAuth: []
103359+
- AuthZ: []
103364103360
summary: Modify the triage assignee of a security signal
103365103361
tags: ["Security Monitoring"]
103366103362
x-codegen-request-body-name: body
@@ -103390,25 +103386,17 @@ paths:
103390103386
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103391103387
description: OK
103392103388
"400":
103393-
content:
103394-
application/json:
103395-
schema:
103396-
$ref: "#/components/schemas/APIErrorResponse"
103397-
description: Bad Request
103389+
$ref: "#/components/responses/BadRequestResponse"
103398103390
"403":
103399-
content:
103400-
application/json:
103401-
schema:
103402-
$ref: "#/components/schemas/APIErrorResponse"
103403-
description: Forbidden
103391+
$ref: "#/components/responses/NotAuthorizedResponse"
103404103392
"404":
103405-
content:
103406-
application/json:
103407-
schema:
103408-
$ref: "#/components/schemas/APIErrorResponse"
103409-
description: Not Found
103393+
$ref: "#/components/responses/NotFoundResponse"
103410103394
"429":
103411103395
$ref: "#/components/responses/TooManyRequestsResponse"
103396+
security:
103397+
- apiKeyAuth: []
103398+
appKeyAuth: []
103399+
- AuthZ: []
103412103400
summary: Change the related incidents of a security signal
103413103401
tags: ["Security Monitoring"]
103414103402
x-codegen-request-body-name: body
@@ -103438,25 +103426,17 @@ paths:
103438103426
$ref: "#/components/schemas/SecurityMonitoringSignalTriageUpdateResponse"
103439103427
description: OK
103440103428
"400":
103441-
content:
103442-
application/json:
103443-
schema:
103444-
$ref: "#/components/schemas/APIErrorResponse"
103445-
description: Bad Request
103429+
$ref: "#/components/responses/BadRequestResponse"
103446103430
"403":
103447-
content:
103448-
application/json:
103449-
schema:
103450-
$ref: "#/components/schemas/APIErrorResponse"
103451-
description: Forbidden
103431+
$ref: "#/components/responses/NotAuthorizedResponse"
103452103432
"404":
103453-
content:
103454-
application/json:
103455-
schema:
103456-
$ref: "#/components/schemas/APIErrorResponse"
103457-
description: Not Found
103433+
$ref: "#/components/responses/NotFoundResponse"
103458103434
"429":
103459103435
$ref: "#/components/responses/TooManyRequestsResponse"
103436+
security:
103437+
- apiKeyAuth: []
103438+
appKeyAuth: []
103439+
- AuthZ: []
103460103440
summary: Change the triage state of a security signal
103461103441
tags: ["Security Monitoring"]
103462103442
x-codegen-request-body-name: body

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ def edit_security_monitoring_signal_assignee_with_http_info(signal_id, body, opt
19251925
return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalTriageUpdateResponse'
19261926

19271927
# auth_names
1928-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
1928+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
19291929

19301930
new_options = opts.merge(
19311931
:operation => :edit_security_monitoring_signal_assignee,
@@ -1997,7 +1997,7 @@ def edit_security_monitoring_signal_incidents_with_http_info(signal_id, body, op
19971997
return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalTriageUpdateResponse'
19981998

19991999
# auth_names
2000-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
2000+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
20012001

20022002
new_options = opts.merge(
20032003
:operation => :edit_security_monitoring_signal_incidents,
@@ -2069,7 +2069,7 @@ def edit_security_monitoring_signal_state_with_http_info(signal_id, body, opts =
20692069
return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalTriageUpdateResponse'
20702070

20712071
# auth_names
2072-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
2072+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
20732073

20742074
new_options = opts.merge(
20752075
:operation => :edit_security_monitoring_signal_state,

lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class SecurityMonitoringSignalArchiveReason
2424
NONE = "none".freeze
2525
FALSE_POSITIVE = "false_positive".freeze
2626
TESTING_OR_MAINTENANCE = "testing_or_maintenance".freeze
27+
REMEDIATED = "remediated".freeze
2728
INVESTIGATED_CASE_OPENED = "investigated_case_opened".freeze
2829
TRUE_POSITIVE_BENIGN = "true_positive_benign".freeze
2930
TRUE_POSITIVE_MALICIOUS = "true_positive_malicious".freeze

0 commit comments

Comments
 (0)