What is @internal/services/status.go and what does it do?
Service Overview
@internal/services/status.go is a core internal service that manages and monitors the health and status of all services within the AppGram platform. It provides real-time status information, uptime tracking, and incident reporting capabilities.
Key Functions
- Health Monitoring: Continuously checks service availability
- Status Reporting: Provides real-time status of all services
- Uptime Tracking: Calculates and maintains service uptime percentages
- Incident Detection: Automatically detects and reports service disruptions
- Performance Metrics: Tracks response times and service performance
API Endpoints
The service exposes several endpoints:
GET /api/v1/status-pages/public/{id}/status/overview- Service overviewGET /api/v1/services/{service_id}/health- Individual service healthGET /api/v1/services/uptime- Uptime statistics