neptune/core/lib/manage/threshold.py

18 lines
405 B
Python

from core.lib.threshold import threshold_request
def get_irc_stats():
url = "irc/stats"
payload = {}
stats = threshold_request(url, payload)
if not stats:
return {}
print("tsats", stats)
return stats
def get_irc_networks():
url = "irc/networks"
payload = {}
networks = threshold_request(url, payload)
if not networks:
return {}
return networks