ImagingDataCommons / ThrottleProxy

(CORE REPO)
Apache License 2.0
2 stars 0 forks source link

endpoint to query current status #3

Closed pieper closed 4 years ago

pieper commented 4 years ago

OHIF is adding the ability to handle http errors like those generated when an IP hits the threshold by this proxy (https://github.com/OHIF/Viewers/issues/1598).

But we want to be able to give users some advance warning, like a notification that they are close to the limit or maybe an area that turns yellow then red as you get close to the limit.

Can we have an api endpoint to query the current usage compared to the cap?

wlongabaugh commented 4 years ago

OK, just saw this issue. Sounds like a good idea. Should be able to do this.

wlongabaugh commented 4 years ago

Feature checked in.