fetch_ml/internal/api/monitoring_config.go
Jeremie Fraeys 420de879ff
feat(api): integrate scheduler protocol and WebSocket enhancements
Update API layer for scheduler integration:
- WebSocket handlers with scheduler protocol support
- Jobs WebSocket endpoint with priority queue integration
- Validation middleware for scheduler messages
- Server configuration with security hardening
- Protocol definitions for worker-scheduler communication
- Dataset handlers with tenant isolation checks
- Response helpers with audit context
- OpenAPI spec updates for new endpoints
2026-02-26 12:05:57 -05:00

20 lines
560 B
Go

package api
// MonitoringConfig holds monitoring-related configuration
type MonitoringConfig struct {
HealthChecks HealthChecksConfig `yaml:"health_checks"`
Prometheus PrometheusConfig `yaml:"prometheus"`
}
// PrometheusConfig holds Prometheus metrics configuration
type PrometheusConfig struct {
Path string `yaml:"path"`
Port int `yaml:"port"`
Enabled bool `yaml:"enabled"`
}
// HealthChecksConfig holds health check configuration
type HealthChecksConfig struct {
Interval string `yaml:"interval"`
Enabled bool `yaml:"enabled"`
}