StatEngine / stat-engine

A Real-Time Open Source Data Analytics and Visualization Platform for Public Safety
https://statengine.io
GNU General Public License v3.0
8 stars 5 forks source link

Return realtime Unit Hour Utilization in First Arriving API #495

Open larskendall opened 4 years ago

larskendall commented 4 years ago

Currently, UHU is based on the previous shift. However, as the API is meant to be a realtime dashboard, it should return a UHU value that is up to the hour. For shift intervals, this would be the total UHU from shift start to the current hour. For week intervals, this would be the total UHU from the start of the week (ie. moment.startOf('week')) up to the current hour.