コード例 #1
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
コード例 #2
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)
コード例 #3
0
ファイル: conftest.py プロジェクト: jimm-with-a-j/dt-api
def dt():
    with mock.patch.object(HttpClient, "make_request", new=local_make_request):
        dt = Dynatrace("mock_tenant", "mock_token")
        yield dt