Class PdfReportService

java.lang.Object
com.nmontytskyi.monitoring.server.service.PdfReportService

@Service public class PdfReportService extends Object
Service responsible for generating PDF reports for monitored services and the overall system.

Supports three report types:

  • SLA report — SLA compliance summary for a single service.
  • Full service report — complete metric history, anomaly log, and SLA compliance for a single service.
  • System report — aggregated data across all registered services for a user-selected date range.
Each generated report is recorded in ReportHistoryEntity for audit and download-history purposes.
Author:
Nazar Montytskyi
See Also:
  • Constructor Details

    • PdfReportService

      public PdfReportService()
  • Method Details

    • generateSlaReport

      @Transactional public byte[] generateSlaReport(Long serviceId, LocalDate from, LocalDate to)
    • generateFullReport

      @Transactional public byte[] generateFullReport(Long serviceId, LocalDate from, LocalDate to)
    • generateSystemReport

      @Transactional public byte[] generateSystemReport(LocalDate from, LocalDate to)