Skip to main content

Module alerts

Module alerts 

Source
Expand description

Alert Pipeline System

Provides alert generation, routing, and delivery for Shape.

§Overview

The alert system enables:

  • Real-time alert generation from Shape code
  • Tag-based routing to multiple sinks
  • Plugin-based output sinks (webhooks, email, etc.)
  • Dead-letter queue for failed deliveries

§Example

// In Shape code
alert("Price Alert", "Price crossed threshold", {
    severity: "warning",
    tags: ["price", "btc"],
    data: { price: current_price }
});

Structs§

Alert
An alert to be sent through the pipeline
AlertRouter
Alert router that directs alerts to appropriate sinks

Enums§

AlertSeverity
Alert severity levels

Traits§

AlertSink
Trait for alert output sinks