Create A Rule
Configure a rule and preview it against your recent alerts before saving.1
Open Investigation Rules
With an Incident Response seat, open AI & Agents → AI SRE → Investigation rules. An eligible admin without that seat can open the direct rules surface by appending
/account/ai/surfaces/investigation_rules to the Rootly app URL.2
Create The Rule
Select New rule, then enter a name that identifies the alert class, such as
Critical checkout alerts.3
Add Conditions
Select the alert fields, operators, and values the rule should match. All conditions must match. Leave the condition list empty to match every alert.
4
Review Matching Alerts
Use the per-condition and combined counts to check the last 90 days. Open the matching-alert list to inspect the alerts behind a count.
5
Add Rule Instructions
Optionally add guidance for this alert class, such as the service-specific signal or deploy source AI SRE should check.
6
Choose The Run Mode
Select Manual, Auto-run, or Paused. Optionally set a cooldown to limit how often this rule can start automatic investigations, then select Save.
Rule Settings
string
required
A recognizable label for the alert class. Use a name that distinguishes the rule from other rules in the list.
Alert fields and values that must all match. Values within one condition match any selected value. An empty condition list applies the rule to every alert.
string
Guidance added to investigations of matching alerts, including manual runs. Instructions guide the investigation but don’t count as evidence.
required
Controls whether matching alerts run automatically, wait for a manual start, or ignore this rule.
integer
After this rule successfully starts an automatic investigation, prevent the same rule from starting another until the cooldown expires. Leave it blank or enter
0 to disable the cooldown. The value must be a whole number from 0 through 2147483647.Condition Fields
Text, custom-field, and payload conditions support these operators:
- is one of matches an exact value without case sensitivity.
- contains one of matches when the field contains a selected value without case sensitivity.
- is not one of excludes the selected exact values.
Run Modes
An automatic investigation runs once for an alert. If an investigation is already pending or running, another matching trigger doesn’t start a duplicate run. A positive cooldown also suppresses automatic starts for other alerts matched by that rule until the rule’s cooldown expires. Manual investigations remain available.
How Overlapping Rules Behave
More than one rule can match the same alert. AI SRE handles the overlap in two parts:- Starting the run: the matching Auto-run rule with the lowest stored position controls the automatic start and its cooldown.
- Applying instructions: the matching non-paused rule with the lowest stored position contributes its rule instructions.
Design Reliable Rules
- Start in Manual mode and compare the preview with the alert class you intended to match.
- Use Auto-run for alerts with a clear owner and enough connected evidence to investigate.
- Add a cooldown when a noisy alert class can create many distinct alerts in a short period. A cooldown is shared by every alert matched by that rule.
- Keep rule instructions scoped to the matched alert class. Put shared guidance in AI SRE instructions.
- Prefer stable normalized fields over free-form title text when both are available.
- Pause a rule while changing an alert source or payload contract.
- Review the seven-day alert count in the rule list for unexpected growth or inactivity.
Troubleshooting
A rule matches more alerts than expected
A rule matches more alerts than expected
Open the rule and inspect the 90-day count for each condition and for all conditions together. Add a stable discriminator such as source, urgency, or a service custom field. Values inside one condition use any-match behavior; separate conditions use all-match behavior.
An automatic investigation didn't start
An automatic investigation didn't start
Confirm the rule is in Auto-run mode and that the alert matches every condition. Check the payload path and value casing in the matching-alert preview, whether a higher-priority matching Auto-run rule is selected, and whether that rule’s cooldown is still active. AI SRE also needs to be enabled for the current team.
AI SRE followed the wrong rule instructions
AI SRE followed the wrong rule instructions
Another non-paused rule with a lower stored position may also match the alert. The rules table’s sort order doesn’t change priority, and manual reordering isn’t currently available. Make rules with different instructions mutually exclusive, or pause the broader rule while you refine its conditions.
Frequently Asked Questions
Do rule instructions apply when I start a run manually?
Do rule instructions apply when I start a run manually?
Yes. The matching non-paused rule with the lowest stored position contributes its instructions to manual and automatic alert investigations.
Can a rule automatically investigate an incident?
Can a rule automatically investigate an incident?
No. Investigation rules match alerts. Start AI SRE manually from the AI SRE tab on a non-maintenance incident.
What does a rule with no conditions do?
What does a rule with no conditions do?
It matches every alert. In Manual mode it supplies default rule instructions; in Auto-run mode it starts an investigation for every new alert.