About this task
Smart data collector supports dynamic map request data for
visit and behavior. Users can collect extension data besides the basic
collected data. For example, when user executes the transfer transaction, you can configure the basic behavior
data, including
userId,
behavior type,
service
name,
behavior time. By the dynamic
map, you can collect more detailed data about the transfer transaction,
such as
accountFrom,
accountTo,
amount. Refer to the general steps in
Server collector,
and configure the map data as following codes:
<SmartCollectorConfig4Transaction
transactionID="accountTransferOp"
sampleRateRuleServiceName="transferDataCollectorRuleService"
actionType="behavior">
<map Injection="dataMap">
<entry key="acctFrom" value="accountNumber"></entry>
<entry key="amount" value="amount"></entry>
</map> </SmartCollectorConfig4Transaction>