Documentation
¶
Index ¶
- func RegisterDebugEndpoints(e *echo.Echo, config *engine.ConfigWorkspace, appJson string, ...)
- func RegisterMonitoringEndpoints(e *echo.Echo, config *engine.ConfigWorkspace)
- func UpdateCacheMetrics(hit bool)
- func UpdateDatabaseMetrics(duration time.Duration)
- func UpdateProcessMetrics(created bool)
- func UpdateWorkflowMetrics(success bool, duration time.Duration)
- type ComponentHealth
- type HealthStatus
- type MetricsCollector
- type URLCacheEntry
- type URLCacheInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDebugEndpoints ¶
func RegisterDebugEndpoints(e *echo.Echo, config *engine.ConfigWorkspace, appJson string, urlCacheInterface URLCacheInterface)
RegisterDebugEndpoints registers all debug endpoints
func RegisterMonitoringEndpoints ¶
func RegisterMonitoringEndpoints(e *echo.Echo, config *engine.ConfigWorkspace)
RegisterMonitoringEndpoints registers health and metrics endpoints
func UpdateCacheMetrics ¶
func UpdateCacheMetrics(hit bool)
func UpdateDatabaseMetrics ¶
func UpdateProcessMetrics ¶
func UpdateProcessMetrics(created bool)
func UpdateWorkflowMetrics ¶
UpdateMetrics provides methods to update metrics from other parts of the application
Types ¶
type ComponentHealth ¶
type HealthStatus ¶
type HealthStatus struct {
Status string `json:"status"`
Timestamp int64 `json:"timestamp"`
Uptime string `json:"uptime"`
Version string `json:"version"`
Components map[string]ComponentHealth `json:"components"`
Details map[string]interface{} `json:"details,omitempty"`
}
Health check response structure
type MetricsCollector ¶
type MetricsCollector struct {
// contains filtered or unexported fields
}
Metrics collector for Prometheus
type URLCacheEntry ¶
URLCacheEntry represents a cached URL entry
type URLCacheInterface ¶
type URLCacheInterface interface {
GetSize() int
GetEntries() []URLCacheEntry
Clear()
}
URLCacheInterface defines the interface for URL cache operations
Click to show internal directories.
Click to hide internal directories.