diff options
| author | 韩丁康 <[email protected]> | 2024-01-17 18:34:23 +0800 |
|---|---|---|
| committer | 韩丁康 <[email protected]> | 2024-01-17 18:34:23 +0800 |
| commit | ca74b004a038ee33178098a13330c82b30bcc8a7 (patch) | |
| tree | e71a05534473601b6eed1ffd7bf126a928b40114 | |
| parent | 71289c97a0a8f7c24005422dc7b6fa8082370656 (diff) | |
统计接口设计规划
| -rw-r--r-- | apps/fx.py | 23 | ||||
| -rw-r--r-- | apps/v6dnsdistrib.py | 14 | ||||
| -rw-r--r-- | script/neo4jcommand.py | 39 |
3 files changed, 76 insertions, 0 deletions
diff --git a/apps/fx.py b/apps/fx.py new file mode 100644 index 0000000..6b6060d --- /dev/null +++ b/apps/fx.py @@ -0,0 +1,23 @@ +# 风险评估接口 + + +# 高风险节点信息 + + + + +# 高风险节点邻居(输入高风险节点ID) + + + +# IP关联信息 + + + +# AS关联 + + + + +# ISP关联 + diff --git a/apps/v6dnsdistrib.py b/apps/v6dnsdistrib.py new file mode 100644 index 0000000..0dd3523 --- /dev/null +++ b/apps/v6dnsdistrib.py @@ -0,0 +1,14 @@ +# v6 dns分布数据接口 + +# 国家分布(带地理信息) + + + +# AS分布数据 + + + +# ISP分布数据 + + + diff --git a/script/neo4jcommand.py b/script/neo4jcommand.py index c46e750..18c90b4 100644 --- a/script/neo4jcommand.py +++ b/script/neo4jcommand.py @@ -36,6 +36,43 @@ WHERE n.IPType contains "6" RETURN n.IP as ip, n.ISP as isp,n.CCODE as ccode,n.COU as cou,n.PROV as prov, score ORDER BY score DESC, ip ASC,isp ASC,ccode ASC,cou ASC,prov ASC limit 30''' + +# 节点邻居 +node_neighbors='''''' + + + +# IP关联数据 +IP_relate='''''' + + +# AS关联数据 +AS_relate='''''' + + +# ISP关联数据 +ISP_relate='''''' + + +# 所有节点信息 +all_node='''''' + + +# AS分布 +AS_dist='''''' + + +# ISP分布统计 +ISP_dist='''''' + +# 国家分布统计 +cou_dist='''''' + + + + + + # 双栈服务数量统计 dualcountcypher = ''' CALL gds.wcc.stream('myGraph') @@ -50,6 +87,7 @@ dualcountcypher = ''' where ip contains ":" return count(distinct componentId) ''' + # 双栈服务详细数据 dualdatacypher = ''' CALL gds.wcc.stream('myGraph') @@ -74,3 +112,4 @@ dualdatacypher = ''' # v6dns计数 v6count = ''' match (n:NodeResolver53) where n.IPType contains "6" return count(n)''' + |
