diff options
| author | Michael Peter Christen <mc@yacy.net> | 2019-11-05 11:29:07 +0100 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2019-11-05 11:29:07 +0100 |
| commit | 2c0742fc439ade262a60deb2504abb9a59f1e906 (patch) | |
| tree | 1ec0bb2ee9e563ef17ae593b6a443ea41201836a /htroot/Network.json | |
| parent | cfa27d2fd5f3b97ab55b4185fab91e8572e20b76 (diff) | |
added json version of peer list
Diffstat (limited to 'htroot/Network.json')
| -rw-r--r-- | htroot/Network.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/htroot/Network.json b/htroot/Network.json new file mode 100644 index 000000000..7babe55f6 --- /dev/null +++ b/htroot/Network.json @@ -0,0 +1,38 @@ +{"peers":[#(table)#:: +#{list}# + { + "hash": "#[hash]#", + "fullname": "#[fullname]#", + "version>": "#[version]#", + "ppm": #[ppm]#, + "qph": #[qph]#, + "uptime": "#[uptime]#", + "links": "#[LCount]#", + "words": "#[ICount]#", + "rurls": "#[RCount]#", + "lastseen": #[lastSeen]#, + "sendWords": "#[sI]#", + "receivedWords": "#[rI]#", + "sendURLs": "#[sU]#", + "receivedURLs": "#[rU]#", + "type": "#(type)#junior::senior::principal#(/type)#", + "direct": "#(type_direct)#direct::passive#(/type_direct)#", + "acceptcrawl": #[acceptcrawl]#, + "dhtreceive": #[dhtreceive]#, + "nodestate": #(nodestate)#false::true#(/nodestate)#, + "location": "#[location]#", + "seedurl": "#[type_url]#", + "age": #[age]#, + "seeds": #[seeds]#, + "connects": #[connects]#, + #{ips}#"ip": "#(c)##[ip]#::#[ip]##(/c)#",#{/ips}# + + #{ips}#"address": "#(c)##(ipv6)#::[#(/ipv6)##[ip]##(ipv6)#::]#(/ipv6)#:#[port]#::#(/c)#",#{/ips}# + + "port": #[port]#, #(c)#::"useragent": "#[userAgent]#",#(/c)# + "last": "entry" + }, +#{/list}# +{}] +:: +#(/table)#} |
