feat(plugins/lines): add plugin_lines_delay to mitigate first query results (#1530)

This commit is contained in:
Simon Lecoq
2023-09-12 05:07:57 +02:00
committed by GitHub
parent 8b410f24de
commit 53f4cb6920
3 changed files with 26 additions and 5 deletions

View File

@@ -63,4 +63,18 @@ inputs:
Will display the last `n` years, relative to current year
type: number
default: 1
zero: disable
plugin_lines_delay:
description: |
Delay before performing a second query
When non-zero, will perform a second query after specified delay (in seconds).
The GitHub endpoint used may return inaccurate results on first query (these values seems to be cached on the fly),
after returning correct results upon performing another query.
Using this option may mitigate the occurrence of weird values.
type: number
default: 0
min: 0
zero: disable