Events are operations that occur at a specific point in time within an application and are considered both independent and meaningful. Examples of user behavior events include clicking a button, logging on, browsing, and completing transactions. This topic provides guidance on how to add events.
Prerequisites
Before you can create an event, you must first establish the necessary properties for its construction. For more information, see Create and manage event properties.
Before creating an event, it is necessary to establish the corresponding event category. For more information, see Create and manage event categories.
Create an event
Select Tag > Event Center from the top menu bar on the Dataphin home page.
In the left-side navigation pane, choose Event Center > Event Management.
On the Event Management page, click Add Event.
On the Create Event page, fill in the Basic Information and set up the Meta Table Structure And Property Mapping for the event.
Basic Information
Parameter
Description
Event Name
Input the event name. Acceptable characters include Chinese, English, numbers, and underscores (_), up to 64 characters.
Event Code
Enter the unique identity for the event, using Chinese, English, numbers, and underscores (_), up to 64 characters.
Owner
Choose the owner who will manage the event.
Data Source
Select the data source for the event. Options include DataHub and Kafka.
Source Table
Provide the name of the source table associated with the event.
Category
Choose the event category to which this event will be assigned.
Event Format
For Kafka data sources, select the event format. Options include CSV and JSON.
Description
Provide a brief description of the event, up to 1000 characters.
Meta Table Structure and Property Mapping
Select the properties to include in the event and click Add to the right to construct the meta table structure and map properties. For properties of type Long Integer, you can specify if it is a Time Series Field. A time series field is a database field that stores time series data, often used for recording timestamps or datetime information.
Click Publish to finalize the creation of the event.
Manage events
On the event management page, the event category list on the left shows the created event categories and their event counts. Click a category name to view all events within it. Events are listed with details such as Event Name, Owner, Status, Created At, Description, and available Actions.
(Optional) Filter events by selecting Owner, Status, entering Event Name or Code, or by choosing Only My Events to display events managed by the current user.
In the actions column of the event list, you can perform the following:
Action Item
Description
View
Click the
icon to view details of the event.Edit
To edit the current event information, click the
icon. Note that changes to Event Code, Datasource, Source Table, and Event Format are not permitted. Events with a Published status are view-only and cannot be altered.Unpublish
To unpublish events that are in the Published status, click the
icon labeled 'unpublish'.Delete
To remove the current event properties, click the
delete icon. Events with a Published status cannot be deleted.
What to do next
After creating and publishing the event, you can use it as a reference when building a real-time dataset. For more information, see Create and configure a real-time dataset.