Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-11 20:40:39.128836",
"spec_repo_commit": "9b02c84d"
"regenerated": "2023-04-14 08:32:58.509183",
"spec_repo_commit": "318954bb"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-11 20:40:39.141503",
"spec_repo_commit": "9b02c84d"
"regenerated": "2023-04-14 08:32:58.521403",
"spec_repo_commit": "318954bb"
}
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022-05-12T15:31:57.041Z"
"2023-04-13T18:28:45.445Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "0dead10c3be1a77d22a629ee301b5898",
"_id": "fa8a024648b068435e0fe4dc8ac83df9",
"_order": 0,
"cache": {},
"request": {
"bodySize": 194,
"bodySize": 193,
"cookies": [],
"headers": [
{
Expand All @@ -32,7 +32,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"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\"}]"
"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\"}]"
},
"queryString": [],
"url": "https://http-intake.logs.datadoghq.com/api/v2/logs"
Expand All @@ -51,14 +51,14 @@
"value": "application/json"
}
],
"headersSize": 153,
"headersSize": 294,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 202,
"statusText": "Accepted"
},
"startedDateTime": "2022-05-12T15:31:57.054Z",
"time": 383
"startedDateTime": "2023-04-13T18:28:45.771Z",
"time": 80
}
],
"pages": [],
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/logs/SubmitLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const params: v2.LogsApiSubmitLogRequest = {
message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World",
service: "payment",
additionalProperties: {
status: "error",
status: "info",
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion features/v2/logs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ Feature: Logs
@skip-go @team:DataDog/event-platform-intake @team:DataDog/logs-backend
Scenario: Send logs returns "Request accepted for processing (always 202 empty JSON)." response
Given new "SubmitLog" request
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"}]
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"}]
When the request is sent
Then the response status is 202 Request accepted for processing (always 202 empty JSON).