neptune/core/lib/manage/threshold.py

20 lines
382 B
Python
Raw Normal View History

from core.lib.threshold import threshold_request
2022-07-25 18:08:28 +00:00
def get_irc_stats():
url = "irc/stats"
payload = {}
stats = threshold_request(url, payload)
if not stats:
return {}
return stats
2022-07-25 18:08:28 +00:00
def get_irc_networks():
url = "irc/networks"
payload = {}
networks = threshold_request(url, payload)
if not networks:
return {}
2022-07-25 18:08:28 +00:00
return networks