brynq-sdk-newrelic 1.0.2__tar.gz → 1.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq_sdk_newrelic
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Newrelic wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -12,6 +12,7 @@ class NewRelicAPI(BrynQ):
12
12
  super().__init__()
13
13
  self.headers = self._set_credentials(label)
14
14
  self.url = "https://api.newrelic.com/graphql"
15
+ self.timeout = 3600
15
16
 
16
17
  def _set_credentials(self, label):
17
18
  """
@@ -26,7 +27,7 @@ class NewRelicAPI(BrynQ):
26
27
  return headers
27
28
 
28
29
  def execute_query(self, query: dict):
29
- response = requests.post(self.url, headers=self.headers, json=query)
30
+ response = requests.post(self.url, headers=self.headers, json=query, timeout=self.timeout)
30
31
  if response.status_code == 200:
31
32
  return response.json()
32
33
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq-sdk-newrelic
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Newrelic wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
2
2
 
3
3
  setup(
4
4
  name='brynq_sdk_newrelic',
5
- version='1.0.2',
5
+ version='1.0.3',
6
6
  description='Newrelic wrapper from BrynQ',
7
7
  long_description='Newrelic wrapper from BrynQ',
8
8
  author='BrynQ',