153c3577eSopenharmony_ci#  Copyright (c) 2022 Huawei Device Co., Ltd.
253c3577eSopenharmony_ci#  Licensed under the Apache License, Version 2.0 (the "License");
353c3577eSopenharmony_ci#  you may not use this file except in compliance with the License.
453c3577eSopenharmony_ci#  You may obtain a copy of the License at
553c3577eSopenharmony_ci#
653c3577eSopenharmony_ci#      http://www.apache.org/licenses/LICENSE-2.0
753c3577eSopenharmony_ci#
853c3577eSopenharmony_ci#  Unless required by applicable law or agreed to in writing, software
953c3577eSopenharmony_ci#  distributed under the License is distributed on an "AS IS" BASIS,
1053c3577eSopenharmony_ci#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1153c3577eSopenharmony_ci#  See the License for the specific language governing permissions and
1253c3577eSopenharmony_ci#  limitations under the License.
1353c3577eSopenharmony_ci
1453c3577eSopenharmony_ci#####################################################
1553c3577eSopenharmony_ci#     below is the format of defining event         #
1653c3577eSopenharmony_ci#####################################################
1753c3577eSopenharmony_ci#domain: domain name.  [Only one domain name can be defined at the top]
1853c3577eSopenharmony_ci#
1953c3577eSopenharmony_ci#author: the author name who defined this event.
2053c3577eSopenharmony_ci#date: the date when this event was defined, format is YYYY-MM-DD.
2153c3577eSopenharmony_ci#logged: source file which refer to this event.
2253c3577eSopenharmony_ci#usage: the usage of this event.
2353c3577eSopenharmony_ci#//Define event name and event properties.
2453c3577eSopenharmony_ci#@EVENT_NAME: the event definition part begin.
2553c3577eSopenharmony_ci#  // __BASE is used for defining the basic info of the event.
2653c3577eSopenharmony_ci#  // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR.
2753c3577eSopenharmony_ci#  // "level" optional values are: CRITICAL, MINOR.
2853c3577eSopenharmony_ci#  // "tag" set tags with may used by subscriber of this event, multiple tags devided by space.
2953c3577eSopenharmony_ci#  // "desc" full description of this event.
3053c3577eSopenharmony_ci#  @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}.
3153c3577eSopenharmony_ci#  // follow the __BASE block, each line defines a parameter of this event.
3253c3577eSopenharmony_ci#  // "type" optional values are: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, STRING.
3353c3577eSopenharmony_ci#  // "arrsize" of the parameter is an array, set a non-zero value.
3453c3577eSopenharmony_ci#  // "desc" full description of this parameter.
3553c3577eSopenharmony_ci
3653c3577eSopenharmony_ci#####################################################
3753c3577eSopenharmony_ci#   Example of some hiviewdfx events definition     #
3853c3577eSopenharmony_ci#####################################################
3953c3577eSopenharmony_ci
4053c3577eSopenharmony_cidomain: DISTDATAMGR
4153c3577eSopenharmony_ci
4253c3577eSopenharmony_ciDATABASE_FAULT:
4353c3577eSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault }
4453c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
4553c3577eSopenharmony_ci  STORE_ID: {type: STRING, desc: store id }
4653c3577eSopenharmony_ci  MODULE_NAME: {type: STRING, desc: module name }
4753c3577eSopenharmony_ci  ERROR_TYPE: {type: INT32, desc: fault type }
4853c3577eSopenharmony_ci
4953c3577eSopenharmony_ciDATABASE_SYNC_FAILED:
5053c3577eSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault }
5153c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
5253c3577eSopenharmony_ci  STORE_ID: {type: STRING, desc: store id }
5353c3577eSopenharmony_ci  MODULE_NAME: {type: STRING, desc: module name }
5453c3577eSopenharmony_ci  ERROR_TYPE: {type: INT32, desc: fault type }
5553c3577eSopenharmony_ci
5653c3577eSopenharmony_ciDATABASE_CORRUPTED_FAILED:
5753c3577eSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault }
5853c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
5953c3577eSopenharmony_ci  STORE_ID: {type: STRING, desc: store id }
6053c3577eSopenharmony_ci  MODULE_NAME: {type: STRING, desc: module name }
6153c3577eSopenharmony_ci  ERROR_TYPE: {type: INT32, desc: fault type }
6253c3577eSopenharmony_ci
6353c3577eSopenharmony_ciDATABASE_REKEY_FAILED:
6453c3577eSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault }
6553c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
6653c3577eSopenharmony_ci  STORE_ID: {type: STRING, desc: store id }
6753c3577eSopenharmony_ci  MODULE_NAME: {type: STRING, desc: module name }
6853c3577eSopenharmony_ci  ERROR_TYPE: {type: INT32, desc: fault type }
6953c3577eSopenharmony_ci
7053c3577eSopenharmony_ciCOMMUNICATION_FAULT:
7153c3577eSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: The event is communication fault }
7253c3577eSopenharmony_ci  ANONYMOUS_UID: {type: STRING, desc: uid with anonymous }
7353c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
7453c3577eSopenharmony_ci  STORE_ID: {type: STRING, desc: store id }
7553c3577eSopenharmony_ci  SYNC_ERROR_INFO: {type: STRING, desc: error info include deviceid and error code}
7653c3577eSopenharmony_ci
7753c3577eSopenharmony_ciVISIT_STATISTIC:
7853c3577eSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: The event is api visit statistic }
7953c3577eSopenharmony_ci  TAG: {type: STRING, desc: tag which value is PowerStats }
8053c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
8153c3577eSopenharmony_ci  INTERFACE_NAME: {type: STRING, desc: interface name }
8253c3577eSopenharmony_ci  TIMES: {type: INT32, desc: interface visit time at one hour }
8353c3577eSopenharmony_ci
8453c3577eSopenharmony_ciTRAFFIC_STATISTIC:
8553c3577eSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: The event is api visit statistic }
8653c3577eSopenharmony_ci  TAG: {type: STRING, desc: tag which value is PowerStats }
8753c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
8853c3577eSopenharmony_ci  ANONYMOUS_DID: {type: STRING, desc: decice id with anonymous }
8953c3577eSopenharmony_ci  SEND_SIZE: {type: INT32, desc: send date size at one hour }
9053c3577eSopenharmony_ci  RECEIVED_SIZE: {type: INT32, desc: received date size at one hour }
9153c3577eSopenharmony_ci
9253c3577eSopenharmony_ciAPI_PERFORMANCE_STATISTIC:
9353c3577eSopenharmony_ci  __BASE: {type: STATISTIC, level: MINOR, desc: The event is api visit statistic }
9453c3577eSopenharmony_ci  INTERFACES: {type: STRING, desc: api performanace of one day }
9553c3577eSopenharmony_ci
9653c3577eSopenharmony_ciDATABASE_BEHAVIOUR:
9753c3577eSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is behaviour record }
9853c3577eSopenharmony_ci  ANONYMOUS_UID: {type: STRING, desc: uid with anonymous }
9953c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
10053c3577eSopenharmony_ci  STORE_ID: {type: STRING, desc: store id }
10153c3577eSopenharmony_ci  BEHAVIOUR_INFO: {type: STRING, desc: behaviour type and behaviour resulte }
10253c3577eSopenharmony_ci
10353c3577eSopenharmony_ciUDMF_DATA_BEHAVIOR:
10453c3577eSopenharmony_ci  __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is behaviour record }
10553c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
10653c3577eSopenharmony_ci  CHANNEL: {type: STRING, desc: channel name }
10753c3577eSopenharmony_ci  DATA_SIZE: {type: INT64, desc: data size }
10853c3577eSopenharmony_ci  DATA_TYPE: {type: STRING, desc: data type }
10953c3577eSopenharmony_ci  OPERATION: {type: STRING, desc: data operation }
11053c3577eSopenharmony_ci  RESULT: {type: STRING, desc: data operation result }
11153c3577eSopenharmony_ci
11253c3577eSopenharmony_ciOPEN_DATABASE_FAILED:
11353c3577eSopenharmony_ci  __BASE: {type: FAULT, level: CRITICAL, desc: The database open failed}
11453c3577eSopenharmony_ci  APP_ID: {type: STRING, desc: app id }
11553c3577eSopenharmony_ci  STORE_ID: {type: STRING, desc: store id }
11653c3577eSopenharmony_ci  ERROR_CODE: {type: STRING, desc: error code}