mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
📁 pre-commit
Signed-off-by: stirlingbot[bot] <stirlingbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
409cada93a
commit
b1056766d8
@ -116,8 +116,12 @@ public class AuditDashboardController {
|
|||||||
@GetMapping("/stats")
|
@GetMapping("/stats")
|
||||||
@Operation(summary = "Get audit statistics for the last N days")
|
@Operation(summary = "Get audit statistics for the last N days")
|
||||||
public AuditStatsResponse getAuditStats(
|
public AuditStatsResponse getAuditStats(
|
||||||
@Schema(description = "Number of days to look back for audit events", example = "7", required = true)
|
@Schema(
|
||||||
@RequestParam(value = "days", defaultValue = "7") int days) {
|
description = "Number of days to look back for audit events",
|
||||||
|
example = "7",
|
||||||
|
required = true)
|
||||||
|
@RequestParam(value = "days", defaultValue = "7")
|
||||||
|
int days) {
|
||||||
|
|
||||||
// Get events from the last X days
|
// Get events from the last X days
|
||||||
Instant startDate = Instant.now().minus(java.time.Duration.ofDays(days));
|
Instant startDate = Instant.now().minus(java.time.Duration.ofDays(days));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user