-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15c887e
commit c61921f
Showing
11 changed files
with
280 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ssettes/TestScenarios/Feature_Logs/Scenario_Aggregate_events_returns__OK__response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2020-09-24T10:27:02.137507+02:00 |
65 changes: 65 additions & 0 deletions
65
...cassettes/TestScenarios/Feature_Logs/Scenario_Aggregate_events_returns__OK__response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: | | ||
{"compute":[{"aggregation":"count","interval":"300","metric":"test.aggregation.go-Feature_Logs-Scenario_Aggregate_events_returns__OK__response-local-1600936022","type":"timeseries"}],"filter":{"from":"1600348573","indexes":["main"],"query":"datadog-agent","to":"1600348600"}} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
Dd-Operation-Id: | ||
- AggregateLogs | ||
User-Agent: | ||
- datadog-api-client-go/1.0.0-beta.9+dev (go go1.14.1; os darwin; arch amd64) | ||
X-Datadog-Parent-Id: | ||
- "7918380587048278483" | ||
X-Datadog-Sampling-Priority: | ||
- "1" | ||
X-Datadog-Trace-Id: | ||
- "573202837971035806" | ||
url: https://api.datadoghq.com/api/v2/logs/analytics/aggregate | ||
method: POST | ||
response: | ||
body: '{"meta":{"status":"done","request_id":"RFRJa2YtZXZUYkdhcnBRNVZYeVdTQXwwZTVEcW9rcEpyZkZsS1NIVDhWbWt3","elapsed":0},"data":{"buckets":[]}}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
Connection: | ||
- keep-alive | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Thu, 24 Sep 2020 08:27:02 GMT | ||
Dd-Pool: | ||
- dogweb | ||
Pragma: | ||
- no-cache | ||
Set-Cookie: | ||
- DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 01-Oct-2020 08:27:02 GMT; | ||
secure; HttpOnly | ||
Strict-Transport-Security: | ||
- max-age=15724800; | ||
Vary: | ||
- Accept-Encoding | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Debug: | ||
- 1yK3PnBzCoxF/WGKEJeJqS2Jb9mutr3xDuvLdPbJCfX1HVDqeCXkaWYDO6wQpQhO | ||
X-Dd-Version: | ||
- "35.3086137" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Ratelimit-Limit: | ||
- "5" | ||
X-Ratelimit-Period: | ||
- "30" | ||
X-Ratelimit-Remaining: | ||
- "4" | ||
X-Ratelimit-Reset: | ||
- "28" | ||
status: 200 OK | ||
code: 200 | ||
duration: "" |
1 change: 1 addition & 0 deletions
1
...ettes/TestScenarios/Feature_Logs/Scenario_Get_a_list_of_logs_returns__OK__response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2020-09-24T10:27:01.932449+02:00 |
65 changes: 65 additions & 0 deletions
65
...ssettes/TestScenarios/Feature_Logs/Scenario_Get_a_list_of_logs_returns__OK__response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: | | ||
{"filter":{"from":"2020-09-17T11:48:36+01:00","indexes":["main"],"query":"datadog-agent","to":"2020-09-17T12:48:36+01:00"},"page":{"limit":5},"sort":"timestamp"} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
Dd-Operation-Id: | ||
- ListLogs | ||
User-Agent: | ||
- datadog-api-client-go/1.0.0-beta.9+dev (go go1.14.1; os darwin; arch amd64) | ||
X-Datadog-Parent-Id: | ||
- "4600892296438291285" | ||
X-Datadog-Sampling-Priority: | ||
- "1" | ||
X-Datadog-Trace-Id: | ||
- "7583226699408746109" | ||
url: https://api.datadoghq.com/api/v2/logs/events/search | ||
method: POST | ||
response: | ||
body: '{"data":[]}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- "11" | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Thu, 24 Sep 2020 08:27:02 GMT | ||
Dd-Pool: | ||
- dogweb | ||
Pragma: | ||
- no-cache | ||
Set-Cookie: | ||
- DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 01-Oct-2020 08:27:01 GMT; | ||
secure; HttpOnly | ||
Strict-Transport-Security: | ||
- max-age=15724800; | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Debug: | ||
- YNPvfo/A+kRa92W7PZNTiFcSJq6YGkB9TIlX47+pHHndNDZ3ZySmub3fInFxn6Db | ||
X-Dd-Version: | ||
- "35.3086137" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Ratelimit-Limit: | ||
- "300" | ||
X-Ratelimit-Period: | ||
- "3600" | ||
X-Ratelimit-Remaining: | ||
- "298" | ||
X-Ratelimit-Reset: | ||
- "1978" | ||
status: 200 OK | ||
code: 200 | ||
duration: "" |
1 change: 1 addition & 0 deletions
1
...TestScenarios/Feature_Logs/Scenario_Get_a_quick_list_of_logs_returns__OK__response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2020-09-24T10:27:00.796481+02:00 |
62 changes: 62 additions & 0 deletions
62
...s/TestScenarios/Feature_Logs/Scenario_Get_a_quick_list_of_logs_returns__OK__response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Dd-Operation-Id: | ||
- ListLogsGet | ||
User-Agent: | ||
- datadog-api-client-go/1.0.0-beta.9+dev (go go1.14.1; os darwin; arch amd64) | ||
X-Datadog-Parent-Id: | ||
- "4883115807099481994" | ||
X-Datadog-Sampling-Priority: | ||
- "1" | ||
X-Datadog-Trace-Id: | ||
- "3201576817382276682" | ||
url: https://api.datadoghq.com/api/v2/logs/events?filter%5Bfrom%5D=2020-09-17T11%3A48%3A36%2B01%3A00&filter%5Bindex%5D=main&filter%5Bquery%5D=datadog-agent&filter%5Bto%5D=2020-09-17T12%3A48%3A36%2B01%3A00&page%5Blimit%5D=5 | ||
method: GET | ||
response: | ||
body: '{"data":[]}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- "11" | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Thu, 24 Sep 2020 08:27:01 GMT | ||
Dd-Pool: | ||
- dogweb | ||
Pragma: | ||
- no-cache | ||
Set-Cookie: | ||
- DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 01-Oct-2020 08:27:01 GMT; | ||
secure; HttpOnly | ||
Strict-Transport-Security: | ||
- max-age=15724800; | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Debug: | ||
- iGG1BKNRTmPfZ6ji2H3Z/xn9c4eIM8cOugS+JJDlp5xOVDa6tvCgtO3MGJFoLiiG | ||
X-Dd-Version: | ||
- "35.3086137" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Ratelimit-Limit: | ||
- "300" | ||
X-Ratelimit-Period: | ||
- "3600" | ||
X-Ratelimit-Remaining: | ||
- "299" | ||
X-Ratelimit-Reset: | ||
- "1979" | ||
status: 200 OK | ||
code: 200 | ||
duration: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.