2018-07-13 14:51:00 +02:00
|
|
|
#!/usr/bin/env python3
|
2018-03-29 22:37:28 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from bgpranking.monitor import Monitor
|
|
|
|
import logging
|
|
|
|
|
|
|
|
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
|
|
|
|
level=logging.INFO, datefmt='%I:%M:%S')
|
|
|
|
|
|
|
|
|
|
|
|
class MonitorManager():
|
|
|
|
|
|
|
|
def __init__(self, loglevel: int=logging.INFO):
|
|
|
|
self.monitor = Monitor()
|
|
|
|
|
|
|
|
def get_values(self):
|
2018-11-14 17:07:30 +01:00
|
|
|
return self.monitor.get_values()
|
2018-03-29 22:37:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
m = MonitorManager()
|
|
|
|
print(m.get_values())
|