1# hiappevent_event.h
2
3
4## Overview
5
6Defines the names of all predefined events.
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_event.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| [EVENT_USER_LOGIN](_hi_app_event.md#event_user_login)   "hiappevent.user_login" | User login event. |
34| [EVENT_USER_LOGOUT](_hi_app_event.md#event_user_logout)   "hiappevent.user_logout" | User logout event. |
35| [EVENT_DISTRIBUTED_SERVICE_START](_hi_app_event.md#event_distributed_service_start)   "hiappevent.distributed_service_start" | Distributed service event. |
36| [EVENT_APP_CRASH](_hi_app_event.md#event_app_crash)   "APP_CRASH" | Application crash event. |
37| [EVENT_APP_FREEZE](_hi_app_event.md#event_app_freeze)   "APP_FREEZE" | Application freeze event. |
38| [EVENT_APP_LAUNCH](_hi_app_event.md#event_app_launch)   "APP_LAUNCH" | Application loading event. |
39| [EVENT_SCROLL_JANK](_hi_app_event.md#event_scroll_jank)   "SCROLL_JANK" | Event indicating application freeze during swiping. |
40| [EVENT_CPU_USAGE_HIGH](_hi_app_event.md#event_cpu_usage_high)   "CPU_USAGE_HIGH" | Event indicating high CPU usage of an application. |
41| [EVENT_BATTERY_USAGE](_hi_app_event.md#event_battery_usage)   "BATTERY_USAGE" | Application power usage event. |
42| [EVENT_RESOURCE_OVERLIMIT](_hi_app_event.md#event_resource_overlimit)   "RESOURCE_OVERLIMIT" | Application resource threshold-crossing event. |
43| [DOMAIN_OS](_hi_app_event.md#domain_os)   "OS" | OS scope. |
44