moira-python-client 5.2.0__tar.gz → 5.2.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.2.0 → moira_python_client-5.2.1}/CHANGELOG.md +8 -0
- {moira_python_client-5.2.0/moira_python_client.egg-info → moira_python_client-5.2.1}/PKG-INFO +1 -1
- moira_python_client-5.2.1/VERSION.txt +1 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/trigger.py +24 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1/moira_python_client.egg-info}/PKG-INFO +1 -1
- moira_python_client-5.2.0/VERSION.txt +0 -1
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/LICENSE +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/MANIFEST.in +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/README.md +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/__init__.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/client.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/__init__.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/base.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/config.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/contact.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/event.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/health.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/notification.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/pattern.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/subscription.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/system_tag.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/tag.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/__init__.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/_managers.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/_models.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/contact/__init__.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/contact/_managers.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/settings/__init__.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/settings/_managers.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/settings/_models.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/subscription/__init__.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/subscription/_managers.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/user/__init__.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/user/_managers.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/user/_models.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/user.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/moira.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_python_client.egg-info/SOURCES.txt +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_python_client.egg-info/dependency_links.txt +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_python_client.egg-info/requires.txt +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_python_client.egg-info/top_level.txt +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/requirements.txt +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/setup.cfg +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/setup.py +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/test-requirements.txt +0 -0
- {moira_python_client-5.2.0 → moira_python_client-5.2.1}/tests/test_client.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5.2.1
|
|
@@ -27,7 +27,11 @@ class Trigger(Base):
|
|
|
27
27
|
targets,
|
|
28
28
|
team_id=None,
|
|
29
29
|
warn_value=None,
|
|
30
|
+
warn_for=None,
|
|
31
|
+
warn_keep_firing_for=None,
|
|
30
32
|
error_value=None,
|
|
33
|
+
error_for=None,
|
|
34
|
+
error_keep_firing_for=None,
|
|
31
35
|
desc='',
|
|
32
36
|
ttl=600,
|
|
33
37
|
ttl_state=STATE_NODATA,
|
|
@@ -70,7 +74,11 @@ class Trigger(Base):
|
|
|
70
74
|
self.tags = tags
|
|
71
75
|
self.targets = targets
|
|
72
76
|
self.warn_value = warn_value
|
|
77
|
+
self.warn_for = warn_for
|
|
78
|
+
self.warn_keep_firing_for = warn_keep_firing_for
|
|
73
79
|
self.error_value = error_value
|
|
80
|
+
self.error_for = error_for
|
|
81
|
+
self.error_keep_firing_for = error_keep_firing_for
|
|
74
82
|
self.desc = desc
|
|
75
83
|
self.ttl = ttl
|
|
76
84
|
self.ttl_state = ttl_state
|
|
@@ -146,7 +154,11 @@ class Trigger(Base):
|
|
|
146
154
|
'tags': self.tags,
|
|
147
155
|
'targets': self.targets,
|
|
148
156
|
'warn_value': self.warn_value,
|
|
157
|
+
'warn_for': self.warn_for,
|
|
158
|
+
'warn_keep_firing_for': self.warn_keep_firing_for,
|
|
149
159
|
'error_value': self.error_value,
|
|
160
|
+
'error_for': self.error_for,
|
|
161
|
+
'error_keep_firing_for': self.error_keep_firing_for,
|
|
150
162
|
'desc': self.desc,
|
|
151
163
|
'ttl': self.ttl,
|
|
152
164
|
'ttl_state': self.ttl_state,
|
|
@@ -530,7 +542,11 @@ class TriggerManager:
|
|
|
530
542
|
targets,
|
|
531
543
|
team_id=None,
|
|
532
544
|
warn_value=None,
|
|
545
|
+
warn_for=None,
|
|
546
|
+
warn_keep_firing_for=None,
|
|
533
547
|
error_value=None,
|
|
548
|
+
error_for=None,
|
|
549
|
+
error_keep_firing_for=None,
|
|
534
550
|
desc='',
|
|
535
551
|
ttl=600,
|
|
536
552
|
ttl_state=STATE_NODATA,
|
|
@@ -551,7 +567,11 @@ class TriggerManager:
|
|
|
551
567
|
:param tags: list of str tags for trigger
|
|
552
568
|
:param targets: list of str targets
|
|
553
569
|
:param warn_value: float warning value (if T1 <= warn_value)
|
|
570
|
+
:param warn_for: float warning value; the condition must continuously evaluate to WARN status for this many seconds before the alert fires (0 = immediately).
|
|
571
|
+
:param warn_keep_firing_for: float warning value; the alert stays active WARN many seconds after the condition no longer evaluates to this status.
|
|
554
572
|
:param error_value: float error value (if T1 <= error_value)
|
|
573
|
+
:param error_for: float error value; the condition must continuously evaluate to ERROR status for this many seconds before the alert fires (0 = immediately).
|
|
574
|
+
:param error_keep_firing_for: float error value; the alert stays active ERROR many seconds after the condition no longer evaluates to this status.
|
|
555
575
|
:param desc: str trigger description
|
|
556
576
|
:param ttl: int set ttl_state if has no value for ttl seconds
|
|
557
577
|
:param ttl_state: str state after ttl seconds without data (one of STATE_* constants)
|
|
@@ -573,7 +593,11 @@ class TriggerManager:
|
|
|
573
593
|
tags=tags,
|
|
574
594
|
targets=targets,
|
|
575
595
|
warn_value=warn_value,
|
|
596
|
+
warn_for=warn_for,
|
|
597
|
+
warn_keep_firing_for=warn_keep_firing_for,
|
|
576
598
|
error_value=error_value,
|
|
599
|
+
error_for=error_for,
|
|
600
|
+
error_keep_firing_for=error_keep_firing_for,
|
|
577
601
|
desc=desc,
|
|
578
602
|
ttl=ttl,
|
|
579
603
|
ttl_state=ttl_state,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5.2.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
|
|
File without changes
|
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/__init__.py
RENAMED
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/_managers.py
RENAMED
|
File without changes
|
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/contact/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/settings/_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/user/__init__.py
RENAMED
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/user/_managers.py
RENAMED
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_client/models/team/user/_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_python_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.1}/moira_python_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{moira_python_client-5.2.0 → moira_python_client-5.2.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
|