Skip to content

EventSubscription

EventSubscription Schema

Description: A persisted subscription describing who wants to hear about what.

Exactly one of ``recipient_user_id`` / ``recipient_group_id`` is set. The
matcher AND-combines every non-null filter column against the event row.

Properties

Name Type Description
id Integer No description
event_kind_pattern String(128) Exact event kind or glob (e.g. 'observation.', 'device.fault.').
recipient_user_id Integer (Optional) No description
recipient_group_id Integer (Optional) No description
resource_kind Enum(observation, telescope, observatory, site, device, operational_constraint, operational_constraint_action, observing_account) (Optional) No description
resource_id Integer (Optional) No description
observatory_id Integer (Optional) No description
telescope_id Integer (Optional) No description
device_id Integer (Optional) No description
observation_id Integer (Optional) No description
operational_constraint_id Integer (Optional) No description
is_active Boolean No description
is_deleted Boolean No description
created_by_user_id Integer No description
created_on DateTime No description
updated_on DateTime (Optional) No description
channels_override JSONB (Optional) Reserved for v2 per-subscription channel overrides; v1 leaves null.

Relationships

Relationship Name Type
recipient_user User
recipient_group Group
created_by User
silences SubscriptionRecipientSilence