protected List<AuditResult> getAuditResults(Iterable<Dashboard> dashboards) {
        int numberOfAuditDays = settings.getDays();
        long auditBeginDateTimeStamp = Instant.now().minus(Duration.ofDays(numberOfAuditDays)).toEpochMilli();
        long auditEndDateTimeStamp = Instant.now().toEpochMilli();
        LOGGER.info("NFRR Audit Collector audits with begin,end timestamps as " + auditBeginDateTimeStamp + "," + auditEndDateTimeStamp);

        dashboards.forEach((Dashboard dashboard) -> {
                Map<AuditType, Audit> auditMap = AuditCollectorUtil.getAudit(dashboard, settings,
                        auditBeginDateTimeStamp, auditEndDateTimeStamp);

                LOGGER.info("NFRR Audit Collector adding audit results for the dashboard : " + dashboard.getTitle());
                AuditCollectorUtil.addAuditResultByAuditType(dashboard, auditMap, cmdbRepository, auditEndDateTimeStamp);
        });
        return AuditCollectorUtil.getAuditResults();
    }
protected List < AuditResult > getAuditResults ( Iterable < Dashboard > dashboards ) { int numberOfAuditDays = settings . getDays ( ) ; long auditBeginDateTimeStamp = Instant . now ( ) . minus ( Duration . ofDays ( numberOfAuditDays ) ) . toEpochMilli ( ) ; long auditEndDateTimeStamp = Instant . now ( ) . toEpochMilli ( ) ; LOGGER . info ( "NFRR Audit Collector audits with begin,end timestamps as " + auditBeginDateTimeStamp + "," + auditEndDateTimeStamp ) ; dashboards . forEach ( ( Dashboard dashboard ) -> { Map < AuditType , Audit > auditMap = AuditCollectorUtil . getAudit ( dashboard , settings , auditBeginDateTimeStamp , auditEndDateTimeStamp ) ; LOGGER . info ( "NFRR Audit Collector adding audit results for the dashboard : " + dashboard . getTitle ( ) ) ; AuditCollectorUtil . addAuditResultByAuditType ( dashboard , auditMap , cmdbRepository , auditEndDateTimeStamp ) ; } ) ; return AuditCollectorUtil . getAuditResults ( ) ; }
Get audit statuses for the dashboards

@param dashboards