Skip to content

Commit b48b225

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Change status of info log in example (#1098)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 167dce9 commit b48b225

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
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.6.4",
7-
"regenerated": "2023-04-11 20:40:39.128836",
8-
"spec_repo_commit": "9b02c84d"
7+
"regenerated": "2023-04-14 08:32:58.509183",
8+
"spec_repo_commit": "318954bb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-04-11 20:40:39.141503",
13-
"spec_repo_commit": "9b02c84d"
12+
"regenerated": "2023-04-14 08:32:58.521403",
13+
"spec_repo_commit": "318954bb"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-05-12T15:31:57.041Z"
1+
"2023-04-13T18:28:45.445Z"

cassettes/v2/Logs_1370058150/Send-logs-returns-Request-accepted-for-processing-always-202-empty-JSON-response_274337383/recording.har

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "0dead10c3be1a77d22a629ee301b5898",
11+
"_id": "fa8a024648b068435e0fe4dc8ac83df9",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 194,
15+
"bodySize": 193,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,7 +32,7 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "[{\"ddsource\":\"nginx\",\"ddtags\":\"env:staging,version:5.1\",\"hostname\":\"i-012345678\",\"message\":\"2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World\",\"service\":\"payment\",\"status\":\"error\"}]"
35+
"text": "[{\"ddsource\":\"nginx\",\"ddtags\":\"env:staging,version:5.1\",\"hostname\":\"i-012345678\",\"message\":\"2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World\",\"service\":\"payment\",\"status\":\"info\"}]"
3636
},
3737
"queryString": [],
3838
"url": "https://http-intake.logs.datadoghq.com/api/v2/logs"
@@ -51,14 +51,14 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 153,
54+
"headersSize": 294,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 202,
5858
"statusText": "Accepted"
5959
},
60-
"startedDateTime": "2022-05-12T15:31:57.054Z",
61-
"time": 383
60+
"startedDateTime": "2023-04-13T18:28:45.771Z",
61+
"time": 80
6262
}
6363
],
6464
"pages": [],

examples/v2/logs/SubmitLog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const params: v2.LogsApiSubmitLogRequest = {
1616
message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World",
1717
service: "payment",
1818
additionalProperties: {
19-
status: "error",
19+
status: "info",
2020
},
2121
},
2222
],

features/v2/logs.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@ Feature: Logs
143143
@skip-go @team:DataDog/event-platform-intake @team:DataDog/logs-backend
144144
Scenario: Send logs returns "Request accepted for processing (always 202 empty JSON)." response
145145
Given new "SubmitLog" request
146-
And body with value [{"ddsource": "nginx", "ddtags": "env:staging,version:5.1", "hostname": "i-012345678", "message": "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", "service": "payment", "status": "error"}]
146+
And body with value [{"ddsource": "nginx", "ddtags": "env:staging,version:5.1", "hostname": "i-012345678", "message": "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World", "service": "payment", "status": "info"}]
147147
When the request is sent
148148
Then the response status is 202 Request accepted for processing (always 202 empty JSON).

0 commit comments

Comments
 (0)