mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Add special client "other clients" summing all client activity that has not been included due to more clients being active than being returned (due to limited N)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -62,7 +62,13 @@ components:
|
||||
- Metrics
|
||||
operationId: "get_client_metrics"
|
||||
description: |
|
||||
Request data needed to generate the \"Client activity over last 24 hours\" graph
|
||||
Request data needed to generate the \"Client activity over last 24 hours\" graph.
|
||||
This endpoint returns the top N clients, sorted by total number of queries within 24 hours. If N is set to 0, all clients will be returned.
|
||||
The client name is only available if the client's IP address can be resolved to a hostname.
|
||||
|
||||
The last client returned is a special client that contains the total number of queries that were not sent by any of the other shown clients , i.e. queries that were sent by clients that are not in the top N. This client is always present, even if it has 0 queries and can be identified by the special name "other clients" (mind the space in the hostname) and the IP address "0.0.0.0".
|
||||
|
||||
Note that, due to privacy settings, the returned data may also be empty.
|
||||
parameters:
|
||||
- $ref: 'history.yaml#/components/parameters/clients/N'
|
||||
responses:
|
||||
@@ -164,11 +170,15 @@ components:
|
||||
- 12
|
||||
- 65
|
||||
- 67
|
||||
- 9
|
||||
- 5
|
||||
- timestamp: 1511820500.583821
|
||||
data:
|
||||
- 1
|
||||
- 35
|
||||
- 63
|
||||
- 20
|
||||
- 9
|
||||
clients:
|
||||
type: array
|
||||
description: Data array
|
||||
@@ -195,6 +205,12 @@ components:
|
||||
- name: null
|
||||
ip: "192.168.1.1"
|
||||
total: 254
|
||||
- name: "pi.hole"
|
||||
ip: "::"
|
||||
total: 29
|
||||
- name: "other clients"
|
||||
ip: "0.0.0.0"
|
||||
total: 14
|
||||
parameters:
|
||||
clients:
|
||||
N:
|
||||
|
||||
Reference in New Issue
Block a user