DL6ER
|
a9e93ba1f8
|
Calculate percentage of blocked queries only of there is at least one blocked query to prevent division-by-zero issues (leading to None)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 19:04:31 +01:00 |
|
DL6ER
|
3c5c1d52b7
|
Transform log_debug() into a function-like macro to save some time when we are not in debugging mode (the function is not called in this case)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 09:55:51 +01:00 |
|
DL6ER
|
58fd9aaa36
|
Use table query_storage instead of view queries in all places (well, except one which will be covered at a later time)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-03 22:11:53 +01:00 |
|
DL6ER
|
f2d68f20d7
|
Also verify endpoint structure: Query endpoints from FTL and check if all properties mentioned in the docs are present (and of correct type) and that there are no extra properties we forgot to document. Furthermore, also verify that the provided examples are of correct type, too.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-03 21:51:13 +01:00 |
|
DL6ER
|
5019cc7ac7
|
Add /api/stats/database/summary documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-03 20:17:34 +01:00 |
|
DL6ER
|
9c19abb86d
|
Add /api/stats/query_types and /api/stats/database/query_types documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-03 20:06:52 +01:00 |
|
DL6ER
|
8588c5c62d
|
Add /api/stats/top_clients and /api/stats/database/top_clients documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-03 19:24:14 +01:00 |
|
DL6ER
|
0b3a5baa0b
|
Add /api/stats/top_domains and /api/stats/database/top_domains documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-03 19:11:02 +01:00 |
|
DL6ER
|
73c8783abc
|
Add /api/stats/recent_blocked documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-02 21:41:41 +01:00 |
|
DL6ER
|
ffacb1ad9e
|
Add /history/database/clients documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-02 21:37:17 +01:00 |
|
DL6ER
|
225187447f
|
Add /api/history/database documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-02 21:31:57 +01:00 |
|
DL6ER
|
c7803df604
|
Add /api/stats/upstreams and /api/stats/database/upstreams documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-02 21:19:11 +01:00 |
|
DL6ER
|
e776e0290a
|
Rename JSON macros
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2022-12-31 13:17:18 +01:00 |
|
DL6ER
|
973df98b13
|
Add /api/endpoints
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2022-12-31 10:00:10 +01:00 |
|
DL6ER
|
7b2770e7f6
|
Merge branch 'release/v5.9' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-07-13 17:04:16 +02:00 |
|
DL6ER
|
449ed354be
|
Use specific log routines in api/stats_database.c
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-05-27 12:11:23 +02:00 |
|
DL6ER
|
774bd0338a
|
Store in and restore from long-term database: reply type, DNSSEC type, reply delay (if applicable), client hostname (if applicable), TTL and regex ID (if applicable)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-05-25 15:32:38 +02:00 |
|
DL6ER
|
e94914be6e
|
Add upstreams, types, status, replies, and dnssec to /api/queries/suggestions
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-04-30 10:58:02 +02:00 |
|
DL6ER
|
45faefa786
|
Merge branch 'development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-04-26 14:09:50 +02:00 |
|
DL6ER
|
ea509ecca1
|
Changes for query log implementation
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-03-02 12:55:22 +01:00 |
|
DL6ER
|
339749da3f
|
Change timestamps from integer to double for (up to) nanosecond accuracy.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-02-03 12:37:59 +01:00 |
|
DL6ER
|
195dc3cb9a
|
Rename routes.{c,g} -> api.{c,h} and reduce locking where this is not needed to gain more speed for the API
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-02-02 12:21:36 +01:00 |
|
DL6ER
|
dfc9dac166
|
Add OpenAPI schema validation (npm test)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-02-01 12:03:20 +01:00 |
|
DL6ER
|
d1269c0a8a
|
Move /api/stats/history to /api/history/queries
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-01-30 16:13:31 +01:00 |
|
DL6ER
|
f67becc3e1
|
Introduce new ftl_conn struct that makes it easier to share stuff across processing subroutines in the same thread.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-01-21 16:24:16 +01:00 |
|
DL6ER
|
0abcc246a5
|
Merge branch 'development' into new/http-ph7
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-10-26 12:38:55 +01:00 |
|
DL6ER
|
49dc3bfda0
|
Simplify request variable extraction
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
67a0395390
|
Redirect PH7 errors into pihole-FTL.log (instead of showing in the browser output) and define gethostname() PHP function.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-02 08:52:55 +02:00 |
|
DL6ER
|
5bdf2b96cc
|
Fix forwarded queries counting logic quirk.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:17 +02:00 |
|
DL6ER
|
ef5cfe0a17
|
Add /api/stats/database/upstreams
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:16 +02:00 |
|
DL6ER
|
a7500f1d58
|
Add /api/stats/database/query_types
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:16 +02:00 |
|
DL6ER
|
cb8131d9ac
|
Add /api/stats/database/overTime/clients
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:16 +02:00 |
|
DL6ER
|
7c97cb6631
|
Add /api/stats/database/summary
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:16 +02:00 |
|
DL6ER
|
76b72bf1b7
|
Add /api/stats/database/top_clients by generalizing the top-domains into a top-items function that can process both.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:16 +02:00 |
|
DL6ER
|
429622d8e9
|
Add /api/stats/database/top_domains and /api/stats/database/top_blocked
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:16 +02:00 |
|
DL6ER
|
4516ee5186
|
Relock shared memory before returning an error message.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:16 +02:00 |
|
DL6ER
|
f2412873b8
|
Add /admin/api/stats/database/overTime/history - this allows users to select a different time interval on the dash board than only "last 24 hours".
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-27 00:37:16 +02:00 |
|