Action Tracker

This page describes how to configure the Action Tracker component .

The Action Tracker is a self-contained alerting application used by KX Stream. The following screenshot illustrates an Action Tracker with horizontal layout

Screenshot

Set up an Action Tracker

To set up an Action Tracker, click-and-drag the component into the workspace and configure the Action Tracker properties described in the next section.

Action Tracker properties

The following sections provides details on how to configure the properties of the Action Tracker component.

Basics

Open the Basics properties on the right and configure the properties described in the following table.

Screenshot

Field

Description

Name

A name for the component provided by the user.

Data Connection/Streaming Data Connection

Refer to Data sources for details about setting up a connection.

 

 

 

Data Connection

Note

Data connection

The connection is a very specific alert gateway process, querying real-time and historical alerts. Alerts are published into a fixed table dxATAlert and the displayed table is kept in dxATItemCurrent. A Data Source is not needed as all modification of the view lies within KX Dashboards.

You can tick/untick the visible columns in the Style editor. There are some miscellaneous columns (tag1, tag2, etc.) that you can populate freely and then change the column header within KX Dashboards if you want more customised information in your alert table.

Layout split

Select either Vertical or Horizontal.

Show Row Count

Displays the number of data rows.

Screenshot

Custom Layout

Select display columns from available data columns. Hidden columns are excluded from the list of available columns.

Screenshot

Visual Notifications

Check for pop-up notification when a new item is added.

Audio Notifications

Check for aural notification when a new item is added.

Polling Interval (sec)

Set time check for new items.

 

Max Rows

Set maximum display rows of items; default value of "0" shows all rows

Transitions Display Type

Set the way transitions are displayed. There are three options, as illustrated below:

 

Buttons

Screenshot

Grouped

Screenshot

Popup

Screenshot

Default Transition/Default Resolution

The value to be selected (if available) when selecting transition.

Case Management

When enabled, users can create an action case. Actions are defined by Action Type Cases.

Screenshot

Users can then configure the individual action. The name of the action button is controlled by the Case Button Text property.

Screenshot

Note

Case configuration

Ensure cases are specified in Action Type Cases

Preselected Action Type

Selected Action Type value when creating a case.

Cases Display Type

Sets the way alerts and cases are displayed:

  • Combined - Data Grid displays both alerts and cases.

  • Tabs - Alerts and cases are displayed in separate tabs. When selected, the Selected Tab option will be available.

    Screenshot

Selected Tab

This determines the default Tab to be displayed when the Action Tracker is launched. This property is only available when the Cases Display Type property is set to a value of Tabs.

  • Alerts - Displays Alerts tab when Action Tracker is launched. This is the default.

  • Cases - Displays Cases tab when Action Tracker is launched.

Columns

Configure the properties, described in the following table.

Screenshot

Field

Description

User Defined

When checked, the selected column will remain in the Data Grid if the selected column variable is removed from the query. A user-defined query is effectively a ‘lock’ on the column

Warning

Missing User Defined column variable

If the User Defined column variable is missing in the query, the User Defined column shows as an empty column in the Data Grid

Data Field Name

A Data Source column or a wildcard column

screenshot

When using a wildcard, all dynamic columns derived from a query will use the wildcard column format. The wildcard can be used in conjunction with text headers; e.g. bid* for both bid and bid_update.

Select the Data Field Name from data columns in the Data Source query.

Additional columns can be added, including wildcard columns. If a wildcard is used, any undefined columns will adopt the properties of the wildcard column; e.g. data alignment, decimal precision etc.

Display Name

Screenshot

Width (relative)

Relative to the width of the Data Grid. The scale is contingent on the values of each column; for example, columns with a relative width of 20, 10, 5, 1 will scale at a column width of 55% (i.e. 20/(20+10+5+1)), 28%, 14% and 3%.

Relative columns will scale according to the browser size.

screenshot

screenshot

Minimum Width (pixels)

Minimum width in pixels for a column. Columns with this set will scale according to browser size.

Text Align

Horizontal alignment of values within cells

Sortable

When checked, users clicking on a column header will toggle between ascending and descending sort.

Screenshot

Format

Format for column data. If DateTime is selected, then either a Date Format or Time Format must also be selected.

Precision

The number of decimal places to display for numeric data

Hide Trailing Zeroes

When checked, suppresses the display of trailing zeroes

Currency Symbol

Select the currency symbol to be used. The following example shows columns with currency symbol prefixes.

Screenshot

Date and time formats

Where Format is DateTime, >Date and/or >Time specify the display format. Date Format and Time Format combine to format a column of date time data.

Date and  time formats Column with Date and Time formats

