feat: Add check-all command to monitoring with multi-service health check and update placeholder log timestamps

- Add "check-all" case to monitoring command handler calling checkAllServices
- Add checkAllServices function with table output for service name, status, endpoint, and message
- Add health status aggregation with success/warning messages for overall system health
- Add "check-all" command to monitoring help table
- Update placeholder log timestamps from 2024-01-15 to 2026-05-30 in monitoring
This commit is contained in:
nutcas3
2026-04-25 05:48:22 +03:00
parent e63cd95aef
commit 164dfdccda
2 changed files with 47 additions and 11 deletions
+4 -4
View File
@@ -152,10 +152,10 @@ func showServiceLogs(u *uiContext, args []string) error {
// Logs endpoint not yet implemented; show placeholder logs
u.muted("(Showing placeholder log entries - logs API not yet connected)")
logs := []string{
"2024-01-15 16:45:30 [INFO] Service started successfully",
"2024-01-15 16:45:35 [INFO] Database connection established",
"2024-01-15 16:45:40 [INFO] API server listening on port 8000",
"2024-01-15 16:45:45 [INFO] Health check passed",
"2026-05-30 16:45:30 [INFO] Service started successfully",
"2026-05-30 16:45:35 [INFO] Database connection established",
"2026-05-30 16:45:40 [INFO] API server listening on port 8000",
"2026-05-30 16:45:45 [INFO] Health check passed",
}
for _, line := range logs {
fmt.Println(u.colorizer.Colorize(line, statusStyle("OK")))