mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-30 08:32:15 +00:00
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:
@@ -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")))
|
||||
|
||||
Reference in New Issue
Block a user