This major release is the first complete rewrite of this package to follow the [Cronitor SDK Requirements](https://docs.google.com/document/d/1O-ys71tzvX0_y7lsOqHdzAMmuKdpPnfFDlBoF99e3R4/edit?usp=sharing).
Highlights
- Uses of the Universal Ping URL (released in September 2020) to auto-provision monitors on the first telemetry ping. This allows monitoring to be added to any function with a simple decorator.
python
cronitor.job('monitor-this-function')
def some_background_job():
print('Boo! Cronitor is watching.')
- Create and sync your monitors' keys, schedules, assertions, etc to Cronitor using a human friendly YAML config file:
yaml
jobs:
nightly-invoice-task:
schedule: '0 0 * * *'
notify:
assertions:
- 'metric.duration < 5 min'
- This library is also no longer pinned to a specific API version. Instead you can pass an (optional) header `Cronitor-Version`. If no header is provided your account's selected api version will be used.