Skip to content

Commit

Permalink
Merge branch 'OCD-4765' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
tmy1313 committed Mar 3, 2025
2 parents d582102 + 8658a66 commit 52095c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,8 @@ public List<SyntheticsAPITestResultShort> getSyntheticsTestResults(String public
}

public SyntheticsGetAPITestLatestResultsResponse getSyntheticsTestResults(String publicTestKey) {
// SyntheticsGetAPITestLatestResultsResponse response;
// List<SyntheticsAPITestResultShort> testResults = new
// ArrayList<SyntheticsAPITestResultShort>();
try {
return apiProvider.getApiInstance().getAPITestLatestResults(publicTestKey);
// while (response.getResults().size() > 1) {
// testResults.addAll(response.getResults());
// Long ts = getMostRecentTimestamp(response.getResults());
// response =
// apiProvider.getApiInstance().getAPITestLatestResults(publicTestKey);
// }
// LOGGER.info("Found {} tests for monitor {}", testResults.size(),
// publicTestKey);

return apiProvider.getApiInstance().getAPITestLatestResults(publicTestKey);
} catch (ApiException e) {
LOGGER.error("Could not retrieve results for test key: {}", publicTestKey, e);
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private void synchronizeUrlUptimeMonitorsWithDatadogSyntheticsTests() {
urlUptimeMonitors = urlUptimeMonitorDAO.getAll();
removeOutdatedUrlMonitors(urlUptimeMonitors, expectedUrlUptimeMonitors);
}

private void addMissingUrlMonitors(List<UrlUptimeMonitor> existing, List<UrlUptimeMonitor> expected) {
expected.stream()
.filter(uum -> !contains(existing, uum))
Expand Down

0 comments on commit 52095c5

Please sign in to comment.