10 Local Tutorial Tag Rules output to local file
Dinesh Chandnani редактировал(а) эту страницу 2019-04-15 17:43:00 -07:00

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

  • Go to Rules tab, and click Add a "Tag Rule".
    Add Rule

  • 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. Add Rule Warm

  • In the Query tab, call ProcessRules() API and route the data to your desired output sink:

	--DataXQuery--
	T1 = ProcessRules(DataXProcessedInput);

        OUTPUT T1 TO myOutput;

Rules Query

  • 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.

Other Links