Creating events

Cloudera Data Visualization allows you to create new events in a dataset.

To demonstrate how to create new events, the Campaign dataset is used in this example, based on data previously imported into Data Visualization from a data file.

To create a new event in the dataset Campaign, follow these steps:

  1. On the main navigation bar, click DATA.
    The Data view appears open on the Datasets tab.
  2. Find the dataset in the list of datasets, either by scrolling or by using search, click on it, and select the Campaign dataset.
    Dataset side navigation appears open at Dataset Detail view.
  3. In the side navigation menu, click Events.
    The Events interface appears.
  4. In the Events interface, click New Event.
    The Add Event modal window appears.
  5. In the Add Event modal window, add the following:
    • Under Event Name, enter Start.
    • Under Event Display, enter name.
    • Under Filters, click the text box to open the Filter Expression modal window.

  6. In the The Filter Expression modal window, enter the following expression: name='$session_started'
  7. Click APPLY to save the filter expression and return to the Add Event modal window.

    In the Add Event window modal, you can see that the Filters field contains the specified expression.

  8. Click SAVE.

    The new event definition appears in the Events interface. The following actions are available for this event: Edit, Clone, and Delete.

  9. Repeat the preceding steps to create six additional events for this dataset, as defined in the following table.

    You already created the event in the first row. Alternatively, you can create new events by cloning existing events. For more information, see Cloning Events.

    Table 1. Events of the Campaign dataset
    Event Name Event Display Filters
    Start name name='$session_started'
    All application events name

    name!='$session_started' AND

    name!='$session_ended'

    First app use name name='$first_used_app'
    Not a purchase name name!='$purchase'
    All non-purchase application events name

    name!='$session_started'

    name!='$session_ended'

    name!='$purchase'

    Purchase name name='$purchase'
    End name name='$session_ended'

    When you finish defining all events for the dataset, your list of events should look similar to the following: