We should add the following fields to each device in by_location (and similar location endpoints):
first_seen: Timestamp, for when we first saw this device
active_mins: Integer, how many minutes this device has been present for (i.e. active) - if it's seen in two consecutive scans, we assume it was active for the entire period in between as well
We should add the following fields to each device in
by_location
(and similar location endpoints):first_seen
: Timestamp, for when we first saw this deviceactive_mins
: Integer, how many minutes this device has been present for (i.e. active) - if it's seen in two consecutive scans, we assume it was active for the entire period in between as well