Skip to content

Commit b5286a1

Browse files
authored
[INLONG-12069][Audit] Fill with zero when there is no data for a given the API of day (#12070)
[INLONG-12069][Audit] Fill with zero when there is no data for a given the API of day (#12070)
1 parent 1131468 commit b5286a1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/cache

inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/cache/DayCache.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ public List<StatData> getData(String startTime, String endTime, String inlongGro
144144
LOGGER.error("Query has exception! ", exception);
145145
}
146146

147+
if (result.isEmpty()) {
148+
result.add(new StatData(startTime, inlongGroupId, inlongStreamId, auditId));
149+
}
150+
147151
return WILDCARD_STREAM_ID.equals(inlongStreamId)
148152
? AuditUtils.aggregateStatData(result, inlongStreamId)
149153
: result;

0 commit comments

Comments
 (0)