Negative Color

Define color for negative values

Highlight Changes

 

When column cell value change these properties control how changes are highlighted.

 

When this is enabled upward changes are highlighted green and/or an up arrow (if Show arrows on Change is set) and down in red and/or down arrow.

Highlight Change Duration

Show arrows on Change

Min Value Color

A color for a border highlight around the lowest value in the column.

screenshot

Max Value Color

A color for a border highlight around the highest value in the column.

screenshot

Range Color

A color to be applied as a value gradient across all cells in a column.

screenshot

Percentage Color

A color to be applied as a mini-bar, where Format is Percentage

screenshot

Tip

View state parameters as colors

A view state parameter can be used for the following properties;Min Color, Max Color, Range Color and Percentage Color.

To assign a View State Parameter, roll over the end of the input bar until Screenshot appears, then click to assign.

Read Only

When checked, the column cannot be edited

Template

Refer to Templates for details.

Hidden

When checked, hides column

screenshot

Selection & Routing

Configure the properties, described in the following table.

Screenshot

Field

Description

Item ID

A View State Parameter of type list; supports multiple item selection in tabs.

Note

New Action Tracer Instance

Ensure view state parameter is assigned.

Alert ID

A View State Parameter of type GUID; populated with selected event content from Alerts dialog.

Screenshot

Note

 

New Action Tracker Instance

Ensure view state parameter is assigned.

Follow Selected Value

Focuses grid selection to ItemID

Action

Refer to Actions for details.

File Export

Configure the properties, described in the following table.

Screenshot

Field

Description

Show Export CSV Button

When checked, this enables export of content as CSV.

Show Export Excel Button

When checked, this enables export of content in Excel format.

Filename

The filename for export of CSV/Excel files.

Filters

This defines which of the Action Tracker data columns (visible and hidden) are available to the user in Search. Values can be mapped to View State Parameters.

Screenshot

Screenshot

Filter

Define the characteristics for each search filter.

Screenshot

Field

Description

Name

The name of the selected Action Tracker data column.

Value

Set value; for example, if using time use "lastTime". Can be linked to a View State Parameter.

Hidden

Filter not available to user.

Filter Type

Sets the input; Text, Dropdown and Data Source.

Screenshot

If using a Data Source remember to assign Value and Text variables for the dropdown selection.

Screenshot

Multi-select

Allows for multiple input selections.

History

Configure the properties, described in the following table. These properties are used to display historical alerts in separate panel.

Screenshot

Field

Description

Show History

When checked, enables historical panel

Row Height

Set the row height

Start Date/End Date

Date range to be applied at startup, use rolling View State Parameter of type Date (e.g. T-1)

Overrides

Filters applied to the main grid are also by default applied to the historical grid. This section helps to override those filters.

Screenshot

Field

Description

Name

Selected Action Tracker data column of filter to override

Value

Set value; for example, keep value empty for "Assignee" to not apply the filter for assignee column (that is used in main grid).

Value can be linked to a View State Parameter ("Tag1"-value can be bound to a list of values selected and set via "Actions" in main grid)

Hidden

Filter override not displayed

Highlight Rules

These properties are used to apply color updates to notify users of changes in grid values, as shown below.

Screenshot

Configure the properties, described in the following table

Screenshot

Field

Description

Name

Name of the rule.

Target

The grid column to which the rule will apply. It can be any column; it does not have to be the Condition Source.

Condition Source/Condition Operator

Data from the Condition Source (a Data Source column) is tested with the Condition Operator against the Condition Value – typically previous value.

The Condition Operator may be a numeric comparison, but can also test for strings in text values.

Color

The cell text color when the Condition rule is true.

Background Color

The cell background color when the Condition rule is true.

Border Color

The cell border-color when the Condition rule is true.

Icon

An icon to appear when rule is true.

Icon Color

The color for the icon (if used) when rule is true.

Action Type Cases

Users can create individual actions, which can be (optionally) associated/linked with other actions to form a case. Action creation requires Case Management in the Basics properties to be enabled. The Case Management UI calls dxATCreateItem with 3 parameters, these are:

  1. The Action Tracker

  2. Action Tracker Parameter Dictionary

  3. Action Tracker Payload Dictionary ( that is, any new columns added to the properties section)

     

    Example:

     

    If the following parameters are specified in the UI: description, sym, alertkey, source, alertClass, tag1, tag2 and tag10, then the dictionary key look like:

    q

    Copy
    `sym`alertkey`source`description`alertClass`tag1`tag2`tag10

