- Rules pick the events to watch and who to notify.
- Channels are the Slack channels that rules can post to.
Only owners can create or change rules and channels. Members can see them, but can’t edit them.
Create a rule
- Log in to app.portalhq.io and select the environment.
- Go to Notifications > Rules and select New rule.
- Enter a name for the rule, up to 100 characters.
- Under Events, select the events to watch. Select a category to add all of its events at once.
- Choose who gets notified:
- Email: all members of your organization, or the members you select.
- Slack: one or more of the environment’s Slack channels.
- Choose how often to re-notify while a problem continues. See Failing and recovered.
- Select Create rule.
Send a test
Open a rule and, under Send a test, select Send test. Portal sends a test notification to everyone the rule reaches. The result shows how many recipients it reached and which deliveries failed. Save your changes first: the test uses the saved rule.Add a Slack channel
Portal posts to Slack through an incoming webhook.- In Slack, create an incoming webhook for the channel and copy its URL. It starts with
https://hooks.slack.com/. - In the dashboard, go to Notifications > Channels and select Add a Slack channel.
- Enter a name for the channel and paste the webhook URL.
- Select Test and save. Portal posts a test message to the channel and saves it only if Slack accepts the message.
Events
Member changes, SSO connections, and the two-factor policy apply to your whole organization, not to one environment. You can only select them in a rule in your Production environment.
Failing and recovered
Some events report a problem that lasts, such as a failing hook or a low gas sponsor balance. For these, a rule sends:- Failing when the problem starts.
- Escalated when it gets worse, such as a gas sponsor dropping from below 50% to below 25%.
- Still failing reminders while it continues, every hour, 6 hours, or 24 hours, depending on the rule’s re-notify setting. Choose Never to skip reminders.
- Recovered when it’s fixed.
Triggers
Each time a rule sends a notification, Portal records a trigger. Open a rule to see its recent triggers, or select View all triggers for the full list. Each trigger shows the event, its type (Event, Failing, Escalated, Still failing, Recovered, or Test), and whether each email and Slack message was delivered. A failed delivery shows the reason and how to fix it. Triggers are kept for 30 days.Next steps
- Flow control hooks: the hooks that the webhook delivery events watch.
- Informational webhooks: the webhook that the informational webhook events watch.
- Configure a custom subdomain: the Web SDK domains that the custom domain events watch.