Monitor represents the interface to collect jobs metrics.
| 19 | |
| 20 | // Monitor represents the interface to collect jobs metrics. |
| 21 | type 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. |
| 31 | type MonitorStatus interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…