Create a Case

  1. Select an Action Type from the dropdown. This is a list of available Action Trackers and is the only required parameter.

    Screenshot

  2. Standard editable actions are: description sym alertkey source alertClass, but these are not required parameters.

  3. Add each supported Action Type for a case. More than one Action Tracker can be added.

    Screenshot

  4. Click Create Action (or the name defined in the Case Button Text property) to add an action.

    Screenshot

  5. Click + to add additional properties to a case. Added properties appear in the case property panel.

Screenshot

Screenshot

New column items are added to dxATAlert.

Screenshot

Tags can be used and renamed in Dashboard Column Properties.

Screenshot

View action (use filters if necessary); it will have it's own unique ID.

Screenshot

An option to link the created action with other actions is available as a tab.

Screenshot

Warning

Linking Actions

Actions can only be linked when Case Management in Basics is enabled, otherwise this panel will be hidden.

When adding a link, select from Link type and Items (Action ID). Available link options are relates to, derives to, is derived from, is dependent to, depends on, is blocked by, blocks, duplicates, is duplicated by

Screenshot

Screenshot

Linked actions can be viewed with a double-click. This also opens a tab for linked actions.

Screenshot

All linking activity is recorded in the Activity tab

Screenshot

Payload

Configure the content and layout of the payload panel. The properties are described in the following table.

Screenshot

Field

Description

Allow Payload Editing

When checked, this allows users to edit the details of the Alert.

Screenshot

Extras Template

This allows you to apply HTML customizations with Handlebar helpers. For example:

HTML

Copy
<div><span>{{payload.breachLevel}}</span><span>{{payload.sym}}</span></div>

Refer to Templates for details on template configuration.

Screenshot

Extras Position

Select from Top, Bottom.

Hidden Properties

Configure the properties to hide (hidden properties remain available in the template).

Tabs

Configure which tabs are active and their order. Supported options are Properties, Activity, Links and one custom/user-defined tab. The first tab on the list is opened by default.

Field

Description

Custom Tab Template

Template for custom tab

Screenshot

Style, Format, Margins

Configure the properties, described in the following table.

Screenshot

Field

Description

Alert Title Template

Enter the HTML templates for Alert Title, Alert Details and Alert Dialog, and Handlebar helpers to map data into the template

Alert Title Templ. (Case)

Specify HTML Templates for Alert Title, Alert Details and Alert Dialog, and Handlebar helpers to map data into the template.

 

The Action Tracker has the following HandleBars helper function:

formatTimeStamps

This finds all kdb timestamps in a given string and converts them to a different format. If the date format parameter is omitted, the default conversion format is YYYY-MM-DD HH:mm:ss.SSSSSSSSS. The resulting value outputs the date and time based on the timezone setting in the Dashboard.

Parameters:

  • string {String}: The string containing kdb timestamps.

  • date format {String}: Optional. The date format used for conversion. Refer to moment for available formats.

Returns {String}: The string containing the converted date formats

Example:

Handlebars

Copy
{{formatTimeStamps "Sample date: 2019.12.31D15:30:11.000000000" "MM-DD-YYYY HH:mm:ss.SS"}}
<!-- results in:  "Sample date: 12-31-2019 15:30:11.00" if timezone is set to UTC --> 
<!-- results in:  "Sample date: 12-31-2019 10:30:11.00" if timezone is set to New York --> 
<!-- results in:  "Sample date: 01-01-2020 00:30:11.00" if timezone is set to Tokyo -->

Alert Details Template

Alert Details Templ. (Case)

Alert Dialog Template

Alert Dialog Templ. (Case)

Custom Comment (default)

The default custom comment.

Case Button Text

This property defines the text displayed on the button used to create an action case, when Case Management is enabled. The default text is Create Action.

Activity Character Limit

Specify character limit in activity logs record.

Screenshot

Refer to Format for common settings and Templates for configuring property panels.

Virus scanning

Files uploaded via the Upload component, and attachments uploaded via the Action Tracker, may be screened for viruses.

For virus scanning to work you need:

  1. ClamAV installed on the appserver box with up-to-date definitions.

  2. Virus scanning enabled in delta.profile as follows.

    bash

    Copy
    DELTAAPPSERVER_VIRUS_SCAN_ENABLED=true
  3. To check the status of virus scanning: Use the following command to check the status of the running Tomcat process. From the output displayed check if DdeltaAppServerVirusScanEnabled is either true or false. bash $ using ps -ef | grep tomcat

    With virus scanning is enabled (set to True), uploaded files are automatically scanned. If they fail the virus check, the upload is aborted and an error is reported on the dashboard.

  4. Restart the appserver to pick up any changes to the above environment variable.

Further Reading