1e41f4b71Sopenharmony_ci# hiappevent_event.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciDefines the names of all predefined events.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ciIn addition to custom events associated with specific applications, you can use predefined events for logging.
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ciExample:
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci```
13e41f4b71Sopenharmony_ciParamList list = OH_HiAppEvent_CreateParamList();
14e41f4b71Sopenharmony_ciOH_HiAppEvent_AddInt32Param(list, PARAM_USER_ID, 123);
15e41f4b71Sopenharmony_ciint res = OH_HiAppEvent_Write("user_domain", EVENT_USER_LOGIN, BEHAVIOR, list);
16e41f4b71Sopenharmony_ciOH_HiAppEvent_DestroyParamList(list);
17e41f4b71Sopenharmony_ci```
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci**Since**: 8
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**Related module**: [HiAppEvent](_hi_app_event.md)
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci## Summary
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci### Macros
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci| Name| Description| 
30e41f4b71Sopenharmony_ci| -------- | -------- |
31e41f4b71Sopenharmony_ci| [EVENT_USER_LOGIN](_hi_app_event.md#event_user_login)   "hiappevent.user_login" | User login event. | 
32e41f4b71Sopenharmony_ci| [EVENT_USER_LOGOUT](_hi_app_event.md#event_user_logout)   "hiappevent.user_logout" | User logout event. | 
33e41f4b71Sopenharmony_ci| [EVENT_DISTRIBUTED_SERVICE_START](_hi_app_event.md#event_distributed_service_start)   "hiappevent.distributed_service_start" | Distributed service event. | 
34e41f4b71Sopenharmony_ci| [EVENT_APP_CRASH](_hi_app_event.md#event_app_crash)   "APP_CRASH" | Application crash event. | 
35e41f4b71Sopenharmony_ci| [EVENT_APP_FREEZE](_hi_app_event.md#event_app_freeze)   "APP_FREEZE" | Application freeze event. | 
36e41f4b71Sopenharmony_ci| [EVENT_APP_LAUNCH](_hi_app_event.md#event_app_launch)   "APP_LAUNCH" | Application loading event. | 
37e41f4b71Sopenharmony_ci| [EVENT_SCROLL_JANK](_hi_app_event.md#event_scroll_jank)   "SCROLL_JANK" | Event indicating application freeze during swiping. | 
38e41f4b71Sopenharmony_ci| [EVENT_CPU_USAGE_HIGH](_hi_app_event.md#event_cpu_usage_high)   "CPU_USAGE_HIGH" | Event indicating high CPU usage of an application. | 
39e41f4b71Sopenharmony_ci| [EVENT_BATTERY_USAGE](_hi_app_event.md#event_battery_usage)   "BATTERY_USAGE" | Application power usage event. | 
40e41f4b71Sopenharmony_ci| [EVENT_RESOURCE_OVERLIMIT](_hi_app_event.md#event_resource_overlimit)   "RESOURCE_OVERLIMIT" | Application resource threshold-crossing event. | 
41e41f4b71Sopenharmony_ci| [DOMAIN_OS](_hi_app_event.md#domain_os)   "OS" | OS scope. | 
42