def initialize(self, **kwargs): # The Dynatrace API client self.dt_client = Dynatrace(self.config.get("api_url"), self.config.get("api_token"), log=log, proxies=self.build_proxy_url()) self.executions = 0
def initialize(self, **kwargs): # The Dynatrace API client self.dt_client = Dynatrace(self.config.get("api_url"), self.config.get("api_token"), log=log, proxies=self.build_proxy_url()) self.executions = 0 self.failures: Dict[str, int] = defaultdict(int)
def dt(): with mock.patch.object(HttpClient, "make_request", new=local_make_request): dt = Dynatrace("mock_tenant", "mock_token") yield dt