Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The opEvents filter feature allows the user users to save a filter filters for the "Current Events" table in opEvents. This feature also allows to bookmark the url with filter params in it which can be reused or shared enables bookmarking the URL with filter parameters, making it easy to reuse or share with others.Create

Creating a filter:

Image Modified


  1. Use the current events table filter (located above the table on the right side) to filter the data.
  2. Click on the "Save

...

  1. Filter" button.
  2. A modal will open.
  3. Enter

...

  1. a name for the filter and save

...

  1. it.

...


The saved filters will show up appear in the dropdown menu next to the "Save Filter" button. Selecting a filter from the saved list will apply the filter it to the current events table.


Editing/ Deleting a filter:

The filter In this release, filters cannot be edited or deleted using the GUI in this release.The filter is saved at the below location and can be accessed to modify / delete a filter: /var/filters.json. To modify or delete a filter, access the /usr/local/omk/conf/EventGUIFilters.json file, which stores the saved filters.

The JSON file has below the following structure :(NOTE: (note that the "groups" field has no impact on the filters in the current release):

Code Block
titlefiltersEventGUIFilters.json
{
   "filters" : [
      {
         "fields" : {
            "priority" : 1,
            "node" : "iregex:check"
         },
         "name" : "Filter2",
         "groups" : [
            "network"
         ]
      },
      {
         "fields" : {
            "node" : "iregex:check",
            "priority" : "1"
         },
         "groups" : [
            "network"
         ],
         "name" : "Filter1"
      },
      {
         "groups" : [
            "network"
         ],
         "name" : "Filter3",
         "fields" : {
            "node" : "iregex:check-thor",
            "priority" : "3"
         }
      },
      {
         "fields" : {
            "node" : "iregex:check-thor-fulla",
            "priority" : "4"
         },
         "name" : "Filter4",
         "groups" : [
            "network"
         ]
      }
   ]
}

Changes in the URL structure:

The new URL for opEvents when filtering the data will look likehave the following format:
/en/omk/opEvents/active_events#events_filter/?filter={"node"%3A"iregex%3Aomk"%2C"priority"%3A"3"}
The users

Users can now modify the filters filter parameters directly in the URL directly which , and the changes will be reflected in the GUI. Users can also bookmark this URL, which will load the correct correctly filtered data when used later.

NOTENote: Using the advanced filter or the period selector will override the filter URL.