Skip to content

Commit

Permalink
PP-893: disable splunk preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ubhaller committed Mar 3, 2021
1 parent 0bd8d54 commit b064387
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> response = rt.exchange(request, String.class);
logger.info("Result: Status: " + response.getStatusCode() + " Body: " + response.getBody());
Expand Down Expand Up @@ -266,6 +266,7 @@ private MultiValueMap<String, String> 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;
}

Expand All @@ -282,6 +283,7 @@ private MultiValueMap<String, String> 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;
}

Expand Down

0 comments on commit b064387

Please sign in to comment.