We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4949a2f commit 872bbdfCopy full SHA for 872bbdf
src/main/java/org/springframework/samples/petclinic/clinicactivity/ClinicActivityController.java
@@ -54,6 +54,12 @@ public int getActiveErrorsRatio() {
54
return dataService.getActiveLogsRatio("errors");
55
}
56
57
+ // This ep is here to throw error
58
+ @GetMapping("active-warning-ratio")
59
+ public int getActiveWarningsRatio() {
60
+ return dataService.getActiveLogsRatio("warnings");
61
+ }
62
+
63
@PostMapping("/populate-logs")
64
public ResponseEntity<String> populateData(@RequestParam(name = "count", defaultValue = "6000000") int count) {
65
logger.info("Received request to populate {} clinic activity logs.", count);
0 commit comments