Documentation
¶
Overview ¶
Package sentrycron reports github.com/robfig/cron/v3 jobs to Sentry Crons.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFunc ¶
func AddFunc(c *cron.Cron, spec, slug string, fn func() error, config *sentry.MonitorConfig) (cron.EntryID, error)
AddFunc adds fn to c with spec and reports each run as check-ins for the monitor slug. The monitor is created or updated with spec as its schedule when Sentry can represent it. config sets the other monitor fields and may be nil.
The monitor uses the cron's time zone. When that is time.Local, the IANA name comes from $TZ or /etc/localtime. If no IANA name can be found, only check-ins are sent and the monitor's schedule must be set in Sentry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.