Exporting and Importing Alert Rules


You can also export and import alert rules in batches in Alert Engine > Alert Rules page, in addition to creating, editing, and deleting alert rules.

Note

The operations of exporting and importing alert rules need to be authorized by OU administrator.

Prerequisites


Ensure that you have read the limitations for alert rules. See Limitations

Exporting Alert Rules


Click Batch Operations > Export > Export All in Alert Engine > Alert Rules page to export all of the created alert rules or select the alert rules that needs to be exported and click Export > Export Selected. The default format of the exported file is JSON.

Note

The alert rules created by Open APIs cannot be exported.

Importing Alert Rules


  1. Click Import in Alert Engine > Alert Rules page.

  2. Select the File Format, click Upload File in the pop-up window, and upload the JSON or Excel file whose file size is smaller than 50 MB. If the Excel file template is needed, click Excel > Download the template, enter the corresponding contents in the template file, and upload.

    You cannot construct the expression by using Attribute, nor can you configure Timing and Alert Recovery functions in the template.


    ../_images/alert_rule_import.png


  3. Click Import and complete the batch import.


If imported, the alert rules will be uploaded to the page. New Records and Updated Records are decided by whether the imported rule IDs are duplicated with the existing ones, if IDs are duplicated, the records will be updated, otherwise, the records will be created.


If import fails, you can click Download Error File in the pop-up window, check the error message, revise the file, and click Import Again to re-upload the file.

Note

When the imported alert rule IDs are duplicated with the existing ones, the existing alert rules will be overwritten and updated. When the imported alert rule IDs are duplicated with the IDs of the alert rules created by the Open APIs, import failed, and the alert rules created by Open APIs will not be overwritten.

Results


Imported alert rules will be added or updated to the alert rule list and can be edited or deleted in the page.