[agent-pipeline] pipe-20260328055039-5mki round-1
This commit is contained in:
@@ -280,17 +280,17 @@ public class DdlService extends BaseService {
|
||||
|
||||
Map<String, Long> byDdlType = new LinkedHashMap<>();
|
||||
for (Map<String, Object> row : byType) {
|
||||
byDdlType.put(String.valueOf(row.get("ddlType")), toLong(row.get("count")));
|
||||
byDdlType.put(String.valueOf(row.get("ddl_type")), toLong(row.get("count")));
|
||||
}
|
||||
Map<String, Long> byUserMap = new LinkedHashMap<>();
|
||||
for (Map<String, Object> row : byUser) {
|
||||
byUserMap.put(String.valueOf(row.get("userId")), toLong(row.get("count")));
|
||||
byUserMap.put(String.valueOf(row.get("user_id")), toLong(row.get("count")));
|
||||
}
|
||||
|
||||
return Map.of(
|
||||
"totalExecutions", toLong(totalStats != null ? totalStats.get("totalExecutions") : null),
|
||||
"successfulExecutions", toLong(totalStats != null ? totalStats.get("successfulExecutions") : null),
|
||||
"failedExecutions", toLong(totalStats != null ? totalStats.get("failedExecutions") : null),
|
||||
"totalExecutions", toLong(totalStats != null ? totalStats.get("total_executions") : null),
|
||||
"successfulExecutions", toLong(totalStats != null ? totalStats.get("successful_executions") : null),
|
||||
"failedExecutions", toLong(totalStats != null ? totalStats.get("failed_executions") : null),
|
||||
"byDDLType", byDdlType,
|
||||
"byUser", byUserMap,
|
||||
"recentFailures", recentFailures
|
||||
|
||||
Reference in New Issue
Block a user