private static Audit doBasicAuditCheck ( JSONArray jsonArray , JSONArray global , AuditType auditType ) { Audit audit = new Audit ( ) ; audit . setType ( auditType ) ; if ( ! isConfigured ( auditType , global ) ) { audit . setDataStatus ( DataStatus . NOT_CONFIGURED ) ; audit . setAuditStatus ( AuditStatus . NA ) ; return audit ; } if ( jsonArray == null || CollectionUtils . isEmpty ( jsonArray ) ) { audit . setAuditStatus ( AuditStatus . NA ) ; audit . setDataStatus ( DataStatus . NO_DATA ) ; return audit ; } if ( isCollectorError ( jsonArray ) ) { audit . setAuditStatus ( AuditStatus . NA ) ; audit . setDataStatus ( DataStatus . ERROR ) ; return audit ; } return null ; }
Do basic audit check - configuration collector error no data