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
- Alert
Router - Alert router that directs alerts to appropriate sinks
Enums§
- Alert
Severity - Alert severity levels
Traits§
- Alert
Sink - Trait for alert output sinks