接口 EventCollector
-
- 所有已知实现类:
AppEventCollector,Collector
public interface EventCollector- 作者:
- hTangle
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 voiditemSet(int appId, String name, 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)已过时。
-
-
-
方法详细资料
-
sendEvent
void sendEvent(String userUniqueId, int appId, Map<String,Object> custom, String eventName, Map<String,Object> eventParams)
功能描述: 异步发送事件- 参数:
appId- 应用idcustom- 用户自定义公共参数eventName- 事件名称eventParams- 事件参数userUniqueId- 用户uuid
-
sendEvent
void sendEvent(String userUniqueId, int appId, Map<String,Object> custom, String eventName, Map<String,Object> eventParams, long localTimeMs)
功能描述: 异步发送事件- 参数:
appId- 应用idcustom- 用户自定义公共参数eventName- 事件名称eventParams- 事件参数userUniqueId- 用户uuidlocalTimeMs- 事件发生时间,毫秒
-
sendEvents
void sendEvents(Header header, List<Event> events)
功能描述: 批量发送事件- 参数:
header- 事件的公共属性,可以通过调用HeaderV3.Builder().build()构建一个headerevents- 事件数组 不推荐自己构建事件数组,我们推荐使用EventsBuilder这个类对多事件进行构造,调用build方法生成事件数组
-
sendEvent
void sendEvent(Header header, String eventName, Map<String,Object> eventParams)
功能描述: 发送单条事件- 参数:
header- 事件的公共属性,可以通过调用HeaderV3.Builder().build()构建一个headereventName- 事件名eventParams- 事件参数
-
sendEvent
void sendEvent(Header header, String eventName, Map<String,Object> eventParams, long localTimeMs)
功能描述: 发送单条事件- 参数:
header- 事件的公共属性,可以通过调用HeaderV3.Builder().build()构建一个headereventName- 事件名eventParams- 事件参数localTimeMs- 事件发生时间,毫秒
-
sendEvent
@Deprecated void sendEvent(Header header, List<String> eventName, List<Map<String,Object>> eventParams)
已过时。功能描述: 批量发送事件- 参数:
header- 事件的公共属性,可以通过调用HeaderV3.Builder().build()构建一个headereventName- 事件名数组,需要与eventParams数组长度相同eventParams- 需要设置的用户属性
-
profileSet
void profileSet(String userUniqueId, int appId, Map<String,Object> eventParams)
功能描述: 对userUniqueId的用户进行profile属性设置- 参数:
userUniqueId- 用户idappId- app ideventParams- 需要设置的用户属性
-
profileSetOnce
void profileSetOnce(String userUniqueId, int appId, Map<String,Object> eventParams)
-
profileIncrement
void profileIncrement(String userUniqueId, int appId, Map<String,Object> eventParams)
-
profileUnset
void profileUnset(String userUniqueId, int appId, List<String> params)
功能描述: 删除用户的属性- 参数:
appId- app iduserUniqueId- uuidparams- 需要删除的用户属性名
-
itemSet
void itemSet(int appId, String name, List<Item> items)功能描述: 对业务对象进行设置- 参数:
appId- app idname- 业务对象的名称items- 业务对象的类,需要继承Items类,注意必须带上item_name
-
itemUnset
void itemUnset(int appId, String id, String name, List<String> params)功能描述: 删除item的属性- 参数:
appId- app idid- 业务对象的编号name- 业务对象的名称params- 需要删除的item属性
-
sendProfiles
@Deprecated void sendProfiles(String userUniqueId, int appId, List<ProfileMethod> profileModes, List<Map<String,Object>> profiles)
已过时。
-
-