moira-python-client 5.0.0__tar.gz → 5.1.1__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-5.0.0 → moira_python_client-5.1.1}/CHANGELOG.md +8 -0
- {moira_python_client-5.0.0/moira_python_client.egg-info → moira_python_client-5.1.1}/PKG-INFO +3 -2
- moira_python_client-5.1.1/VERSION.txt +1 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/contact.py +1 -0
- moira_python_client-5.1.1/moira_client/models/system_tag.py +25 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/contact/_managers.py +1 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/moira.py +13 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1/moira_python_client.egg-info}/PKG-INFO +3 -2
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_python_client.egg-info/SOURCES.txt +1 -0
- moira_python_client-5.0.0/VERSION.txt +0 -1
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/LICENSE +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/MANIFEST.in +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/README.md +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/__init__.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/client.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/__init__.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/base.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/config.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/event.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/health.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/notification.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/pattern.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/subscription.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/tag.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/__init__.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/_managers.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/_models.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/contact/__init__.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/settings/__init__.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/settings/_managers.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/settings/_models.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/subscription/__init__.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/subscription/_managers.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/user/__init__.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/user/_managers.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/user/_models.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/trigger.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/user.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_python_client.egg-info/dependency_links.txt +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_python_client.egg-info/requires.txt +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_python_client.egg-info/top_level.txt +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/requirements.txt +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/setup.cfg +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/setup.py +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/test-requirements.txt +0 -0
- {moira_python_client-5.0.0 → moira_python_client-5.1.1}/tests/test_client.py +0 -0
{moira_python_client-5.0.0/moira_python_client.egg-info → moira_python_client-5.1.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: moira-python-client
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.1.1
|
|
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
|
|
@@ -26,6 +26,7 @@ Dynamic: classifier
|
|
|
26
26
|
Dynamic: description
|
|
27
27
|
Dynamic: home-page
|
|
28
28
|
Dynamic: keywords
|
|
29
|
+
Dynamic: license-file
|
|
29
30
|
Dynamic: requires-dist
|
|
30
31
|
Dynamic: summary
|
|
31
32
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5.1.1
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from moira_client.client import ResponseStructureError
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SystemTagManager:
|
|
5
|
+
def __init__(self, client) -> None:
|
|
6
|
+
self._client = client
|
|
7
|
+
|
|
8
|
+
def fetch_all(self):
|
|
9
|
+
"""
|
|
10
|
+
Returns all existing system tags
|
|
11
|
+
|
|
12
|
+
:return: list of str
|
|
13
|
+
|
|
14
|
+
:raises: ResponseStructureError
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
result = self._client.get(self._full_path())
|
|
18
|
+
if 'list' not in result:
|
|
19
|
+
raise ResponseStructureError("list doesn't exist in response", result)
|
|
20
|
+
|
|
21
|
+
return result['list']
|
|
22
|
+
|
|
23
|
+
def _full_path(self) -> str:
|
|
24
|
+
return 'system-tag'
|
|
25
|
+
|
|
@@ -5,6 +5,7 @@ from .models.notification import NotificationManager
|
|
|
5
5
|
from .models.pattern import PatternManager
|
|
6
6
|
from .models.subscription import SubscriptionManager
|
|
7
7
|
from .models.tag import TagManager
|
|
8
|
+
from .models.system_tag import SystemTagManager
|
|
8
9
|
from .models.trigger import TriggerManager
|
|
9
10
|
from .models.health import HealthManager
|
|
10
11
|
from .models.config import ConfigManager
|
|
@@ -27,6 +28,7 @@ class Moira:
|
|
|
27
28
|
|
|
28
29
|
self._trigger = None
|
|
29
30
|
self._tag = None
|
|
31
|
+
self._system_tag = None
|
|
30
32
|
self._event = None
|
|
31
33
|
self._notification = None
|
|
32
34
|
self._contact = None
|
|
@@ -48,6 +50,17 @@ class Moira:
|
|
|
48
50
|
self._trigger = TriggerManager(self._client)
|
|
49
51
|
return self._trigger
|
|
50
52
|
|
|
53
|
+
@property
|
|
54
|
+
def system_tag(self):
|
|
55
|
+
"""
|
|
56
|
+
Get system tag manager
|
|
57
|
+
|
|
58
|
+
:return: SystemTagManager
|
|
59
|
+
"""
|
|
60
|
+
if not self._system_tag:
|
|
61
|
+
self._system_tag = SystemTagManager(self._client)
|
|
62
|
+
return self._system_tag
|
|
63
|
+
|
|
51
64
|
@property
|
|
52
65
|
def tag(self):
|
|
53
66
|
"""
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1/moira_python_client.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: moira-python-client
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.1.1
|
|
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
|
|
@@ -26,6 +26,7 @@ Dynamic: classifier
|
|
|
26
26
|
Dynamic: description
|
|
27
27
|
Dynamic: home-page
|
|
28
28
|
Dynamic: keywords
|
|
29
|
+
Dynamic: license-file
|
|
29
30
|
Dynamic: requires-dist
|
|
30
31
|
Dynamic: summary
|
|
31
32
|
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_python_client.egg-info/SOURCES.txt
RENAMED
|
@@ -19,6 +19,7 @@ moira_client/models/health.py
|
|
|
19
19
|
moira_client/models/notification.py
|
|
20
20
|
moira_client/models/pattern.py
|
|
21
21
|
moira_client/models/subscription.py
|
|
22
|
+
moira_client/models/system_tag.py
|
|
22
23
|
moira_client/models/tag.py
|
|
23
24
|
moira_client/models/trigger.py
|
|
24
25
|
moira_client/models/user.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5.0.0
|
|
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-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/__init__.py
RENAMED
|
File without changes
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/_managers.py
RENAMED
|
File without changes
|
|
File without changes
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/contact/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/settings/_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/user/__init__.py
RENAMED
|
File without changes
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/user/_managers.py
RENAMED
|
File without changes
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_client/models/team/user/_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/moira_python_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{moira_python_client-5.0.0 → moira_python_client-5.1.1}/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
|