Create lookup data
Lookup is for data enrichment that is not directly available from incoming raw data. For example, it is used to identify region and market for the incoming network element. Typically, the raw data comes with information to lookup another lookup table to get the customer-specific data or view.
In this solution, where lookup can be directly created, everything about lookup table is kept dynamic so that extra tables can be created and modified at run time.
- Click the More actions (
) icon and select Lookup.
- Click the Create new (
) button to open the Pack lookup page.
- Enter the look up name.
For example, devices.
- Click Add/Edit header (
) icon.
- Click the Add header (
) icon and enter the header name that you want to give in your lookup data in the Text field.
- Click OK.Similarly, you can create all the headers that are needed in the lookup. For example, you can create the following headers for the
devices
lookup:Key
It is the default header for which you must provide values. These values appear as rows in the For example, display name for the device.
DeviceName
DevicePort
DeviceUser
DevicePassword
- Click Add record to enter actual values for all the fields that are created.
- Click OK and click Commit.
- Provide comment in the Comment field and click Confirm.
- Click the Edit (
) icon for the lookup and edit the values for all the headers that are created previously.
- Click the Delete (
) icon to delete the lookup record.
- Click Commit and provide comment in the Comment
field and click Confirm.
You can see your lookup with its name, headers, and their values as specified by you.
- You can perform the following actions on your lookup records that are available in the
Pack lookup page.
- Click the Edit icon to add or edit the lookup headers and their values.
- Click the Delete (
) icon to delete the lookup completely.
- Click the Export (
) icon to export the lookup to a JSON or an Excel format.
- Click the Import icon and select Import and replace to import an
available lookup and replace it with a specific lookup that is available on the Pack
lookup page.
Or, select Patch to append more lookup records from an external lookup to an existing lookup on the Pack lookup page.
- Click the History (
) icon to view all the modifications that are made to a lookup in the table.
From the History page, select any two revisions that you want to compare and click the Compare revisions (
) button.
You can compare the changes that are done in both the revisions. You can also perform the following actions:- Copy to clipboard
- Click the Copy to clipboard (
) icon to copy the contents of a revision.
- Export a revision content
- Click the Export (
) icon to export the contents of the revision to a JSON file.
You can see the file in your default Downloads folder with the name in this format:
Lookup-<pack_name>-<lookup_name>-<timestamp>.For example: Lookup-telemetry-telemetry-devices-1677997818022.