nais / api

MIT License
1 stars 0 forks source link

Utilization: When fetching specific data for team, group rows usable for #25

Closed thokra-nav closed 2 months ago

thokra-nav commented 3 months ago

cost

When calculating trends and utilization, we want to include the overuse. This PR switches to return up to two rows when requesting data which previusly discarded in the case where usage was higher than request.

The code is not pretty, but seems to provide better values in the case mentioned in #24 image

Fixes #24