Skip to content

Commit ee2346f

Browse files
api-clients-generation-pipeline[bot]zippolyteci.datadog-api-spec
authored
Add SLO correction tests back (#641)
* Add time based variable in context * cassette * cassettes * cassettes * Regenerate client from commit 0e53363 of spec repo Co-authored-by: Hippolyte HENRY <hippolyte.henry@datadoghq.com> 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 <packages@datadoghq.com>
1 parent a86500f commit ee2346f

File tree

10 files changed

+343
-15
lines changed

10 files changed

+343
-15
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.4.1.dev2",
7-
"regenerated": "2021-02-03 20:41:34.746857",
8-
"spec_repo_commit": "756b2f6"
7+
"regenerated": "2021-02-04 09:37:47.049850",
8+
"spec_repo_commit": "0e53363"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev2",
12-
"regenerated": "2021-02-03 20:41:45.806703",
13-
"spec_repo_commit": "756b2f6"
12+
"regenerated": "2021-02-04 09:37:58.282987",
13+
"spec_repo_commit": "0e53363"
1414
}
1515
}
1616
}

src/main/java/com/datadog/api/v1/openapi.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14849,11 +14849,21 @@ paths:
1484914849
tags:
1485014850
- Service Level Objectives
1485114851
x-codegen-request-body-name: body
14852+
x-given:
14853+
slo:
14854+
parameters:
14855+
- name: body
14856+
value: "{\n \"type\": \"metric\",\n \"name\": \"{{ unique }}\",\n \"\
14857+
thresholds\": [{\n \"timeframe\": \"7d\",\n \"target\": 95.0,\n\
14858+
\ \"warning\": 98.0\n }],\n \"query\": {\n \"numerator\": \"\
14859+
sum:httpservice.hits{code:2xx}.as_count()\",\n \"denominator\": \"\
14860+
sum:httpservice.hits{!code:3xx}.as_count()\"\n }\n}"
14861+
step: there is a valid "slo" in the system
1485214862
x-undo:
1485314863
operationId: DeleteSLO
1485414864
parameters:
1485514865
- name: slo_id
14856-
source: data.id
14866+
source: data[0].id
1485714867
type: unsafe
1485814868
/api/v1/slo/bulk_delete:
1485914869
post:
@@ -15008,11 +15018,11 @@ paths:
1500815018
parameters:
1500915019
- name: body
1501015020
value: "{\n \"data\": {\n \"id\": \"1\",\n \"attributes\": {\n\
15011-
\ \"slo_id\": \"{{ unique }}\",\n \"start\": 1610034200,\n\
15012-
\ \"end\": 1610034300,\n \"category\": \"Other\",\n \"\
15013-
timezone\": \"UTC\",\n \"description\": \"Test Correction\"\n \
15014-
\ },\n \"type\": \"correction\"\n }\n}"
15015-
step: there is a valid "correction" in the system
15021+
\ \"slo_id\": \"{{ slo.data[0].id }}\",\n \"start\": {{ now_ts\
15022+
\ }},\n \"end\": {{ hour_later_ts }},\n \"category\": \"Other\"\
15023+
,\n \"timezone\": \"UTC\",\n \"description\": \"Test Correction\"\
15024+
\n },\n \"type\": \"correction\"\n }\n}"
15025+
step: there is a valid "correction" for "slo"
1501615026
x-undo:
1501715027
operationId: DeleteSLOCorrection
1501815028
parameters:

src/test/java/com/datadog/api/ClientSteps.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.junit.Assert.*;
44

