1# hiappevent_param.h
2
3
4## 概述
5
6定义所有预定义事件的参数名称。
7
8除了与特定应用关联的自定义事件之外,您还可以使用预定义事件进行打点。
9
10示例代码:
11
12```
13ParamList list = OH_HiAppEvent_CreateParamList();
14OH_HiAppEvent_AddInt32Param(list, PARAM_USER_ID, 123);
15int res = OH_HiAppEvent_Write("user_domain", EVENT_USER_LOGIN, BEHAVIOR, list);
16OH_HiAppEvent_DestroyParamList(list);
17```
18
19**引用文件:** <hiappevent/hiappevent_param.h>
20
21**起始版本:** 8
22
23**相关模块:**[HiAppEvent](_hi_app_event.md)
24
25
26## 汇总
27
28
29### 宏定义
30
31| 名称 | 描述 |
32| -------- | -------- |
33| [PARAM_USER_ID](_hi_app_event.md#param_user_id)   "user_id" | 用户ID。 |
34| [PARAM_DISTRIBUTED_SERVICE_NAME](_hi_app_event.md#param_distributed_service_name)   "ds_name" | 分布式服务名称。 |
35| [PARAM_DISTRIBUTED_SERVICE_INSTANCE_ID](_hi_app_event.md#param_distributed_service_instance_id)   "ds_instance_id" | 分布式服务实例ID。 |
36