Skip to content

Commit b0875b8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c40a673 of spec repo
1 parent 230311f commit b0875b8

File tree

20 files changed

+991
-1
lines changed

20 files changed

+991
-1
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63779,6 +63779,67 @@ paths:
6377963779
tags:
6378063780
- Security Monitoring
6378163781
x-codegen-request-body-name: body
63782+
/api/v2/security_monitoring/configuration/suppressions/rules:
63783+
post:
63784+
description: Get the list of suppressions that would affect future rule evaluations
63785+
for a given rule query. This endpoint is useful to preview which suppressions
63786+
would apply to a rule before creating or updating it.
63787+
operationId: GetSuppressionsAffectingFutureRule
63788+
requestBody:
63789+
content:
63790+
application/json:
63791+
schema:
63792+
$ref: '#/components/schemas/SecurityMonitoringRuleCreatePayload'
63793+
required: true
63794+
responses:
63795+
'200':
63796+
content:
63797+
application/json:
63798+
schema:
63799+
$ref: '#/components/schemas/SecurityMonitoringSuppressionsResponse'
63800+
description: OK
63801+
'400':
63802+
$ref: '#/components/responses/BadRequestResponse'
63803+
'403':
63804+
$ref: '#/components/responses/NotAuthorizedResponse'
63805+
'429':
63806+
$ref: '#/components/responses/TooManyRequestsResponse'
63807+
security:
63808+
- apiKeyAuth: []
63809+
appKeyAuth: []
63810+
- AuthZ:
63811+
- security_monitoring_suppressions_read
63812+
summary: Get suppressions affecting future rule evaluations
63813+
tags:
63814+
- Security Monitoring
63815+
/api/v2/security_monitoring/configuration/suppressions/rules/{rule_id}:
63816+
get:
63817+
description: Get the list of suppressions that affect a specific existing rule
63818+
by its ID.
63819+
operationId: GetSuppressionsAffectingRule
63820+
parameters:
63821+
- $ref: '#/components/parameters/SecurityMonitoringRuleID'
63822+
responses:
63823+
'200':
63824+
content:
63825+
application/json:
63826+
schema:
63827+
$ref: '#/components/schemas/SecurityMonitoringSuppressionsResponse'
63828+
description: OK
63829+
'403':
63830+
$ref: '#/components/responses/NotAuthorizedResponse'
63831+
'404':
63832+
$ref: '#/components/responses/NotFoundResponse'
63833+
'429':
63834+
$ref: '#/components/responses/TooManyRequestsResponse'
63835+
security:
63836+
- apiKeyAuth: []
63837+
appKeyAuth: []
63838+
- AuthZ:
63839+
- security_monitoring_suppressions_read
63840+
summary: Get suppressions affecting a specific rule
63841+
tags:
63842+
- Security Monitoring
6378263843
/api/v2/security_monitoring/configuration/suppressions/{suppression_id}:
6378363844
delete:
6378463845
description: Delete a specific suppression rule.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-05-10T16:34:46.085Z"
1+
"2025-08-28T16:16:42.707Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-08-28T17:02:24.601Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Security Monitoring/Get suppressions affecting future rule evaluations returns \"Bad Request\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "ca1c61e91368590600c201b1897e8dd1",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 27,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 620,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"invalid_field\":\"invalid\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/rules"
39+
},
40+
"response": {
41+
"bodySize": 59,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 59,
45+
"text": "{\"errors\":[\"invalid_argument(Invalid rule configuration)\"]}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 653,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 400,
58+
"statusText": "Bad Request"
59+
},
60+
"startedDateTime": "2025-08-28T17:02:24.602Z",
61+
"time": 373
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-08-28T17:02:24.978Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Security Monitoring/Get suppressions affecting future rule evaluations returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "9750f547c8a6056eecfcab15a2d8b5f1",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 612,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 621,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"cases\":[{\"condition\":\"a > 0\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Get_suppressions_affecting_future_rule_evaluations_returns_OK_response-1756400544\",\"options\":{\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[],\"metric\":\"\",\"query\":\"@test:true\"}],\"referenceTables\":[{\"checkPresence\":true,\"columnName\":\"value\",\"logFieldPath\":\"testtag\",\"ruleQueryName\":\"a\",\"tableName\":\"synthetics_test_reference_table_dont_delete\"}],\"tags\":[],\"type\":\"log_detection\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/rules"
39+
},
40+
"response": {
41+
"bodySize": 11,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 11,
45+
"text": "{\"data\":[]}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 661,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2025-08-28T17:02:24.980Z",
61+
"time": 421
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-08-28T17:02:25.407Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
{
2+
"log": {
3+
"_recordingName": "Security Monitoring/Get suppressions affecting rule returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "d7a82ed9c09dd5fdb72e9ab4cb21b9b3",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 427,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 588,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"cases\":[{\"condition\":\"a > 0\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Get_suppressions_affecting_rule_returns_OK_response-1756400545\",\"options\":{\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[],\"metrics\":[],\"query\":\"@test:true\"}],\"tags\":[],\"type\":\"log_detection\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/rules"
39+
},
40+
"response": {
41+
"bodySize": 862,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 862,
45+
"text": "{\"name\":\"Test-Get_suppressions_affecting_rule_returns_OK_response-1756400545\",\"createdAt\":1756400545753,\"isDefault\":false,\"isPartner\":false,\"isEnabled\":true,\"isBeta\":false,\"isDeleted\":false,\"isDeprecated\":false,\"queries\":[{\"query\":\"@test:true\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"cases\":[{\"name\":\"\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 0\"}],\"message\":\"Test rule\",\"tags\":[],\"hasExtendedTitle\":false,\"type\":\"log_detection\",\"filters\":[],\"version\":1,\"id\":\"1gm-3u3-cqn\",\"blocking\":false,\"metadata\":{\"entities\":null,\"sources\":null},\"creationAuthorId\":1445416,\"creator\":{\"handle\":\"[email protected]\",\"name\":\"frog\"},\"updater\":{\"handle\":\"\",\"name\":\"\"}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 654,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2025-08-28T17:02:25.408Z",
61+
"time": 389
62+
},
63+
{
64+
"_id": "f504b4d292cfa9977fa1d469876674b2",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 0,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
}
76+
],
77+
"headersSize": 573,
78+
"httpVersion": "HTTP/1.1",
79+
"method": "GET",
80+
"queryString": [],
81+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/rules/1gm-3u3-cqn"
82+
},
83+
"response": {
84+
"bodySize": 11,
85+
"content": {
86+
"mimeType": "application/vnd.api+json",
87+
"size": 11,
88+
"text": "{\"data\":[]}"
89+
},
90+
"cookies": [],
91+
"headers": [
92+
{
93+
"name": "content-type",
94+
"value": "application/vnd.api+json"
95+
}
96+
],
97+
"headersSize": 661,
98+
"httpVersion": "HTTP/1.1",
99+
"redirectURL": "",
100+
"status": 200,
101+
"statusText": "OK"
102+
},
103+
"startedDateTime": "2025-08-28T17:02:25.803Z",
104+
"time": 430
105+
},
106+
{
107+
"_id": "c726ec3ffc854857e065d22303bcfde5",
108+
"_order": 0,
109+
"cache": {},
110+
"request": {
111+
"bodySize": 0,
112+
"cookies": [],
113+
"headers": [
114+
{
115+
"_fromType": "array",
116+
"name": "accept",
117+
"value": "*/*"
118+
}
119+
],
120+
"headersSize": 536,
121+
"httpVersion": "HTTP/1.1",
122+
"method": "DELETE",
123+
"queryString": [],
124+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/rules/1gm-3u3-cqn"
125+
},
126+
"response": {
127+
"bodySize": 0,
128+
"content": {
129+
"mimeType": "text/plain",
130+
"size": 0
131+
},
132+
"cookies": [],
133+
"headers": [],
134+
"headersSize": 601,
135+
"httpVersion": "HTTP/1.1",
136+
"redirectURL": "",
137+
"status": 204,
138+
"statusText": "No Content"
139+
},
140+
"startedDateTime": "2025-08-28T17:02:26.239Z",
141+
"time": 446
142+
}
143+
],
144+
"pages": [],
145+
"version": "1.2"
146+
}
147+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-08-28T16:16:50.726Z"

0 commit comments

Comments
 (0)