From b064387a4ea9bea18df94fbd68a3a7bfc45eec6d Mon Sep 17 00:00:00 2001 From: Felix Haller Date: Wed, 3 Mar 2021 17:16:08 +0100 Subject: [PATCH] PP-893: disable splunk preview --- .../backend/ws/statistics/SplunkStatisticClient.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dpppt-additionalinfo-backend/src/main/java/org/dpppt/additionalinfo/backend/ws/statistics/SplunkStatisticClient.java b/dpppt-additionalinfo-backend/src/main/java/org/dpppt/additionalinfo/backend/ws/statistics/SplunkStatisticClient.java index 4791a40..8710e7f 100644 --- a/dpppt-additionalinfo-backend/src/main/java/org/dpppt/additionalinfo/backend/ws/statistics/SplunkStatisticClient.java +++ b/dpppt-additionalinfo-backend/src/main/java/org/dpppt/additionalinfo/backend/ws/statistics/SplunkStatisticClient.java @@ -134,7 +134,7 @@ private void loadCovidcodesEntered0to2dPrevWeek(Statistics statistics) throws Ex .headers(createHeaders()) .body( createRequestParamsForLastXDays( - queryCovidCodesEnteredAfterXDaysOnsetOfSymptoms, 10)); + queryCovidCodesEnteredAfterXDaysOnsetOfSymptoms, 7)); logger.debug("Request entity: " + request.toString()); ResponseEntity response = rt.exchange(request, String.class); logger.info("Result: Status: " + response.getStatusCode() + " Body: " + response.getBody()); @@ -266,6 +266,7 @@ private MultiValueMap createRequestParams(String query) { params.add("earliest_time", "-" + daysBack + "d@d"); params.add("latest_time", "-" + queryEndDaysBack + "d@d"); params.add("output_mode", "json"); + params.add("preview", "false"); return params; } @@ -282,6 +283,7 @@ private MultiValueMap createRequestParamsForLastXDays(String que params.add("earliest_time", "-" + daysBack + "d@d"); params.add("latest_time", "now"); params.add("output_mode", "json"); + params.add("preview", "false"); return params; }