1# hiappevent_param.h 2 3 4## Overview 5 6Defines the names of all predefined event parameters. 7 8In addition to custom events associated with specific applications, you can use predefined events for logging. 9 10Example: 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**File to include**: <hiappevent/hiappevent_param.h> 20 21**Since**: 8 22 23**Related module**: [HiAppEvent](_hi_app_event.md) 24 25 26## Summary 27 28 29### Macros 30 31| Name| Description| 32| -------- | -------- | 33| [PARAM_USER_ID](_hi_app_event.md#param_user_id) "user_id" | User ID.| 34| [PARAM_DISTRIBUTED_SERVICE_NAME](_hi_app_event.md#param_distributed_service_name) "ds_name" | Distributed service name.| 35| [PARAM_DISTRIBUTED_SERVICE_INSTANCE_ID](_hi_app_event.md#param_distributed_service_instance_id) "ds_instance_id" | Distributed service instance ID.| 36