Skip to content

rfc: Rework alerts #506

@Blaumaus

Description

@Blaumaus

Dupe Check

Describe the solution you'd like?

I think Alerts could be improved a lot if we reworked them to be more like Workflows / Sequences for automation.

To do this, we should allow:

  1. Support for more channels were to send the alerts, configurable per alert, not per user account. Meaning that in user / project settings users should be able to connect their channels (Telegram, Discord, Webhook, etc.), and we able to enable / disable them in the alert settings
  2. The messages sent should be customisable. For example, like it's done in email sequences on services like Postmark - where users can select variables. On Swetrix example:
  • for custom event alerts users would be able to craft custom messages with variable like "User from {{country}} have done {{count}} {{custom event name}} in the last {{hour}} hours. Session link - {{session link}}" or something like that
  • for pageviews alerts it should also be supported
  1. A bit overreach, but it would be AWESOME if we supported building proper sequences with some editor for it. Like building a sequence - website has X events in the last 24 hours -> yes (do this, do that); -> no (do this, end sequence)

Additional context

No response

How important is this feature to you?

1 (Not too important)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions