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
20 lines
560 B
Go
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"`
|
|
}
|