Commit Graph

6 Commits

Author SHA1 Message Date
yusing
19d6f3757b fix(monitor): remove unnecssary return type 2026-01-09 22:35:59 +08:00
yusing
1ca5fc5ac6 fix(health): remove unnecessary containerId parameter 2026-01-09 22:35:58 +08:00
yusing
86b655be3c docs: add per package README for implementation details (AI generated with human review) 2026-01-09 22:35:27 +08:00
yusing
a5c74d6773 feat(docs): add health check and monitor packages README; mermaid styling fix 2026-01-09 22:34:33 +08:00
yusing
dbd210b665 fix(health): correct context handling, move NewMonitor, and improve docker health check errors
- Correct BaseContext nil check in Context() method
- Move NewMonitor from monitor.go to new.go
- Export ErrDockerHealthCheckFailedTooManyTimes and add ErrDockerHealthCheckNotAvailable
- Return ErrDockerHealthCheckNotAvailable when container has no health check configured
- Only log first docker health check failure and skip logging for ErrDockerHealthCheckNotAvailable
- Use mon.Context() instead of mon.task.Context() to avoid nil panic
2026-01-09 22:34:15 +08:00
yusing
02e6e6f86c refactor: move internal/watcher/health to internal/health 2026-01-09 22:34:15 +08:00