cronitor
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: cronitor | ||
| Version: 4.4.4 | ||
| Version: 4.5.0 | ||
| Summary: A lightweight Python client for Cronitor. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/cronitorio/cronitor-python |
@@ -152,3 +152,3 @@ import time | ||
| if not self.api_key: | ||
| logger.error('No API key detected. Set cronitor.api_key or initialize Monitor with kwarg.') | ||
| logger.error('No API key detected. Set cronitor.api_key or initialize Monitor with kwarg api_key.') | ||
| return | ||
@@ -162,4 +162,8 @@ | ||
| def pause(self, hours): | ||
| return self._req.get(url='{}/pause/{}'.format(self._monitor_api_url(self.key), hours)) | ||
| if not self.api_key: | ||
| logger.error('No API key detected. Set cronitor.api_key or initialize Monitor with kwarg api_key.') | ||
| return | ||
| return self._req.get(url='{}/pause/{}'.format(self._monitor_api_url(self.key), hours), auth=(self.api_key, ''), timeout=5, headers=self._headers) | ||
| def unpause(self): | ||
@@ -166,0 +170,0 @@ return self.pause(0) |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: cronitor | ||
| Version: 4.4.4 | ||
| Version: 4.5.0 | ||
| Summary: A lightweight Python client for Cronitor. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/cronitorio/cronitor-python |
+1
-1
@@ -8,3 +8,3 @@ from setuptools import setup, find_packages | ||
| name='cronitor', | ||
| version='4.4.4', | ||
| version='4.5.0', | ||
| packages=find_packages(), | ||
@@ -11,0 +11,0 @@ url='https://github.com/cronitorio/cronitor-python', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
65535
0.35%682
0.44%