Create a Notification Rule
A notification rule connects event triggers to delivery channels. When an event matches the rule conditions, Moonshadow sends the notification through every configured channel.string
required
The workspace that owns this notification rule.
string
required
A human-readable name for the rule.
array
required
List of trigger conditions. Each trigger specifies an event type and optional filters.
array
required
List of delivery channels. Moonshadow sends to all channels when triggers match.
Trigger Conditions
Triggers define which events activate the notification rule. Each trigger has anevent_type and optional filters that narrow down matching events.
Event Types
You can trigger on any event type that occurs in your workspace:event.created- any event from a connected integrationautomation.completed- an automation workflow finishedintegration.connected- a new integration was addedintegration.disconnected- an integration was removeduser.invited- a new user was invited to the workspace
Filters
Filters use dot notation to match values inside the event payload. Only events that satisfy all filters trigger the notification.Delivery Channels
Each rule can deliver to one or more channels. Moonshadow supports Slack, email, and webhook channels.Slack
Sends a formatted message to a Slack channel. Requires a connected Slack integration.Webhook
POSTs the event payload to a custom URL.Muting and Snoozing
You can temporarily disable a rule without deleting it. This is useful during maintenance windows or when a service is down.Disable a Rule
Snooze a Rule
Snoozing disables a rule for a fixed duration and re-enables it automatically.Snoozed rules show a countdown in the dashboard. You can cancel a snooze early by re-enabling the rule manually.
Full Example: GitHub Pull Request Alerts
This complete example creates a rule that alerts the team when a non-draft pull request is opened in GitHub.Next Steps
-
First Integration
Connect Slack or another integration to enable Slack notifications -
Webhooks
Build custom delivery pipelines with webhook channels -
API Reference
Explore all notification rule endpoints and parameters
