summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhandingkang <[email protected]>2024-01-17 18:52:24 +0800
committerhandingkang <[email protected]>2024-01-17 18:52:24 +0800
commite0eabcd767df2c408527c382dad3d00fc17a9c4e (patch)
tree87fc38428fedaf0ef6e57649eebbc4576f7ca8c5
parentca74b004a038ee33178098a13330c82b30bcc8a7 (diff)
同步修改
-rw-r--r--apps/stats.py13
-rw-r--r--script/neo4jcommand.py5
2 files changed, 18 insertions, 0 deletions
diff --git a/apps/stats.py b/apps/stats.py
index 729291d..6ebe3b9 100644
--- a/apps/stats.py
+++ b/apps/stats.py
@@ -2,3 +2,16 @@
from apiflask import APIBlueprint
bp = APIBlueprint("stats", __name__, url_prefix="/stats")
+
+# 返回top10 运营商
+
+
+# 返回高风险节点信息
+
+
+# 返回ip关联
+
+# 返回AS关联
+
+
+# 返回ISP间关联
diff --git a/script/neo4jcommand.py b/script/neo4jcommand.py
index 18c90b4..0aa8cdd 100644
--- a/script/neo4jcommand.py
+++ b/script/neo4jcommand.py
@@ -113,3 +113,8 @@ dualdatacypher = '''
v6count = '''
match (n:NodeResolver53) where n.IPType contains "6" return count(n)'''
+delQuery = '''
+CALL apoc.periodic.commit("MATCH (n:NodeResolverQuery) WITH n LIMIT $limit DETACH DELETE n RETURN count(*)",{limit: 10000})
+YIELD updates, executions, runtime, batches
+RETURN updates, executions, runtime, batches;'''
+