moira-python-client 4.3.1__tar.gz → 4.3.2__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.
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/CHANGELOG.md +4 -0
- {moira_python_client-4.3.1/moira_python_client.egg-info → moira_python_client-4.3.2}/PKG-INFO +10 -2
- moira_python_client-4.3.2/VERSION.txt +1 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/client.py +26 -4
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/_managers.py +1 -1
- {moira_python_client-4.3.1 → moira_python_client-4.3.2/moira_python_client.egg-info}/PKG-INFO +10 -2
- moira_python_client-4.3.1/VERSION.txt +0 -1
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/LICENSE +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/MANIFEST.in +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/README.md +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/__init__.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/__init__.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/base.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/config.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/contact.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/event.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/health.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/notification.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/pattern.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/subscription.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/tag.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/__init__.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/_models.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/contact/__init__.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/contact/_managers.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/settings/__init__.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/settings/_managers.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/settings/_models.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/subscription/__init__.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/subscription/_managers.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/user/__init__.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/user/_managers.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/user/_models.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/trigger.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/user.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/moira.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_python_client.egg-info/SOURCES.txt +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_python_client.egg-info/dependency_links.txt +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_python_client.egg-info/requires.txt +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_python_client.egg-info/top_level.txt +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/requirements.txt +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/setup.cfg +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/setup.py +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/test-requirements.txt +0 -0
- {moira_python_client-4.3.1 → moira_python_client-4.3.2}/tests/test_client.py +0 -0
{moira_python_client-4.3.1/moira_python_client.egg-info → moira_python_client-4.3.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: moira-python-client
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.2
|
|
4
4
|
Summary: Client for Moira - Alerting system based on Graphite data
|
|
5
5
|
Home-page: https://github.com/moira-alert/python-moira-client
|
|
6
6
|
Author: Alexander Lukyanchenko
|
|
@@ -20,6 +20,14 @@ Classifier: Topic :: System :: Monitoring
|
|
|
20
20
|
Classifier: License :: OSI Approved :: MIT License
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: requests>=2.4.3
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: keywords
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
Dynamic: summary
|
|
23
31
|
|
|
24
32
|
|
|
25
33
|
Moira is a real-time alerting tool, based on Graphite data.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.3.2
|
|
@@ -68,7 +68,7 @@ class Client:
|
|
|
68
68
|
:param kwargs: additional parameters for request
|
|
69
69
|
:return: dict response
|
|
70
70
|
|
|
71
|
-
:raises:
|
|
71
|
+
:raises: MoiraApiError
|
|
72
72
|
:raises: InvalidJSONError
|
|
73
73
|
"""
|
|
74
74
|
r = requests.get(self._path_join(path), headers=self.headers, auth=self.auth, **kwargs)
|
|
@@ -90,7 +90,7 @@ class Client:
|
|
|
90
90
|
:param kwargs: additional parameters for request
|
|
91
91
|
:return: dict response
|
|
92
92
|
|
|
93
|
-
:raises:
|
|
93
|
+
:raises: MoiraApiError
|
|
94
94
|
:raises: InvalidJSONError
|
|
95
95
|
"""
|
|
96
96
|
r = requests.delete(self._path_join(path), headers=self.headers, auth=self.auth, **kwargs)
|
|
@@ -112,7 +112,7 @@ class Client:
|
|
|
112
112
|
:param kwargs: additional parameters for request
|
|
113
113
|
:return: dict response
|
|
114
114
|
|
|
115
|
-
:raises:
|
|
115
|
+
:raises: MoiraApiError
|
|
116
116
|
:raises: InvalidJSONError
|
|
117
117
|
"""
|
|
118
118
|
r = requests.put(self._path_join(path), headers=self.headers, auth=self.auth, **kwargs)
|
|
@@ -127,6 +127,28 @@ class Client:
|
|
|
127
127
|
except ValueError:
|
|
128
128
|
raise InvalidJSONError(r.content)
|
|
129
129
|
|
|
130
|
+
def patch(self, path='', **kwargs):
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
:param path: str api path
|
|
134
|
+
:param kwargs: additional parameters for request
|
|
135
|
+
:return: dict response
|
|
136
|
+
|
|
137
|
+
:raises: MoiraApiError
|
|
138
|
+
:raises: InvalidJSONError
|
|
139
|
+
"""
|
|
140
|
+
r = requests.patch(self._path_join(path), headers=self.headers, auth=self.auth, **kwargs)
|
|
141
|
+
|
|
142
|
+
try:
|
|
143
|
+
r.raise_for_status()
|
|
144
|
+
except requests.exceptions.HTTPError as err:
|
|
145
|
+
raise MoiraApiError(r.content)
|
|
146
|
+
|
|
147
|
+
try:
|
|
148
|
+
return r.json()
|
|
149
|
+
except ValueError:
|
|
150
|
+
raise InvalidJSONError(r.content)
|
|
151
|
+
|
|
130
152
|
def post(self, path='', **kwargs):
|
|
131
153
|
"""
|
|
132
154
|
|
|
@@ -134,7 +156,7 @@ class Client:
|
|
|
134
156
|
:param kwargs: additional parameters for request
|
|
135
157
|
:return: dict response
|
|
136
158
|
|
|
137
|
-
:raises:
|
|
159
|
+
:raises: MoiraApiError
|
|
138
160
|
:raises: InvalidJSONError
|
|
139
161
|
"""
|
|
140
162
|
r = requests.post(self._path_join(path), headers=self.headers, auth=self.auth, **kwargs)
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2/moira_python_client.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: moira-python-client
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.2
|
|
4
4
|
Summary: Client for Moira - Alerting system based on Graphite data
|
|
5
5
|
Home-page: https://github.com/moira-alert/python-moira-client
|
|
6
6
|
Author: Alexander Lukyanchenko
|
|
@@ -20,6 +20,14 @@ Classifier: Topic :: System :: Monitoring
|
|
|
20
20
|
Classifier: License :: OSI Approved :: MIT License
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: requests>=2.4.3
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: keywords
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
Dynamic: summary
|
|
23
31
|
|
|
24
32
|
|
|
25
33
|
Moira is a real-time alerting tool, based on Graphite data.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4.3.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/contact/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/settings/_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/user/__init__.py
RENAMED
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/user/_managers.py
RENAMED
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_client/models/team/user/_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_python_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_python_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{moira_python_client-4.3.1 → moira_python_client-4.3.2}/moira_python_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|