Содержание
For various kinds of analysis, business insights, technical insights, cohort analysis, etc. it is important to analyze and "Tag" the streaming data. Downstream processing can then take advantage of these tags for immediate action or down the road insights.
In this tutorial, you'll learn to:
- Create a tag rule without writing code
Creating a rule
-
Create New Flow
-
Set a Description for the rule and a tag to describe the rule. This will be additional metadata being added to rows of the input table DataXProcessInput.
-
In conditions, select the column of data to monitor and set the condition to measure against. i.e. select 'temperature' in the column, select '>' and 60. This would trigger the rule when the temperature value is above 60.
-
In the Query tab, call ProcessRules() API and route the data to your desired output sink:
--DataXQuery--
T1 = ProcessRules(DataXProcessedInput);
OUTPUT T1 TO myOutput;
- Click Deploy
T1 will now contain the DataXProcessedInput data, along with tags from the rules set in this Flow.
View the data
You can view the tagged data flowing in the location as defined in the previous tutorial.