uptimer-python-sdk 0.3.0__py3-none-any.whl → 0.4.0__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.
uptimer/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Uptimer Python SDK."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.4.0"
uptimer/models/rule.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from dataclasses import dataclass
3
+ from dataclasses import dataclass, field
4
4
 
5
5
 
6
6
  @dataclass
@@ -34,6 +34,9 @@ class BaseRule:
34
34
  workspace_id: str # workspace id
35
35
  request: RuleRequest # request configuration
36
36
  response: RuleResponse # response validation
37
+ # region names the rule runs in (matched by name). A rule with no regions is
38
+ # never checked and stays at "No Data" — assign at least one to monitor it.
39
+ regions: list[str] = field(default_factory=list)
37
40
  kind: str = "rule"
38
41
 
39
42
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uptimer-python-sdk
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: A Python SDK for uptimer
5
5
  Project-URL: Repository, https://github.com/myuptime-info/uptimer-python-sdk
6
6
  Author-email: Roman Zadoev <zadoev@gmail.com>
@@ -1,4 +1,4 @@
1
- uptimer/__init__.py,sha256=xPKvxeYbWVTJxqdgCWKJV6_t24PlvBGs0qn6SiuAGAk,49
1
+ uptimer/__init__.py,sha256=tJyyBKyhw02OVw8UyWk6CAmy6c70rr-xEmRqDcPZnnc,49
2
2
  uptimer/client.py,sha256=zGDZxtTa-1Nb1tlOMFQ23b6RdmX2YiyDdEJhOxHE9Ys,784
3
3
  uptimer/errors.py,sha256=ttei31pQhKnozY4xbDh3oMQEh3s8tNj4z6ed0_Htwkk,699
4
4
  uptimer/http.py,sha256=CJ2H_UUObWZm988v5h8997-AEeFIT2Qu4tzM3DanQfo,1276
@@ -13,10 +13,10 @@ uptimer/models/__init__.py,sha256=3BIJH0JzLbGJumJTgdEAQYN09JW9UXRMK0XSsEp78Bk,89
13
13
  uptimer/models/deserialize.py,sha256=fprfBiF9BK6ccGS8p4TZMBmUTezRZG-tfdv1SAe4SwE,3294
14
14
  uptimer/models/errors.py,sha256=xuKwRpX-MQjWggJYsqaM4p0bcvRLDKuWbCmH0JdpOQs,1299
15
15
  uptimer/models/region.py,sha256=PEZpXXDaoF884dfiIYfHBh1Akmr0fhjODtqVcXDzQYM,282
16
- uptimer/models/rule.py,sha256=ZzLpPBeOH0Qtl-bw9Jk_z_VvKnsUu6EEDKgvLZ-mCR4,1346
16
+ uptimer/models/rule.py,sha256=7DI7cbMQINifgu5LkLMgZel0zDBqvL8pvZRvpTO2hUE,1569
17
17
  uptimer/models/workspace.py,sha256=zxD05PuNcnGBBqB42X_qRGG_oqxDuW-iTafereiw5Q4,259
18
- uptimer_python_sdk-0.3.0.dist-info/METADATA,sha256=Z5_fhb-gf0orYgi_MYXXMU_RZ3LrCzef6sMlipmF20M,5336
19
- uptimer_python_sdk-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
- uptimer_python_sdk-0.3.0.dist-info/licenses/LICENSE,sha256=f5hNPk9nMiFFcs8hvC1uy5erybWlFm-7iHCOJd4HATc,1069
21
- uptimer_python_sdk-0.3.0.dist-info/licenses/NOTICE,sha256=gimzxqrDPQ8cq3bH6aXBkuoPek6DbQwKS6Ix56F1CR4,1628
22
- uptimer_python_sdk-0.3.0.dist-info/RECORD,,
18
+ uptimer_python_sdk-0.4.0.dist-info/METADATA,sha256=ETa5enZhR-X8HBy9v4VYK3v8MsY4Ye79giIQnpiUht0,5336
19
+ uptimer_python_sdk-0.4.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
20
+ uptimer_python_sdk-0.4.0.dist-info/licenses/LICENSE,sha256=f5hNPk9nMiFFcs8hvC1uy5erybWlFm-7iHCOJd4HATc,1069
21
+ uptimer_python_sdk-0.4.0.dist-info/licenses/NOTICE,sha256=gimzxqrDPQ8cq3bH6aXBkuoPek6DbQwKS6Ix56F1CR4,1628
22
+ uptimer_python_sdk-0.4.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.31.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any