增加数据持久化功能

This commit is contained in:
Alex Yang
2025-11-23 19:07:59 +08:00
parent 63a95f7463
commit f5911af449
8 changed files with 519 additions and 16 deletions

0
data/shield_stats.json Normal file
View File

42
data/stats.json Normal file
View File

@@ -0,0 +1,42 @@
{
"stats": {
"Queries": 33,
"Blocked": 24,
"Allowed": 19,
"Errors": 2,
"LastQuery": "2025-11-23T19:06:10.694259822+08:00"
},
"blockedDomains": {
"ad.qq.com": {
"Domain": "ad.qq.com",
"Count": 6,
"LastSeen": "2025-11-23T19:06:10.694532789+08:00"
},
"ad.qq.com.amazehome.xyz": {
"Domain": "ad.qq.com.amazehome.xyz",
"Count": 6,
"LastSeen": "2025-11-23T19:06:10.691565251+08:00"
}
},
"resolvedDomains": {
"ad.qq.com": {
"Domain": "ad.qq.com",
"Count": 10,
"LastSeen": "2025-11-23T19:05:54.429002187+08:00"
},
"ad.qq.com.amazehome.xyz": {
"Domain": "ad.qq.com.amazehome.xyz",
"Count": 8,
"LastSeen": "2025-11-23T19:05:54.356216418+08:00"
},
"apd-pcdnwxstat.teg.tencent-cloud.net": {
"Domain": "apd-pcdnwxstat.teg.tencent-cloud.net",
"Count": 1,
"LastSeen": "2025-11-23T19:05:56.842653777+08:00"
}
},
"hourlyStats": {
"2025-11-23-19": 12
},
"lastSaved": "2025-11-23T19:06:21.194988376+08:00"
}