类 AppEventCollector
- java.lang.Object
-
- com.datarangers.collector.Collector
-
- com.datarangers.collector.AppEventCollector
-
- 所有已实现的接口:
EventCollector
public class AppEventCollector extends Collector
- 作者:
- hTangle
-
-
字段概要
-
从类继承的字段 com.datarangers.collector.Collector
collectorContainer, httpRequestPool, logger, properties, scheduled
-
-
构造器概要
构造器 构造器 说明 AppEventCollector(String appType, DataRangersSDKConfigProperties properties)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voiditemSet(int appId, String itemName, List<Item> items)功能描述: 对业务对象进行设置voiditemUnset(int appId, String id, String name, List<String> params)功能描述: 删除item的属性voidprofileAppend(String userUniqueId, int appId, Map<String,Object> eventParams)voidprofileIncrement(String userUniqueId, int appId, Map<String,Object> eventParams)voidprofileSet(String userUniqueId, int appId, Map<String,Object> eventParams)功能描述: 对userUniqueId的用户进行profile属性设置voidprofileSetOnce(String userUniqueId, int appId, Map<String,Object> eventParams)voidprofileUnset(String userUniqueId, int appId, List<String> params)功能描述: 删除用户的属性voidsendEvent(Header header, String eventName, Map<String,Object> eventParams)功能描述: 发送单条事件voidsendEvent(Header header, String eventName, Map<String,Object> eventParams, long localTimeMs)功能描述: 发送单条事件voidsendEvent(Header header, List<String> eventName, List<Map<String,Object>> eventParams)已过时。voidsendEvent(String userUniqueId, int appId, Map<String,Object> custom, String eventName, Map<String,Object> eventParams)功能描述: 异步发送事件voidsendEvent(String userUniqueId, int appId, Map<String,Object> custom, String eventName, Map<String,Object> eventParams, long localTimeMs)功能描述: 异步发送事件voidsendEvents(Header header, List<Event> events)功能描述: 批量发送事件voidsendProfiles(String userUniqueId, int appId, List<ProfileMethod> profileModes, List<Map<String,Object>> profiles)已过时。-
从类继承的方法 com.datarangers.collector.Collector
getAppType, send, sendMessage, setAppType
-
-
-
-
构造器详细资料
-
AppEventCollector
public AppEventCollector(String appType, DataRangersSDKConfigProperties properties)
-
-
方法详细资料
-
sendEvent
public void sendEvent(String userUniqueId, int appId, Map<String,Object> custom, String eventName, Map<String,Object> eventParams)
从接口复制的说明:EventCollector功能描述: 异步发送事件- 参数:
userUniqueId- 用户uuidappId- 应用idcustom- 用户自定义公共参数eventName- 事件名称eventParams- 事件参数
-
sendEvent
public void sendEvent(String userUniqueId, int appId, Map<String,Object> custom, String eventName, Map<String,Object> eventParams, long localTimeMs)
从接口复制的说明:EventCollector功能描述: 异步发送事件- 参数:
userUniqueId- 用户uuidappId- 应用idcustom- 用户自定义公共参数eventName- 事件名称eventParams- 事件参数localTimeMs- 事件发生时间,毫秒
-
sendEvent
public void sendEvent(Header header, String eventName, Map<String,Object> eventParams)
从接口复制的说明:EventCollector功能描述: 发送单条事件- 参数:
header- 事件的公共属性,可以通过调用HeaderV3.Builder().build()构建一个headereventName- 事件名eventParams- 事件参数
-
sendEvent
public void sendEvent(Header header, String eventName, Map<String,Object> eventParams, long localTimeMs)
从接口复制的说明:EventCollector功能描述: 发送单条事件- 参数:
header- 事件的公共属性,可以通过调用HeaderV3.Builder().build()构建一个headereventName- 事件名eventParams- 事件参数localTimeMs- 事件发生时间,毫秒
-
sendEvent
@Deprecated public void sendEvent(Header header, List<String> eventName, List<Map<String,Object>> eventParams)
已过时。从接口复制的说明:EventCollector功能描述: 批量发送事件- 参数:
header- 事件的公共属性,可以通过调用HeaderV3.Builder().build()构建一个headereventName- 事件名数组,需要与eventParams数组长度相同eventParams- 需要设置的用户属性
-
profileSet
public void profileSet(String userUniqueId, int appId, Map<String,Object> eventParams)
从接口复制的说明:EventCollector功能描述: 对userUniqueId的用户进行profile属性设置- 参数:
userUniqueId- 用户idappId- app ideventParams- 需要设置的用户属性
-
profileSetOnce
public void profileSetOnce(String userUniqueId, int appId, Map<String,Object> eventParams)
-
profileIncrement
public void profileIncrement(String userUniqueId, int appId, Map<String,Object> eventParams)
-
profileUnset
public void profileUnset(String userUniqueId, int appId, List<String> params)
从接口复制的说明:EventCollector功能描述: 删除用户的属性- 参数:
userUniqueId- uuidappId- app idparams- 需要删除的用户属性名
-
profileAppend
public void profileAppend(String userUniqueId, int appId, Map<String,Object> eventParams)
-
itemSet
public void itemSet(int appId, String itemName, List<Item> items)从接口复制的说明:EventCollector功能描述: 对业务对象进行设置- 参数:
appId- app iditemName- 业务对象的名称items- 业务对象的类,需要继承Items类,注意必须带上item_name
-
itemUnset
public void itemUnset(int appId, String id, String name, List<String> params)从接口复制的说明:EventCollector功能描述: 删除item的属性- 参数:
appId- app idid- 业务对象的编号name- 业务对象的名称params- 需要删除的item属性
-
sendProfiles
@Deprecated public void sendProfiles(String userUniqueId, int appId, List<ProfileMethod> profileModes, List<Map<String,Object>> profiles)
已过时。
-
sendEvents
public void sendEvents(Header header, List<Event> events)
从接口复制的说明:EventCollector功能描述: 批量发送事件- 参数:
header- 事件的公共属性,可以通过调用HeaderV3.Builder().build()构建一个headerevents- 事件数组 不推荐自己构建事件数组,我们推荐使用EventsBuilder这个类对多事件进行构造,调用build方法生成事件数组
-
-