Skip to content

Commit 872bbdf

Browse files
committed
Added getActiveWarningsRatio
1 parent 4949a2f commit 872bbdf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/springframework/samples/petclinic/clinicactivity/ClinicActivityController.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public int getActiveErrorsRatio() {
5454
return dataService.getActiveLogsRatio("errors");
5555
}
5656

57+
// This ep is here to throw error
58+
@GetMapping("active-warning-ratio")
59+
public int getActiveWarningsRatio() {
60+
return dataService.getActiveLogsRatio("warnings");
61+
}
62+
5763
@PostMapping("/populate-logs")
5864
public ResponseEntity<String> populateData(@RequestParam(name = "count", defaultValue = "6000000") int count) {
5965
logger.info("Received request to populate {} clinic activity logs.", count);

0 commit comments

Comments
 (0)