Anomaly rules can be created from the Anomaly screen of the Dashboard. Make sure you have selected the desired application using the Application Selector in the top-left corner of the dashboard.
Navigate to the Anomalies Screen
From the Dashboard, select Anomalies in the top navigation bar. Once on the Anomalies page, select Add a Custom Rule.
Alternately, click here to be taken directly to the New Rule page.
Define the new rule
Begin by giving the new rule a name, description, and selecting the APIs it applies to.
Next, select which detection type to use.
- Call by Call Filter Match: This type will analyze all API calls and attempt to match them against the filters set by the rule (you will define them shortly).
- Sliding Time Window: This type allows you to set detection conditions such as Error Rate, Consumption, and Average Latency over a given time period. Once an API matches the set condition, the rule will begin analyzing API calls by any filters you apply.
Here, you can also decide whether to enable to disable this rule on creation. An enabled rule will begin watching for anomalies immediately when saved.
Set up call filtering
Call filtering allows you to further narrow down the requirements for an anomaly to trigger. Rules can have a max of 5 filters per rule, and can be set to match all or any of the filters.
Set up notifications
With the filtering requirements in place, the last step is to set up notification settings. You can choose to be notified by email, Slack message, or webhook.
Once all the necessary fields are complete select Save to create your new Anomaly Rule.