Add custom unmarshalling for pihole queries stats

+ hide-graph and hide-top-domains options for DNS stats widget
This commit is contained in:
Svilen Markov
2024-12-28 14:17:48 +00:00
parent e524dd111e
commit ac7f3805d4
3 changed files with 54 additions and 14 deletions

View File

@@ -1358,6 +1358,8 @@ Preview:
| username | string | when service is `adguard` | |
| password | string | when service is `adguard` | |
| token | string | when service is `pihole` | |
| hide-graph | bool | no | false |
| hide-top-domains | bool | no | false |
| hour-format | string | no | 12h |
##### `service`
@@ -1378,6 +1380,12 @@ Only required when using AdGuard Home. The password used to log into the admin d
##### `token`
Only required when using Pi-hole. The API token which can be found in `Settings -> API -> Show API token`. Can be specified from an environment variable using the syntax `${VARIABLE_NAME}`.
##### `hide-graph`
Whether to hide the graph showing the number of queries over time.
##### `hide-top-domains`
Whether to hide the list of top blocked domains.
##### `hour-format`
Whether to display the relative time in the graph in `12h` or `24h` format.