Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCronJob ¶
AddCronJob returns a function that could be passed to the cron library.
func StatWorker ¶
func StatWorker(rdbStore rdb.Store, tsStore tsdb.Store, beginTime time.Time, statRange models.StatRange) error
StatWorker collects heartbeats from tsdb and writes stat to rdb collects heartbeats from `startTime` with a given range length
func ToDuration ¶
ToDuration converts semantics of statRange into time.Duration. FIXME: it is an approximation. To get real duration, we have to decide whether use calendar date or duration date and have to have another argument of beginTime.
Types ¶
type WorkunitWithEndtime ¶
WorkunitWithEndtime is a temporal struct for aggregation
Click to show internal directories.
Click to hide internal directories.