Documentation
¶
Index ¶
- func DBNotificationThread(ctx context.Context, w Worker)
- func NewGoCronLogger() gocron.Logger
- func NewScheduler() gocron.Scheduler
- func RegisterAgent(pool db.PgxIface, provider string)
- func UpdateHeartbeat(pool db.PgxIface)
- type DebugMonitor
- func (d *DebugMonitor) IncrementJob(id uuid.UUID, name string, tags []string, status gocron.JobStatus)
- func (d *DebugMonitor) RecordJobTiming(startTime, endTime time.Time, id uuid.UUID, name string, tags []string)
- func (d *DebugMonitor) RecordJobTimingWithStatus(startTime, endTime time.Time, id uuid.UUID, name string, tags []string, ...)
- type PrometheusListener
- type PrometheusMonitor
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBNotificationThread ¶
func NewGoCronLogger ¶
func NewScheduler ¶
func RegisterAgent ¶
func UpdateHeartbeat ¶
UpdateHeartbeat updates the agent's heartbeat timestamp in the database. This should be called periodically to indicate the agent is still alive.
Types ¶
type DebugMonitor ¶
type DebugMonitor struct{}
func (*DebugMonitor) IncrementJob ¶
func (*DebugMonitor) RecordJobTiming ¶
type PrometheusListener ¶
func NewPrometheusListener ¶
func NewPrometheusListener() *PrometheusListener
func (*PrometheusListener) Run ¶
func (pl *PrometheusListener) Run()
type PrometheusMonitor ¶
type PrometheusMonitor struct {
// contains filtered or unexported fields
}
func NewPrometheusMonitor ¶
func NewPrometheusMonitor() *PrometheusMonitor
func (PrometheusMonitor) IncrementJob ¶
func (PrometheusMonitor) RecordJobTiming ¶
Click to show internal directories.
Click to hide internal directories.