Skip to content

Commit 492e2f7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 86a023ae of spec repo (#950)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 8e65d2f commit 492e2f7

10 files changed

+24
-16
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.2",
7-
"regenerated": "2022-04-19 14:15:36.924508",
8-
"spec_repo_commit": "cbed8a1f"
7+
"regenerated": "2022-04-19 14:40:07.070967",
8+
"spec_repo_commit": "86a023ae"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-04-19 14:15:36.936357",
13-
"spec_repo_commit": "cbed8a1f"
12+
"regenerated": "2022-04-19 14:40:07.085526",
13+
"spec_repo_commit": "86a023ae"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3952,10 +3952,10 @@ components:
39523952
description: Array of tags associated with your log.
39533953
example:
39543954
- team:A
3955-
format: array
39563955
items:
39573956
description: Tag associated with your log.
3958-
format: string
3957+
type: string
3958+
type: array
39593959
timestamp:
39603960
description: Timestamp of your log.
39613961
example: '2020-05-26T13:36:14Z'

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6297,10 +6297,10 @@ components:
62976297
example:
62986298
- security:attack
62996299
- technique:T1110-brute-force
6300-
format: array
63016300
items:
63026301
description: The tag associated with the security signal.
63036302
type: string
6303+
type: array
63046304
timestamp:
63056305
description: The timestamp of the security signal.
63066306
example: '2019-01-02T09:42:36.320Z'

examples/v1/logs/ListLogs_235998668.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
body = LogsListRequest(
1414
index="main",
15-
query="service:web*",
15+
query="host:Test*",
1616
sort=LogsSort("asc"),
1717
time=LogsListRequestTime(
1818
_from=(datetime.now() + relativedelta(hours=-1)).isoformat(timespec="seconds"),

src/datadog_api_client/v1/model/log_content.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-03-16T20:19:15.972Z
1+
2022-04-12T14:46:01.054Z

tests/v1/cassettes/test_scenarios/test_search_test_logs_returns_ok_response.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"index":"main","query":"service:web*","sort":"asc","time":{"from":"2022-03-16T19:19:15.972Z","timezone":"Europe/Paris","to":"2022-03-16T20:19:15.972Z"}}'
3+
body: '{"index":"main","query":"host:Test*","sort":"asc","time":{"from":"2022-04-12T13:46:01.054Z","timezone":"Europe/Paris","to":"2022-04-12T14:46:01.054Z"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,15 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v1/logs-queries/list
1111
response:
1212
body:
13-
string: '{"status":"done","nextLogId":null,"logs":[],"requestId":"pddv1ChY1NmxlTHZVZlFpNnN6WGJLQUg4VGNBIi0KHfuLOnaa0UteA_7Jc4dRCbmb4YhQqyZLVXBRZ-eSEgzkoIm-nmhrtG8HKG0"}'
13+
string: '{"status":"done","nextLogId":"AQAAAYAeNzBYpo9uwQAAAABBWUFlTnphX0FBQ3ZDWWkzMEhwV3lnQUE","logs":[{"content":{"attributes":{"timestamp":1649772129000,"hostname":"Test-Go-TestLogsList-1649773129"},"host":"Test-Go-TestLogsList-1649773129","tags":["source:go-client-test-test-go-testlogslist-1649773129","source:go-client-test-test-go-testlogslist-1649773129","test","go","list"],"message":"test-log-list-1
14+
Test-Go-TestLogsList-1649773129","timestamp":"2022-04-12T14:02:09.000Z"},"id":"AQAAAYAeFOro88x3gAAAAABBWUFlSkRBTUFBQTYxd2RPZWdXdkVRQUE"},{"content":{"attributes":{"timestamp":1649772161000,"hostname":"Test-Go-TestLogsListGet-1649773161"},"host":"Test-Go-TestLogsListGet-1649773161","tags":["source:go-client-test-test-go-testlogslistget-1649773161","test","go","list","source:go-client-test-test-go-testlogslistget-1649773161"],"message":"test-log-list-1
15+
Test-Go-TestLogsListGet-1649773161","timestamp":"2022-04-12T14:02:41.000Z"},"id":"AQAAAYAeFWfoHAiocAAAAABBWUFlSkt1ZEFBQXVPblNhLTVqU2xnQUE"},{"content":{"attributes":{"timestamp":1649773128000,"hostname":"Test-Go-TestLogsList-1649773129"},"host":"Test-Go-TestLogsList-1649773129","tags":["source:go-client-test-test-go-testlogslist-1649773129","source:go-client-test-test-go-testlogslist-1649773129","test","go","list"],"message":"test-log-list-2
16+
Test-Go-TestLogsList-1649773129","timestamp":"2022-04-12T14:18:48.000Z"},"id":"AQAAAYAeJClARmc41AAAAABBWUFlSkRCY0FBQnhWWklPUUhyckd3QUE"},{"content":{"attributes":{"timestamp":1649773160000,"hostname":"Test-Go-TestLogsListGet-1649773161"},"host":"Test-Go-TestLogsListGet-1649773161","tags":["source:go-client-test-test-go-testlogslistget-1649773161","test","go","list","source:go-client-test-test-go-testlogslistget-1649773161"],"message":"test-log-list-2
17+
Test-Go-TestLogsListGet-1649773161","timestamp":"2022-04-12T14:19:20.000Z"},"id":"AQAAAYAeJKZAhvnyzgAAAABBWUFlSkt2b0FBQVI1Q0EtS2JyRnJRQUE"},{"content":{"attributes":{"timestamp":1649773195000,"hostname":"Test-Go-TestLogsList-1649774195"},"host":"Test-Go-TestLogsList-1649774195","tags":["source:go-client-test-test-go-testlogslist-1649774195","test","go","list","source:go-client-test-test-go-testlogslist-1649774195"],"message":"test-log-list-1
18+
Test-Go-TestLogsList-1649774195","timestamp":"2022-04-12T14:19:55.000Z"},"id":"AQAAAYAeJS745UJvLwAAAABBWUFlTkhOWUFBQmtWQk8zVXkwTDN3QUE"},{"content":{"attributes":{"timestamp":1649773317000,"hostname":"Test-Go-TestLogsList-1649773318"},"host":"Test-Go-TestLogsList-1649773318","tags":["source:go-client-test-1649773318743602624","test","go","list","source:go-client-test-1649773318743602624"],"message":"test-log-list-1649773318743602624","timestamp":"2022-04-12T14:21:57.000Z"},"id":"AQAAAYAeJwuIithnHAAAAABBWUFlSnhMcUFBQnkzcFE3ZlVPOGVRQUE"},{"content":{"attributes":{"timestamp":1649773318000,"hostname":"Test-Go-TestLogsList-1649773318"},"host":"Test-Go-TestLogsList-1649773318","tags":["source:go-client-test-1649773318743602624","test","go","list","source:go-client-test-1649773318743602624"],"message":"second-test-log-list-1649773318743602624","timestamp":"2022-04-12T14:21:58.000Z"},"id":"AQAAAYAeJw9w5m-WVwAAAABBWUFlSnhOMkFBQU1DVVRPSzJMVDlBQUE"},{"content":{"attributes":{"timestamp":1649773376000,"hostname":"Test-Go-TestLogsList-1649774376"},"host":"Test-Go-TestLogsList-1649774376","tags":["source:go-client-test-test-go-testlogslist-1649774376","test","go","source:go-client-test-test-go-testlogslist-1649774376","list"],"message":"test-log-list-1
19+
Test-Go-TestLogsList-1649774376","timestamp":"2022-04-12T14:22:56.000Z"},"id":"AQAAAYAeJ_IAoerAgAAAAABBWUFlTnpZWUFBQ29QaE5GdHgxcjJnQUE"},{"content":{"attributes":{"timestamp":1649773408000,"hostname":"Test-Go-TestLogsListGet-1649774408"},"host":"Test-Go-TestLogsListGet-1649774408","tags":["source:go-client-test-test-go-testlogslistget-1649774408","test","go","list","source:go-client-test-test-go-testlogslistget-1649774408"],"message":"test-log-list-1
20+
Test-Go-TestLogsListGet-1649774408","timestamp":"2022-04-12T14:23:28.000Z"},"id":"AQAAAYAeKG8Ao6McCAAAAABBWUFlTjdLZEFBRHFMTW9ZX2RTdzdnQUE"},{"content":{"attributes":{"timestamp":1649774194000,"hostname":"Test-Go-TestLogsList-1649774195"},"host":"Test-Go-TestLogsList-1649774195","tags":["source:go-client-test-test-go-testlogslist-1649774195","test","go","list","source:go-client-test-test-go-testlogslist-1649774195"],"message":"test-log-list-2
21+
Test-Go-TestLogsList-1649774195","timestamp":"2022-04-12T14:36:34.000Z"},"id":"AQAAAYAeNG1Q5fBvLwAAAABBWUFlTkhQakFBQmtWQk8zVXkwTXNnQUE"}],"requestId":"pddv1ChZ0T0JqMzFnX1FQaWdGd21BTU1hckl3IiwKHC8XTMg_fLTUGsRepyDllkNF3vCLTnkHA-t3jZYSDMSnnSl0VC9gKVQz5Q"}'
1422
headers:
1523
content-type:
1624
- application/json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:50:52.392Z
1+
2022-04-12T14:46:46.337Z

tests/v1/cassettes/test_scenarios/test_send_logs_returns_response_from_server_always_200_empty_json_response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '[{"ddtags":"host:TestSendlogsreturnsResponsefromserveralways200emptyJSONresponse1641430252","message":"Test-Send_logs_returns_Response_from_server_always_200_empty_JSON_response-1641430252"}]'
3+
body: '[{"ddtags":"host:TestSendlogsreturnsResponsefromserveralways200emptyJSONresponse1649774806","message":"Test-Send_logs_returns_Response_from_server_always_200_empty_JSON_response-1649774806"}]'
44
headers:
55
accept:
66
- application/json

tests/v1/features/logs.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Feature: Logs
2626
Scenario: Search test logs returns "OK" response
2727
Given a valid "appKeyAuth" key in the system
2828
And new "ListLogs" request
29-
And body with value {"index": "main", "query": "service:web*", "sort": "asc", "time": {"from": "{{ timeISO("now - 1h") }}", "timezone": "Europe/Paris", "to": "{{ timeISO("now") }}" }}
29+
And body with value {"index": "main", "query": "host:Test*", "sort": "asc", "time": {"from": "{{ timeISO("now - 1h") }}", "timezone": "Europe/Paris", "to": "{{ timeISO("now") }}" }}
3030
When the request is sent
3131
Then the response status is 200 OK
3232

0 commit comments

Comments
 (0)