Activity
in package
Activity utilities
Table of Contents
Constants
- PURGE_REPEAT_SECONDS : mixed = 600
- PUSH_REPEAT_SECONDS : mixed = 120
Methods
- purgeCaliperEvents() : mixed
- Periodic cleanup of broken Caliper events
- pushCaliperEvents() : mixed
- Send the backlog of caliper events, but don't overrun
- sendCaliperEvent() : mixed
Constants
PURGE_REPEAT_SECONDS
public
mixed
PURGE_REPEAT_SECONDS
= 600
PUSH_REPEAT_SECONDS
public
mixed
PUSH_REPEAT_SECONDS
= 120
Methods
purgeCaliperEvents()
Periodic cleanup of broken Caliper events
public
static purgeCaliperEvents() : mixed
This is needed when an lti_key has Caliper turned on for a while and then later turns it off - the non-pushed events are stranded since they no longer have a good caliper_url / caliper_key. So once in a great while, we clean these up.
pushCaliperEvents()
Send the backlog of caliper events, but don't overrun
public
static pushCaliperEvents([mixed $seconds = 3 ][, mixed $max = 100 ][, mixed $debug = false ]) : mixed
Parameters
- $seconds : mixed = 3
- $max : mixed = 100
- $debug : mixed = false
sendCaliperEvent()
public
static sendCaliperEvent([mixed $delete = true ]) : mixed
Parameters
- $delete : mixed = true