Manage Custom Rules
Read these topics to understand how to manage custom rules.
You can upload a custom rule in JSON format, download a rule, add tags to a rule, and delete a rule from the Observability > Health > Custom KPI Collection > Custom Rules > Rule List tab.
Upload a Custom Rule
You use a custom rule to define key performance indicators (KPIs). You can organize these rules into rule instances and apply the rules to devices. You can upload a custom rule in the JSON format from the Rule List tab.
To upload a custom rule:
Navigate to the Rules List tab.
Click Upload Rule.
The Upload Rule page appears.
Click Browse and navigate to location of the rules file on your local file system.
Click Open after you select the rules file.
The Upload Rule page appears.
Click Upload to upload the rule.
The Rule List tab appears and displays the newly added custom rule.
Download a Custom Rule
You can download an existing custom rule in the JSON format from the Rule List Tab.
To download a custom rule:
Navigate to the Rules List tab.
Select the custom rule that you want to download by clicking the check box next to the name of the rule, and click Download.
The rule is downloaded and saved in your local file system.
Add Tags to a Custom Rule
You can add tags to a custom rule. A tag is a label (unique key/value pair) that you assign to a rule. You can use these labels to filter rules.
To add a tag to a custom rule:
Navigate to the Rules List tab.
Select the rule that you want to add a tag to by selecting the check box next to the name of the rule.
Click More > Manage Tags.
The Manage Tag page appears.
Select the tags that you want to add to the rule from the Tags drop-down list.
Alternatively, you can also create a new tag. To create a new tag:
Click Create New Tag +.
The Create Tag page appears.
Enter a name for the tag in the Tag field.
You must add tags in the key:value format where both are text separated by a colon. A key must start with a letter and must be followed by letters, numbers, periods (.), hyphens (-), or underscores (_). A key must be between 1 to 200 characters long. A value can include alphanumeric characters, periods (.), hyphens (-), and underscores (_). A value must be between 1 to 200 characters long.
Click OK to create the new tag.
The new tag is automatically added to the Tags drop-down list on the Manage Tags page.
Click OK on the Manage Tags page to add the tag(s) to the rule.
The Rules List tab appears and displays the newly added tags in the rule.
Delete a Custom Rule
You can delete a custom rule from the Rules List tab. Before you delete a rule, you must ensure that the custom rule that you want to delete is not added to any rule instance.
To delete a rule instance:
Navigate to the Rules List tab.
Select the custom rule that you want to delete by selecting the check box next to the name of the rule, and click the Delete (Dustbin) icon.
The Confirm Delete pop-up appears.
Click Yes to delete the rule.
The rule is deleted and removed from the All Custom Rules table.