Documentation ¶
Index ¶
- func AggregateCheckStatus1d(ctx context.Context) (error, int)
- func AggregateCheckStatus1h(ctx context.Context) (error, int)
- func DeleteOldCheckStatuses(ctx context.Context, retention int) (error, int)
- func DeleteOldCheckStatuses1d(ctx context.Context, retention int) (error, int)
- func DeleteOldCheckStatuses1h(ctx context.Context, retention int) (error, int)
- func RefreshCheckStatusSummary(ctx context.Context) error
- func RefreshCheckStatusSummaryAged(ctx context.Context) error
- type Job
- func (j *Job) AddToScheduler(cronRunner *cron.Cron) error
- func (j Job) GetEntry(cronRunner *cron.Cron) *cron.Entry
- func (j Job) RemoveFromScheduler(cronRunner *cron.Cron)
- func (j Job) Run()
- func (j *Job) RunOnStart() *Job
- func (j *Job) SetID(id string) *Job
- func (j *Job) SetTimeout(t time.Duration) *Job
- func (j *Job) Unschedule()
- type JobRuntime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateCheckStatus1d ¶ added in v1.0.245
func AggregateCheckStatus1h ¶ added in v1.0.245
func DeleteOldCheckStatuses ¶ added in v1.0.245
func DeleteOldCheckStatuses1d ¶ added in v1.0.245
func DeleteOldCheckStatuses1h ¶ added in v1.0.245
func RefreshCheckStatusSummary ¶ added in v1.0.245
func RefreshCheckStatusSummaryAged ¶ added in v1.0.245
Types ¶
type Job ¶ added in v1.0.202
type Job struct { context.Context Name string Schedule string Singleton bool Timeout time.Duration Fn func(ctx JobRuntime) error JobHistory bool RunNow bool ID string // contains filtered or unexported fields }
func (*Job) AddToScheduler ¶ added in v1.0.202
func (Job) RemoveFromScheduler ¶ added in v1.0.202
func (j Job) RemoveFromScheduler(cronRunner *cron.Cron)
func (*Job) RunOnStart ¶ added in v1.0.202
func (*Job) Unschedule ¶ added in v1.0.245
func (j *Job) Unschedule()
Click to show internal directories.
Click to hide internal directories.