mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 12:24:47 +00:00
Added top upstreams and average processing time
This commit is contained in:
parent
28229311c0
commit
07bd3dcb9a
15 changed files with 441 additions and 188 deletions
|
@ -9,6 +9,8 @@ class DnsStatistics {
|
|||
final List<Map<String, int>> topQueriedDomains;
|
||||
final List<Map<String, int>> topClients;
|
||||
final List<Map<String, int>> topBlockedDomains;
|
||||
final List<Map<String, int>>? topUpstreamResponses;
|
||||
final List<Map<String, double>>? topUpstreamsAvgTime;
|
||||
final List<int> dnsQueries;
|
||||
final List<int> blockedFiltering;
|
||||
final List<int> replacedSafebrowsing;
|
||||
|
@ -25,6 +27,8 @@ class DnsStatistics {
|
|||
required this.topQueriedDomains,
|
||||
required this.topClients,
|
||||
required this.topBlockedDomains,
|
||||
required this.topUpstreamResponses,
|
||||
required this.topUpstreamsAvgTime,
|
||||
required this.dnsQueries,
|
||||
required this.blockedFiltering,
|
||||
required this.replacedSafebrowsing,
|
||||
|
@ -42,6 +46,8 @@ class DnsStatistics {
|
|||
topQueriedDomains: List<Map<String, int>>.from(json["top_queried_domains"].map((x) => Map.from(x).map((k, v) => MapEntry<String, int>(k, v)))),
|
||||
topClients: List<Map<String, int>>.from(json["top_clients"].map((x) => Map.from(x).map((k, v) => MapEntry<String, int>(k, v)))),
|
||||
topBlockedDomains: List<Map<String, int>>.from(json["top_blocked_domains"].map((x) => Map.from(x).map((k, v) => MapEntry<String, int>(k, v)))),
|
||||
topUpstreamResponses: json["top_upstreams_responses"] != null ? List<Map<String, int>>.from(json["top_upstreams_responses"].map((x) => Map.from(x).map((k, v) => MapEntry<String, int>(k, v)))) : null,
|
||||
topUpstreamsAvgTime: json["top_upstreams_avg_time"] != null ? List<Map<String, double>>.from(json["top_upstreams_avg_time"].map((x) => Map.from(x).map((k, v) => MapEntry<String, double>(k, v)))) : null,
|
||||
dnsQueries: List<int>.from(json["dns_queries"].map((x) => x)),
|
||||
blockedFiltering: List<int>.from(json["blocked_filtering"].map((x) => x)),
|
||||
replacedSafebrowsing: List<int>.from(json["replaced_safebrowsing"].map((x) => x)),
|
||||
|
@ -59,6 +65,8 @@ class DnsStatistics {
|
|||
"top_queried_domains": List<dynamic>.from(topQueriedDomains.map((x) => Map.from(x).map((k, v) => MapEntry<String, dynamic>(k, v)))),
|
||||
"top_clients": List<dynamic>.from(topClients.map((x) => Map.from(x).map((k, v) => MapEntry<String, dynamic>(k, v)))),
|
||||
"top_blocked_domains": List<dynamic>.from(topBlockedDomains.map((x) => Map.from(x).map((k, v) => MapEntry<String, dynamic>(k, v)))),
|
||||
"top_upstreams_responses": topUpstreamResponses != null ? List<dynamic>.from(topUpstreamResponses!.map((x) => Map.from(x).map((k, v) => MapEntry<String, dynamic>(k, v)))) : null,
|
||||
"top_upstreams_avg_time": topUpstreamsAvgTime != null ? List<dynamic>.from(topUpstreamsAvgTime!.map((x) => Map.from(x).map((k, v) => MapEntry<String, dynamic>(k, v)))) : null,
|
||||
"dns_queries": List<dynamic>.from(dnsQueries.map((x) => x)),
|
||||
"blocked_filtering": List<dynamic>.from(blockedFiltering.map((x) => x)),
|
||||
"replaced_safebrowsing": List<dynamic>.from(replacedSafebrowsing.map((x) => x)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue