MCPcopy
hub / github.com/go-co-op/gocron / Monitor

Interface Monitor

monitor.go:21–28  ·  view source on GitHub ↗

Monitor represents the interface to collect jobs metrics.

Source from the content-addressed store, hash-verified

19
20// Monitor represents the interface to collect jobs metrics.
21type Monitor interface {
22 // IncrementJob will provide details about the job and expects the underlying implementation
23 // to handle instantiating and incrementing a value
24 IncrementJob(id uuid.UUID, name string, tags []string, status JobStatus)
25 // RecordJobTiming will provide details about the job and the timing and expects the underlying implementation
26 // to handle instantiating and recording the value
27 RecordJobTiming(startTime, endTime time.Time, id uuid.UUID, name string, tags []string)
28}
29
30// MonitorStatus extends RecordJobTiming with the job status.
31type MonitorStatus interface {

Callers 2

incrementJobCounterMethod · 0.65
recordJobTimingMethod · 0.65

Implementers 1

testMonitorscheduler_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…