def traffic_director_monitors(self): if self._traffic_director_monitors is None: self.log.debug('traffic_director_monitors: loading') self._traffic_director_monitors = \ {m.label: m for m in get_all_dsf_monitors()} return self._traffic_director_monitors
def _traffic_director_monitor(self, fqdn): if self._traffic_director_monitors is None: self._traffic_director_monitors = \ {m.label: m for m in get_all_dsf_monitors()} try: return self._traffic_director_monitors[fqdn] except KeyError: monitor = DSFMonitor(fqdn, protocol='HTTPS', response_count=2, probe_interval=60, retries=2, port=443, active='Y', host=fqdn[:-1], timeout=10, header='User-Agent: Dyn Monitor', path='/_dns') self._traffic_director_monitors[fqdn] = monitor return monitor