[http] Add rate-limiting to channel refresh (#9509)

* add rate limiter for requests and catch transformation exception
* address review comment
* address review comments

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K
2020-12-28 18:18:06 +01:00
committed by GitHub
parent 06690bd37e
commit c556f49691
8 changed files with 222 additions and 55 deletions

View File

@@ -15,6 +15,7 @@ It can be extended with different channels.
| `refresh` | no | 30 | Time in seconds between two refresh calls for the channels of this thing. |
| `timeout` | no | 3000 | Timeout for HTTP requests in ms. |
| `bufferSize` | no | 2048 | The buffer size for the response data (in kB). |
| `delay` | no | 0 | Delay between two requests in ms (advanced parameter). |
| `username` | yes | - | Username for authentication (advanced parameter). |
| `password` | yes | - | Password for authentication (advanced parameter). |
| `authMode` | no | BASIC | Authentication mode, `BASIC` or `DIGEST` (advanced parameter). |
@@ -26,6 +27,8 @@ It can be extended with different channels.
*Note:* optional "no" means that you have to configure a value unless a default is provided and you are ok with that setting.
*Note:* If you rate-limit requests by using the `delay` parameter you have to make sure that the time between two refreshes is larger than the time needed for one refresh cycle.
## Channels
Each item type has its own channel-type.