harmony 鸿蒙hiappevent_param.h

  • 2025-06-12
  • 浏览 (4)

hiappevent_param.h

Overview

Defines the names of all predefined event parameters.

In addition to custom events associated with specific applications, you can use predefined events for logging.

Example:

ParamList list = OH_HiAppEvent_CreateParamList();
OH_HiAppEvent_AddInt32Param(list, PARAM_USER_ID, 123);
int res = OH_HiAppEvent_Write("user_domain", EVENT_USER_LOGIN, BEHAVIOR, list);
OH_HiAppEvent_DestroyParamList(list);

File to include:

Library: libhiappevent_ndk.z.so

System capability: SystemCapability.HiviewDFX.HiAppEvent

Since: 8

Related module: HiAppEvent

Summary

Macros

Name Description
PARAM_USER_ID   “user_id” User ID.
PARAM_DISTRIBUTED_SERVICE_NAME   “ds_name” Distributed service name.
PARAM_DISTRIBUTED_SERVICE_INSTANCE_ID   “ds_instance_id” Distributed service instance ID.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Performance Analysis Kit

harmony 鸿蒙Performance Analysis Kit

harmony 鸿蒙HiAppEvent

harmony 鸿蒙HiAppEvent_AppEventGroup

harmony 鸿蒙HiAppEvent_AppEventInfo

harmony 鸿蒙HiCollie

harmony 鸿蒙HiCollie_DetectionParam

harmony 鸿蒙HiCollie_SetTimerParam

harmony 鸿蒙HiDebug

harmony 鸿蒙HiDebug_MemoryLimit

0  赞