Esempio n. 1
0
    def __init__(self):
        self.connection = None
        self.subscription = None
        self.current_loop = None
        self.config_version = 0

        self.run = True

        self.config = ConfigStorage()
        self.db_log = LoggingStorage()
        self.tq_storage = None

        self.triggers = {}
        self.metrics_id_to_triggers = defaultdict(list)

        self._reload_triggers_config_last_run = 0
Esempio n. 2
0
    def __init__(self):
        self.connection = None
        self.subscription = None
        self.current_loop = None
        self.config_version = 0
        self.run = True

        self.storage = ConfigStorage()
        self.metrics_storage = MetricsStorage()
        self.db_log = LoggingStorage()

        self._lcache = {}

        self.metrics = {}
        self.actions_id_to_metrics = defaultdict(list)

        self._reload_metrics_config_last_run = 0
Esempio n. 3
0
    def __init__(self):
        self.current_loop = None
        self.connection = None

        self.run = True

        self.subscription = None
        self.sleep_task = None

        self.config_version = 0
        self.scheduler_tasks = dict()
        self.scheduler_tasks_history = defaultdict(dict)

        self._ttl_check_last_run = 0
        self._ttl_reload_config_last_run = 0

        self.config = ConfigStorage()
        self.tq_storage = None