Define and manage event categories in your Data Catalog project using YAML configuration files.
Available Plans
free
starter
growth
enterprise
4 minute read
Event categories help you organize and classify events in your RudderStack Data Catalog based on business context, functionality, or any other logical classification system. This guide shows you how to define event categories and associate them with events using YAML configuration files.
Overview
In the RudderStack dashboard, you can use the Data Catalog to:
Define custom categories for your events
Assign predefined categories to your events
You can also use Rudder CLI to define event categories as YAML configuration files in your Data Catalog project and reference them in your event definitions.
Define event categories
Using your preferred text editor, create a YAML file in your Data Catalog project and add the below content:
Basic structure
You can define event categories in YAML files with the kind: categories specification.See Data Catalog YAML Reference for the detailed YAML spec containing event definitions.
Updates existing categories if you’ve modified them
Associates events with their specified categories
Reports the status of each operation
Requires confirmation before making changes (unless you use --confirm=false)
Categories are applied alongside other Data Catalog resources. When you deploy, both your categories and the events that reference them will be updated in your workspace.
See the End-to-end Walkthrough for steps on validating and deploying event categories along with other Data Catalog resources.
Limitations
The current Rudder CLI implementation of event categories has the following limitations:
Event-only support: Categories can only be assigned to events. Other Data Catalog assets like properties or custom types do not support categories in this version.
Single category per event: Each event can be assigned to only one category. Multiple categories per event are not supported.
No duplicate categories: You cannot create duplicate categories with the same name, regardless of whether they are defined within the same configuration file or across different configuration files.
Next steps
Create events and reference the event categories in them
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.