The monitoring source is a fundamental element of the event management process. The main task of the Monitoring Source is to connect the API Endpoint that receives messages from the external monitoring system and the target message table via the Data Import mechanism.
The monitoring source has the information about the following entities:
Role required: admin. |
To create a monitoring source, complete the steps below:
You need to specify a unique monitoring source name. The name of the monitoring source will also be used in the title of the target table as follows: Name Target Messages.
Specify the data structure that you want to get from the monitoring source. You can use one of the available fields to enter the data:
JSON – insert the data in JSON format. Use Latin letters, {} , "" _ : symbols, and [0...9] numbers.
You cannot put numbers at the beginning of attribute names. |
Attributes and keys – create attributes by entering them in the input field. Use Latin letters, the _ symbol, and [0...9] numbers. Attribute names can only begin with letters or the _ symbol.
You cannot create the same attributes. |
When data is inserted in one of the fields, it is automatically transferred to the other field in the required format.
You can also edit and delete attributes. There are two ways to do this:
Select the attributes from the list on the right to use as composite keys.
You need to select at least one attribute from the list to use it as the composite key to go to the next step. |
A composite key is a set of values of several attributes. These attributes are considered to be a unique identifier that precisely defines an object that the monitoring system sends a message about. It can be an attribute with an ID or a combination of many attributes.
The role of the composite key
|
In step 3, you need to create columns for the target table. To do this, complete the following steps:
Field | Mandatory | Description | |
---|---|---|---|
Column type | Y | Specify a column type. The column type defines the type of the data stored in the column. Depending on the type selected, additional fields may appear on the form (see below). For more information, refer to the Column Types article. | |
Title | Y | Specify a column title displayed on the form. It should be meaningful and human-readable. | |
Column name | Y | System column name. This field is populated automatically, depending on the title entered, but you can also edit it. Latin letters, [0..9] numbers, and the underscore symbol ( _ ) are allowed. | |
Reference | Y | Specify a table to make its record available for selection.
| |
Choice table | N | Reference to a table with options.
| |
Choice type | Y | Define whether the None option is applicable for the field. Available options:
If the Dropdown without --None-- is chosen, the Default value field becomes mandatory.
| |
Default value | Y/N | Specify a default value that is populated automatically to the field when a new record is created. The field appears when the Choice option is selected in the Column type field. It becomes mandatory when the Dropdown without --None-- (specify a default value) type is chosen. | |
Choice options | N | Create choice options for the column. Click
|
To change the values of the created column or delete it, complete the steps below:
Set the field mapping to define the correlation between the fields of the monitoring source and the fields of the target table.
To do this, complete the following steps:
As a result, the formed pair is highlighted in green, a connecting line runs between the elements. The pair is sorted to the bottom of the element list.
To disconnect the elements, click .
You can add a script to the connected field pair that takes the record object of the monitoring source as an argument and returns the value to put into the target table field.
To add a script, complete the following steps:
When there is a script for a pair of fields, the |
To open the edit window with the script specified, click . Make changes and click Save, or click Delete to delete the script.
As a result:
For further setup, you need to create Monitoring Rules, Event Rules and Actions.
To receive messages from external monitoring systems on the configured source endpoint, you need to: