Skip to content

Commit 03b7406

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add Incident Notification Rules Public Spec (#2772)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d2ed137 commit 03b7406

File tree

59 files changed

+4834
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+4834
-13
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 555 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-09-09T18:32:08.891Z"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Incidents/Create incident notification rule 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": "4bf993a719685870671d138b90cb252b",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 341,
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": 600,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"conditions\":[{\"field\":\"severity\",\"values\":[\"SEV-1\",\"SEV-2\"]}],\"enabled\":true,\"handles\":[\"@[email protected]\"],\"trigger\":\"incident_created_trigger\",\"visibility\":\"organization\"},\"relationships\":{\"incident_type\":{\"data\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"incident_types\"}}},\"type\":\"invalid_type\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/incidents/config/notification-rules"
39+
},
40+
"response": {
41+
"bodySize": 136,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 136,
45+
"text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"got type \\\"invalid_type\\\" expected one of \\\"incident_notification_rules\\\"\"}]}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 525,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 400,
58+
"statusText": "Bad Request"
59+
},
60+
"startedDateTime": "2025-09-09T18:32:08.895Z",
61+
"time": 129
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-09-09T18:32:09.032Z"
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
{
2+
"log": {
3+
"_recordingName": "Incidents/Create incident notification rule returns \"Created\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "7bcfec665300989151e5e4d7e0833bd1",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 223,
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": 575,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.\",\"is_default\":false,\"name\":\"Security Incident\"},\"type\":\"incident_types\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/incidents/config/types"
39+
},
40+
"response": {
41+
"bodySize": 802,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 802,
45+
"text": "{\"data\":{\"id\":\"107e7ed1-ec07-483f-a723-882ce86702ba\",\"type\":\"incident_types\",\"attributes\":{\"createdAt\":\"2025-09-09T18:32:09.112896114Z\",\"createdBy\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"description\":\"Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.\",\"is_default\":false,\"lastModifiedBy\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"modifiedAt\":\"2025-09-09T18:32:09.112896213Z\",\"name\":\"Security Incident\",\"prefix\":\"IR\"},\"relationships\":{\"created_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"google_meet_configuration\":{\"data\":null},\"last_modified_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"microsoft_teams_configuration\":{\"data\":null},\"zoom_configuration\":{\"data\":null}}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 664,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 201,
58+
"statusText": "Created"
59+
},
60+
"startedDateTime": "2025-09-09T18:32:09.034Z",
61+
"time": 188
62+
},
63+
{
64+
"_id": "be87f38a377c6052443e2c757f463a06",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 356,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 600,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "POST",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"data\":{\"attributes\":{\"conditions\":[{\"field\":\"severity\",\"values\":[\"SEV-1\",\"SEV-2\"]}],\"enabled\":true,\"handles\":[\"@[email protected]\"],\"trigger\":\"incident_created_trigger\",\"visibility\":\"organization\"},\"relationships\":{\"incident_type\":{\"data\":{\"id\":\"107e7ed1-ec07-483f-a723-882ce86702ba\",\"type\":\"incident_types\"}}},\"type\":\"incident_notification_rules\"}}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v2/incidents/config/notification-rules"
92+
},
93+
"response": {
94+
"bodySize": 686,
95+
"content": {
96+
"mimeType": "application/vnd.api+json",
97+
"size": 686,
98+
"text": "{\"data\":{\"id\":\"93dada9a-d032-49a4-b445-0673aaebb888\",\"type\":\"incident_notification_rules\",\"attributes\":{\"conditions\":[{\"field\":\"severity\",\"values\":[\"SEV-1\",\"SEV-2\"]}],\"created\":\"2025-09-09T18:32:09.321517146Z\",\"enabled\":true,\"handles\":[\"@[email protected]\"],\"modified\":\"2025-09-09T18:32:09.321517146Z\",\"renotify_on\":[],\"trigger\":\"incident_created_trigger\",\"visibility\":\"organization\"},\"relationships\":{\"created_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}},\"incident_type\":{\"data\":{\"id\":\"107e7ed1-ec07-483f-a723-882ce86702ba\",\"type\":\"incident_types\"}},\"last_modified_by_user\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"users\"}}}}}"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/vnd.api+json"
105+
}
106+
],
107+
"headersSize": 525,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 201,
111+
"statusText": "Created"
112+
},
113+
"startedDateTime": "2025-09-09T18:32:09.227Z",
114+
"time": 110
115+
},
116+
{
117+
"_id": "5b2dfde465632fbf7f92ee21c6225cc6",
118+
"_order": 0,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 0,
122+
"cookies": [],
123+
"headers": [
124+
{
125+
"_fromType": "array",
126+
"name": "accept",
127+
"value": "*/*"
128+
}
129+
],
130+
"headersSize": 573,
131+
"httpVersion": "HTTP/1.1",
132+
"method": "DELETE",
133+
"queryString": [],
134+
"url": "https://api.datadoghq.com/api/v2/incidents/config/notification-rules/93dada9a-d032-49a4-b445-0673aaebb888"
135+
},
136+
"response": {
137+
"bodySize": 0,
138+
"content": {
139+
"mimeType": "text/plain",
140+
"size": 0
141+
},
142+
"cookies": [],
143+
"headers": [],
144+
"headersSize": 464,
145+
"httpVersion": "HTTP/1.1",
146+
"redirectURL": "",
147+
"status": 204,
148+
"statusText": "No Content"
149+
},
150+
"startedDateTime": "2025-09-09T18:32:09.341Z",
151+
"time": 110
152+
},
153+
{
154+
"_id": "1aaaa50c7ce4b3680dca3b808825cc48",
155+
"_order": 0,
156+
"cache": {},
157+
"request": {
158+
"bodySize": 0,
159+
"cookies": [],
160+
"headers": [
161+
{
162+
"_fromType": "array",
163+
"name": "accept",
164+
"value": "*/*"
165+
}
166+
],
167+
"headersSize": 548,
168+
"httpVersion": "HTTP/1.1",
169+
"method": "DELETE",
170+
"queryString": [],
171+
"url": "https://api.datadoghq.com/api/v2/incidents/config/types/107e7ed1-ec07-483f-a723-882ce86702ba"
172+
},
173+
"response": {
174+
"bodySize": 0,
175+
"content": {
176+
"mimeType": "text/plain",
177+
"size": 0
178+
},
179+
"cookies": [],
180+
"headers": [],
181+
"headersSize": 603,
182+
"httpVersion": "HTTP/1.1",
183+
"redirectURL": "",
184+
"status": 204,
185+
"statusText": "No Content"
186+
},
187+
"startedDateTime": "2025-09-09T18:32:09.463Z",
188+
"time": 93
189+
}
190+
],
191+
"pages": [],
192+
"version": "1.2"
193+
}
194+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-09-09T18:32:13.145Z"

0 commit comments

Comments
 (0)