plausible / analytics

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
https://plausible.io
GNU Affero General Public License v3.0
18.98k stars 1.02k forks source link

Implement traffic drop notifications #4300

Open aerosol opened 3 days ago

aerosol commented 3 days ago

Changes

This PR implements traffic drop notifications, similar to already implemented spike notifications.

Postgres migration included that extends the spike_notifications table with a type field indicating whether the notification is tracking drops or spikes. Table name should be probably left intact - since we don't have a way to run a migration renaming it.

It's important we don't send out drop notifications if e.g. traffic is barred via payment issues, hence the worker looks owner's accept_traffic_until up.

BTW the PR makes it no longer possible to set a negative threshold.

Tests

Changelog

Documentation

Dark mode

github-actions[bot] commented 2 days ago
|Preview environment👷🏼‍♀️🏗️ | |:-:| | [PR-4300](https://pr-4300.review.plausible.io)