moira-python-client 5.2.0__py3-none-any.whl → 5.2.1__py3-none-any.whl

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.
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moira-python-client
3
- Version: 5.2.0
3
+ Version: 5.2.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
@@ -12,7 +12,7 @@ moira_client/models/pattern.py,sha256=Ef8Roupkjrs8gb41vrgBwvgpgTmJU4igsU58z19LHc
12
12
  moira_client/models/subscription.py,sha256=vAGuxrcTkGLtrj8D_cC_lo3EMGtAnClOXdmFfMl45E0,9050
13
13
  moira_client/models/system_tag.py,sha256=hq3E9ystraZ-YBQ3UGOwhQeN6BLJUkJDIMQ9583ypq8,597
14
14
  moira_client/models/tag.py,sha256=2sDmf9CKAzzZRqQykBdR3-jKgcfo62hGO7eivI1X_sc,4336
15
- moira_client/models/trigger.py,sha256=dC2g7MisGM5M-zdQysmSEPE5wVRjtgr5qfSz02UiuEI,18278
15
+ moira_client/models/trigger.py,sha256=0yUI94bOySNkhl9uqDOSUMX0y6E4WnZwgIb1RCECk6Q,19756
16
16
  moira_client/models/user.py,sha256=9zG7pbmEA9ESUWFMzvqfyLP0lqcjz1pc0n8U7mL1UMk,1767
17
17
  moira_client/models/team/__init__.py,sha256=hPeciH0IcuSdo3jY7EMyYaG85faZky4VvU9BsGDpZiY,118
18
18
  moira_client/models/team/_managers.py,sha256=LJcXKK42hxoMIi-dw5P_Nhl098wa0VVWinAGoTHGqQ0,2993
@@ -27,8 +27,8 @@ moira_client/models/team/subscription/_managers.py,sha256=lMWyWc8jibQcjLOBAXTKtC
27
27
  moira_client/models/team/user/__init__.py,sha256=XDgaELIXAcD8l0SBVjQ8OSaSknMd1qGJ_dRmT0VxyVI,129
28
28
  moira_client/models/team/user/_managers.py,sha256=9AeMrMVjek7hsHS9mGNeX9RaK6UCV5JU6GlFDouI_b0,1458
29
29
  moira_client/models/team/user/_models.py,sha256=E90MLjV4Xtbypy_LXatzJdmCy1MUs8NZfs0RlRneUsI,134
30
- moira_python_client-5.2.0.dist-info/licenses/LICENSE,sha256=HJk93uYDrJpwAa6G3ufYfC4ZgCKH2flOtdgOv1esxgI,1062
31
- moira_python_client-5.2.0.dist-info/METADATA,sha256=lDP8mKWg6-ymQ-KLKilBDPQAyaujSaXcUD39kJ7Ach0,1420
32
- moira_python_client-5.2.0.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
33
- moira_python_client-5.2.0.dist-info/top_level.txt,sha256=zBB6_FP28feugBNn2cLmi5nCniRPnuChI6HuXUqFdIA,13
34
- moira_python_client-5.2.0.dist-info/RECORD,,
30
+ moira_python_client-5.2.1.dist-info/licenses/LICENSE,sha256=HJk93uYDrJpwAa6G3ufYfC4ZgCKH2flOtdgOv1esxgI,1062
31
+ moira_python_client-5.2.1.dist-info/METADATA,sha256=PFHuSWsJa3eTQZ9p8RDACpY4i0tvxHauaZZ93hs1mv8,1420
32
+ moira_python_client-5.2.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
33
+ moira_python_client-5.2.1.dist-info/top_level.txt,sha256=zBB6_FP28feugBNn2cLmi5nCniRPnuChI6HuXUqFdIA,13
34
+ moira_python_client-5.2.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.0)
2
+ Generator: setuptools (82.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5