rdmarsh / elm

A cli interface for extracting LogicMonitor data via the api
GNU General Public License v3.0
2 stars 1 forks source link

Add rate limiting #1

Closed rdmarsh closed 2 years ago

rdmarsh commented 2 years ago

Rate limiting is handle in the LM api and we should support that

https://www.logicmonitor.com/support/rest-api-developers-guide/overview/rate-limiting

rdmarsh commented 2 years ago

Added debugging messages in 8086e98

rdmarsh commented 2 years ago

Marking as closed as we don't have multiple queries per api connection, so only ever shows 1 used:

  DEBUG 2022-02-24 18:16:13,532 engine.py:111 engine response.headers.X-Rate-Limit-Limit: 500
  DEBUG 2022-02-24 18:16:13,532 engine.py:112 engine response.headers.X-Rate-Limit-Remaining: 499
  DEBUG 2022-02-24 18:16:13,532 engine.py:113 engine response.headers.X-Rate-Limit-Window: 60