5+
import java.time.format.DateTimeFormatter;
56
import java.util.concurrent.Callable;
67
import java.lang.reflect.Field;
78
import java.util.Collections;
@@ -45,6 +46,12 @@ public void setupContext() {
4546
String unique = world.getUniqueEntityName();
4647
world.context.put("unique", unique);
4748
world.context.put("unique_lower", unique.toLowerCase());
49+
world.context.put("now_ts", world.now.toEpochSecond());
50+
world.context.put("now_iso", world.now.format(DateTimeFormatter.ISO_OFFSET_DATE_TIME));
51+
world.context.put("hour_later_ts", world.now.plusHours(1).toEpochSecond());
52+
world.context.put("hour_later_iso", world.now.plusHours(1).format(DateTimeFormatter.ISO_OFFSET_DATE_TIME));
53+
world.context.put("hour_ago_ts", world.now.minusHours(1).toEpochSecond());
54+
world.context.put("hour_ago_iso", world.now.minusHours(1).format(DateTimeFormatter.ISO_OFFSET_DATE_TIME));
4855
}
4956

5057
@After
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2021-02-03T12:05:22.301023Z
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[{
2+
"id" : "8f298a24-e386-4e1b-9785-02b103684e0c",
3+
"httpRequest" : {
4+
"method" : "GET",
5+
"path" : "/api/v1/slo/correction",
6+
"headers" : {
7+
"Accept" : [ "application/json" ],
8+
"JAVA-TEST-NAME" : [ "Get_all_SLO_corrections_returns_OK_response" ],
9+
"DD-OPERATION-ID" : [ "listSLOCorrection" ],
10+
"content-length" : [ "0" ]
11+
},
12+
"keepAlive" : false,
13+
"secure" : true
14+
},
15+
"times" : {
16+
"remainingTimes" : 1
17+
},
18+
"timeToLive" : {
19+
"unlimited" : true
20+
},
21+
"httpResponse" : {
22+
"statusCode" : 200,
23+
"reasonPhrase" : "OK",
24+
"headers" : {
25+
"Date" : [ "Wed, 03 Feb 2021 12:05:27 GMT" ],
26+
"Content-Type" : [ "application/json" ],
27+
"Connection" : [ "keep-alive" ],
28+
"vary" : [ "Accept-Encoding" ],
29+
"pragma" : [ "no-cache" ],
30+
"cache-control" : [ "no-cache" ],
31+
"set-cookie" : [ "DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 10-Feb-2021 12:05:27 GMT; secure; HttpOnly" ],
32+
"x-dd-version" : [ "35.3833449" ],
33+
"x-ratelimit-limit" : [ "12000" ],
34+
"x-ratelimit-period" : [ "60" ],
35+
"x-ratelimit-reset" : [ "33" ],
36+
"x-ratelimit-remaining" : [ "11999" ],
37+
"x-dd-debug" : [ "gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV" ],
38+
"x-content-type-options" : [ "nosniff" ],
39+
"strict-transport-security" : [ "max-age=15724800;" ],
40+
"content-security-policy" : [ "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report" ],
41+
"x-frame-options" : [ "SAMEORIGIN" ],
42+
"content-length" : [ "3054" ]
43+
},
44+
"cookies" : {
45+
"DD-PSHARD" : "233"
46+
},
47+
"body" : "{\"data\":[{\"type\":\"correction\",\"id\":\"06643f2e-61b1-11eb-8fa0-fb77777e5742\",\"attributes\":{\"slo_id\":\"09d76252734f50e8b3f8f0119e0814c7\",\"start\":1735707000,\"end\":1735718600,\"description\":\"test correction on slo tf-TestAccDatadogSloCorrection_Updated-local-1611869850\",\"category\":\"Scheduled Maintenance\",\"timezone\":\"UTC\",\"creator\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}}}},{\"type\":\"correction\",\"id\":\"0f1e5bb6-61ae-11eb-8fa0-9becba1ede13\",\"attributes\":{\"slo_id\":\"331f726639dd5b01a80c776494364b93\",\"start\":1735707000,\"end\":1735718600,\"description\":\"test correction on slo tf-TestAccDatadogSloCorrection_Basic-local-1611868576\",\"category\":\"Scheduled Maintenance\",\"timezone\":\"UTC\",\"creator\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}}}},{\"type\":\"correction\",\"id\":\"793dc73a-61b2-11eb-8fa0-cb9ecfe220b1\",\"attributes\":{\"slo_id\":\"65c8add3c53a5427861cad53eb607566\",\"start\":1735707000,\"end\":1735718600,\"description\":\"test correction on slo tf-TestAccDatadogSloCorrection_Updated-local-1611870472\",\"category\":\"Scheduled Maintenance\",\"timezone\":\"UTC\",\"creator\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}}}},{\"type\":\"correction\",\"id\":\"dc89679e-61ae-11eb-8fa0-8723e85d7f29\",\"attributes\":{\"slo_id\":\"807322441d5c5a0c9bb6b20b3de83c08\",\"start\":1735707000,\"end\":1735718600,\"description\":\"test correction on slo tf-TestAccDatadogSloCorrection_Basic-local-1611868921\",\"category\":\"Scheduled Maintenance\",\"timezone\":\"UTC\",\"creator\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}}}},{\"type\":\"correction\",\"id\":\"f457bcfe-61ae-11eb-8fa0-838b90f6060c\",\"attributes\":{\"slo_id\":\"2afd8c02c5b3518490d6b71765336342\",\"start\":1735707000,\"end\":1735718600,\"description\":\"test correction on slo tf-TestAccDatadogSloCorrection_Basic-local-1611868961\",\"category\":\"Scheduled Maintenance\",\"timezone\":\"UTC\",\"creator\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}}}}]}"
48+
}
49+
}]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2021-02-03T12:22:17.632Z
Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
[{
2+
"id" : "ea56656e-8071-453e-b25f-60abdd1f8308",
3+
"httpRequest" : {
4+
"method" : "POST",
5+
"path" : "/api/v1/slo",
6+
"headers" : {
7+
"Accept" : [ "application/json" ],
8+
"JAVA-TEST-NAME" : [ "Get_an_SLO_correction_for_an_SLO_returns_OK_response" ],
9+
"DD-OPERATION-ID" : [ "createSLO" ],
10+
"Content-Type" : [ "application/json" ]
11+
},
12+
"keepAlive" : false,
13+
"secure" : true,
14+
"body" : {
15+
"type" : "JSON",
16+
"json" : "{\"name\":\"java-Get_an_SLO_correctio-1612354937\",\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"thresholds\":[{\"target\":95.0,\"timeframe\":\"7d\",\"warning\":98.0}],\"type\":\"metric\"}"
17+
}
18+
},
19+
"times" : {
20+
"remainingTimes" : 1
21+
},
22+
"timeToLive" : {
23+
"unlimited" : true
24+
},
25+
"httpResponse" : {
26+
"statusCode" : 200,
27+
"reasonPhrase" : "OK",
28+
"headers" : {
29+
"Date" : [ "Wed, 03 Feb 2021 12:22:20 GMT" ],
30+
"Content-Type" : [ "application/json" ],
31+
"Connection" : [ "keep-alive" ],
32+
"vary" : [ "Accept-Encoding" ],
33+
"pragma" : [ "no-cache" ],
34+
"cache-control" : [ "no-cache" ],
35+
"set-cookie" : [ "DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 10-Feb-2021 12:22:20 GMT; secure; HttpOnly" ],
36+
"x-dd-version" : [ "35.3833449" ],
37+
"x-ratelimit-limit" : [ "500" ],
38+
"x-ratelimit-period" : [ "60" ],
39+
"x-ratelimit-reset" : [ "40" ],
40+
"x-ratelimit-remaining" : [ "499" ],
41+
"x-dd-debug" : [ "dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU" ],
42+
"x-content-type-options" : [ "nosniff" ],
43+
"strict-transport-security" : [ "max-age=15724800;" ],
44+
"content-security-policy" : [ "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report" ],
45+
"x-frame-options" : [ "SAMEORIGIN" ],
46+
"content-length" : [ "593" ]
47+
},
48+
"cookies" : {
49+
"DD-PSHARD" : "233"
50+
},
51+
"body" : "{\"data\":[{\"description\":\"\",\"monitor_tags\":[],\"creator\":{\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs@datadoghq.com\"},\"thresholds\":[{\"warning\":98.0,\"warning_display\":\"98.\",\"target\":95.0,\"target_display\":\"95.\",\"timeframe\":\"7d\"}],\"type_id\":1,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"id\":\"0e97e25d7eac5d89b66d1c610f394177\",\"name\":\"java-Get_an_SLO_correctio-1612354937\",\"created_at\":1612354940,\"tags\":[],\"modified_at\":1612354940,\"type\":\"metric\"}],\"error\":null}"
52+
}
53+
}, {
54+
"id" : "c16a8b50-b15e-42af-b52f-be72425f74d0",
55+
"httpRequest" : {
56+
"method" : "POST",
57+
"path" : "/api/v1/slo/correction",
58+
"headers" : {
59+
"Accept" : [ "application/json" ],
60+
"JAVA-TEST-NAME" : [ "Get_an_SLO_correction_for_an_SLO_returns_OK_response" ],
61+
"DD-OPERATION-ID" : [ "createSLOCorrection" ],
62+
"Content-Type" : [ "application/json" ]
63+
},
64+
"keepAlive" : false,
65+
"secure" : true,
66+
"body" : {
67+
"type" : "JSON",
68+
"json" : "{\"data\":{\"attributes\":{\"category\":\"Other\",\"description\":\"Test Correction\",\"end\":1612358537,\"slo_id\":\"0e97e25d7eac5d89b66d1c610f394177\",\"start\":1612354937,\"timezone\":\"UTC\"},\"type\":\"correction\"}}"
69+
}
70+
},
71+
"times" : {
72+
"remainingTimes" : 1
73+
},
74+
"timeToLive" : {
75+
"unlimited" : true
76+
},
77+
"httpResponse" : {
78+
"statusCode" : 200,
79+
"reasonPhrase" : "OK",
80+
"headers" : {
81+
"Date" : [ "Wed, 03 Feb 2021 12:22:21 GMT" ],
82+
"Content-Type" : [ "application/json" ],
83+
"Connection" : [ "keep-alive" ],
84+
"vary" : [ "Accept-Encoding" ],
85+
"pragma" : [ "no-cache" ],
86+
"cache-control" : [ "no-cache" ],
87+
"set-cookie" : [ "DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 10-Feb-2021 12:22:21 GMT; secure; HttpOnly" ],
88+
"x-dd-version" : [ "35.3833449" ],
89+
"x-ratelimit-limit" : [ "12000" ],
90+
"x-ratelimit-period" : [ "60" ],
91+
"x-ratelimit-reset" : [ "39" ],
92+
"x-ratelimit-remaining" : [ "11999" ],
93+
"x-dd-debug" : [ "5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h" ],
94+
"x-content-type-options" : [ "nosniff" ],
95+
"strict-transport-security" : [ "max-age=15724800;" ],
96+
"content-security-policy" : [ "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report" ],
97+
"x-frame-options" : [ "SAMEORIGIN" ],
98+
"content-length" : [ "581" ]
99+
},
100+
"cookies" : {
101+
"DD-PSHARD" : "233"
102+
},
103+
"body" : "{\"data\":{\"type\":\"correction\",\"id\":\"76c2d420-661a-11eb-90a4-da7ad0900002\",\"attributes\":{\"slo_id\":\"0e97e25d7eac5d89b66d1c610f394177\",\"start\":1612354937,\"end\":1612358537,\"description\":\"Test Correction\",\"category\":\"Other\",\"timezone\":\"UTC\",\"creator\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"uuid\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"email\":\"team-intg-tools-libs@datadoghq.com\",\"name\":\"CI Account\",\"icon\":\"https://secure.gravatar.com/avatar/bff625f8b50529c690eb616cd5e64167?s=48&d=retro\"}}}}}}"
104+
}
105+
}, {
106+
"id" : "8c8db458-e972-435e-88e0-e6516e09a813",
107+
"httpRequest" : {
108+
"method" : "GET",
109+
"path" : "/api/v1/slo/correction/76c2d420-661a-11eb-90a4-da7ad0900002",
110+
"headers" : {
111+
"Accept" : [ "application/json" ],
112+
"JAVA-TEST-NAME" : [ "Get_an_SLO_correction_for_an_SLO_returns_OK_response" ],
113+
"DD-OPERATION-ID" : [ "getSLOCorrection" ],
114+
"content-length" : [ "0" ]
115+
},
116+
"keepAlive" : false,
117+
"secure" : true
118+
},
119+
"times" : {
120+
"remainingTimes" : 1
121+
},
122+
"timeToLive" : {
123+
"unlimited" : true
124+
},
125+
"httpResponse" : {
126+
"statusCode" : 200,
127+
"reasonPhrase" : "OK",
128+
"headers" : {
129+
"Date" : [ "Wed, 03 Feb 2021 12:22:21 GMT" ],
130+
"Content-Type" : [ "application/json" ],
131+
"Connection" : [ "keep-alive" ],
132+
"vary" : [ "Accept-Encoding" ],
133+
"pragma" : [ "no-cache" ],
134+
"cache-control" : [ "no-cache" ],
135+
"set-cookie" : [ "DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 10-Feb-2021 12:22:21 GMT; secure; HttpOnly" ],
136+
"x-dd-version" : [ "35.3833449" ],
137+
"x-ratelimit-limit" : [ "12000" ],
138+
"x-ratelimit-period" : [ "60" ],
139+
"x-ratelimit-reset" : [ "39" ],
140+
"x-ratelimit-remaining" : [ "11999" ],
141+
"x-dd-debug" : [ "SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a" ],
142+
"x-content-type-options" : [ "nosniff" ],
143+
"strict-transport-security" : [ "max-age=15724800;" ],
144+
"content-security-policy" : [ "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report" ],
145+
"x-frame-options" : [ "SAMEORIGIN" ],
146+
"content-length" : [ "581" ]
147+
},
148+
"cookies" : {
149+
"DD-PSHARD" : "233"
150+
},
151+
"body" : "{\"data\":{\"type\":\"correction\",\"id\":\"76c2d420-661a-11eb-90a4-da7ad0900002\",\"attributes\":{\"slo_id\":\"0e97e25d7eac5d89b66d1c610f394177\",\"start\":1612354937,\"end\":1612358537,\"description\":\"Test Correction\",\"category\":\"Other\",\"timezone\":\"UTC\",\"creator\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"uuid\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"email\":\"team-intg-tools-libs@datadoghq.com\",\"name\":\"CI Account\",\"icon\":\"https://secure.gravatar.com/avatar/bff625f8b50529c690eb616cd5e64167?s=48&d=retro\"}}}}}}"
152+
}
153+
}, {
154+
"id" : "4cf5142c-d07c-43ab-adc9-67869a610221",
155+
"httpRequest" : {
156+
"method" : "DELETE",
157+
"path" : "/api/v1/slo/correction/76c2d420-661a-11eb-90a4-da7ad0900002",
158+
"headers" : {
159+
"Accept" : [ "application/json" ],
160+
"JAVA-TEST-NAME" : [ "Get_an_SLO_correction_for_an_SLO_returns_OK_response" ],
161+
"DD-OPERATION-ID" : [ "deleteSLOCorrection" ],
162+
"Content-Type" : [ "application/json" ]
163+
},
164+
"keepAlive" : false,
165+
"secure" : true
166+
},
167+
"times" : {
168+
"remainingTimes" : 1
169+
},
170+
"timeToLive" : {
171+
"unlimited" : true
172+
},
173+
"httpResponse" : {
174+
"statusCode" : 204,
175+
"reasonPhrase" : "No Content",
176+
"headers" : {
177+
"Date" : [ "Wed, 03 Feb 2021 12:22:21 GMT" ],
178+
"Content-Type" : [ "application/json" ],
179+
"Content-Length" : [ "0" ],
180+
"Connection" : [ "keep-alive" ],
181+
"pragma" : [ "no-cache" ],
182+
"cache-control" : [ "no-cache" ],
183+
"set-cookie" : [ "DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 10-Feb-2021 12:22:21 GMT; secure; HttpOnly" ],
184+
"x-dd-version" : [ "35.3833449" ],
185+
"x-ratelimit-limit" : [ "12000" ],
186+
"x-ratelimit-period" : [ "60" ],
187+
"x-ratelimit-reset" : [ "39" ],
188+
"x-ratelimit-remaining" : [ "11999" ],
189+
"x-dd-debug" : [ "tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN" ],
190+
"x-content-type-options" : [ "nosniff" ],
191+
"strict-transport-security" : [ "max-age=15724800;" ],
192+
"content-security-policy" : [ "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report" ],
193+
"x-frame-options" : [ "SAMEORIGIN" ]
194+
},
195+
"cookies" : {
196+
"DD-PSHARD" : "233"
197+
}
198+
}
199+
}, {
200+
"id" : "4d8997f9-8e14-41b6-8c0d-5f183d06aa51",
201+
"httpRequest" : {
202+
"method" : "DELETE",
203+
"path" : "/api/v1/slo/0e97e25d7eac5d89b66d1c610f394177",
204+
"headers" : {
205+
"Accept" : [ "application/json" ],
206+
"JAVA-TEST-NAME" : [ "Get_an_SLO_correction_for_an_SLO_returns_OK_response" ],
207+
"DD-OPERATION-ID" : [ "deleteSLO" ],
208+
"Content-Type" : [ "application/json" ]
209+
},
210+
"keepAlive" : false,
211+
"secure" : true
212+
},
213+
"times" : {
214+
"remainingTimes" : 1
215+
},
216+
"timeToLive" : {
217+
"unlimited" : true
218+
},
219+
"httpResponse" : {
220+
"statusCode" : 200,
221+
"reasonPhrase" : "OK",
222+
"headers" : {
223+
"Date" : [ "Wed, 03 Feb 2021 12:22:21 GMT" ],
224+
"Content-Type" : [ "application/json" ],
225+
"Connection" : [ "keep-alive" ],
226+
"vary" : [ "Accept-Encoding" ],
227+
"pragma" : [ "no-cache" ],
228+
"cache-control" : [ "no-cache" ],
229+
"set-cookie" : [ "DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 10-Feb-2021 12:22:21 GMT; secure; HttpOnly" ],
230+
"x-dd-version" : [ "35.3833449" ],
231+
"x-ratelimit-limit" : [ "12000" ],
232+
"x-ratelimit-period" : [ "60" ],
233+
"x-ratelimit-reset" : [ "39" ],
234+
"x-ratelimit-remaining" : [ "11999" ],
235+
"x-dd-debug" : [ "L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ" ],
236+
"x-content-type-options" : [ "nosniff" ],
237+
"strict-transport-security" : [ "max-age=15724800;" ],
238+
"content-security-policy" : [ "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report" ],
239+
"x-frame-options" : [ "SAMEORIGIN" ],
240+
"content-length" : [ "58" ]
241+
},
242+
"cookies" : {
243+
"DD-PSHARD" : "233"
244+
},
245+
"body" : "{\"data\":[\"0e97e25d7eac5d89b66d1c610f394177\"],\"error\":null}"
246+
}
247+
}]

0 commit comments

Comments
 (0)