AlertSubscription
AlertSubscription Schema¶
Description: Owner-scoped configuration turning matching alerts into observations.
Funding lives here — an ObservationSpec deliberately carries no grants
(see ``skynet_db.specs``), so the subscription supplies the
``observing_grants`` that fired observations charge. Grants are
validated at save time and revalidated at fire time. A subscription
may span sources from multiple brokers; matching is purely
filter-driven.
Properties¶
| Name | Type | Description |
|---|---|---|
| id | Integer |
No description |
| owner_id | Integer |
User or organization the fired observations belong to. |
| creator_id | Integer |
User who configured the subscription; fired observations are attributed to them as creator (owner = the subscription's entity). |
| name | String(255) |
No description |
| is_enabled | Boolean |
No description |
| priority | Integer |
No description |
| match_expression | String(Unbounded) (Optional) |
No description |
| max_per_night | Integer (Optional) |
No description |
| event_type_hint | Enum(sn, grb, gw, frb, tde, agn, var, nu, kn, other) (Optional) |
No description |
| filters | JSONB |
No description |
| on_update | Enum(update_target, retrigger, ignore) |
No description |
| on_retraction | Enum(cancel, notify_only, ignore) |
No description |
| fire_on_test_alerts | Boolean |
Debug toggle: also fire on test/mock notices (is_test events). |
| cancel_after_hours | Float (Optional) |
Fired observations get cancel_on = event_time + this window. |
| cooldown_sec | Float (Optional) |
Minimum spacing between consecutive fires of this subscription. |
| expires_on | DateTime (Optional) |
Subscription stops matching after this instant. |
| created_on | DateTime |
No description |
| updated_on | DateTime |
No description |
| last_fired_on | DateTime (Optional) |
No description |
Relationships¶
| Relationship Name | Type |
|---|---|
| owner | Entity |
| creator | User |
| observing_grants | ObservingGrant |
| specs | AlertSubscriptionSpec |
| triggers | AlertTrigger |