Proca.ActionPage.Status (proca v3.4.1)
Server which tracks and monitors active pages.
Stored maps:
- last_seen_at: action page id -> last action inserted_at date time
- last_seen_location: action page id -> last action location (if provided in http referer)
The maps are loaded from DB on start and then are updated in-memory on action creation. Action Pages inactive for more then 1 year are ignored.
API:
- Proca.ActionPage.Status.get_last_at(id) - returns NativeDateTime of last activity or nil if recently not active
- Proca.ActionPage.Status.get_last_location(id) - returns last location or nil if not known
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Functions
Link to this function
activity(action_page_id)
Specs
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
get_last_at(id)
Link to this function
get_last_location(id)
Link to this function
start_link(opts)
Link to this function