1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14##################################################### 15# below is the format of defining event # 16##################################################### 17#domain: domain name. [Only one domain name can be defined at the top] 18# 19#author: the author name who defined this event. 20#date: the date when this event was defined, format is YYYY-MM-DD. 21#logged: source file which refer to this event. 22#usage: the usage of this event. 23#//Define event name and event properties. 24#@EVENT_NAME: the event definition part begin. 25# // __BASE is used for defining the basic info of the event. 26# // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR. 27# // "level" optional values are: CRITICAL, MINOR. 28# // "tag" set tags with may used by subscriber of this event, multiple tags devided by space. 29# // "desc" full description of this event. 30# @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}. 31# // follow the __BASE block, each line defines a parameter of this event. 32# // "type" optional values are: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, STRING. 33# // "arrsize" of the parameter is an array, set a non-zero value. 34# // "desc" full description of this parameter. 35 36##################################################### 37# Example of some hiviewdfx events definition # 38##################################################### 39 40domain: DISTDATAMGR 41 42DATABASE_FAULT: 43 __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault } 44 APP_ID: {type: STRING, desc: app id } 45 STORE_ID: {type: STRING, desc: store id } 46 MODULE_NAME: {type: STRING, desc: module name } 47 ERROR_TYPE: {type: INT32, desc: fault type } 48 49DATABASE_SYNC_FAILED: 50 __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault } 51 APP_ID: {type: STRING, desc: app id } 52 STORE_ID: {type: STRING, desc: store id } 53 MODULE_NAME: {type: STRING, desc: module name } 54 ERROR_TYPE: {type: INT32, desc: fault type } 55 56DATABASE_CORRUPTED_FAILED: 57 __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault } 58 APP_ID: {type: STRING, desc: app id } 59 STORE_ID: {type: STRING, desc: store id } 60 MODULE_NAME: {type: STRING, desc: module name } 61 ERROR_TYPE: {type: INT32, desc: fault type } 62 63DATABASE_REKEY_FAILED: 64 __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault } 65 APP_ID: {type: STRING, desc: app id } 66 STORE_ID: {type: STRING, desc: store id } 67 MODULE_NAME: {type: STRING, desc: module name } 68 ERROR_TYPE: {type: INT32, desc: fault type } 69 70COMMUNICATION_FAULT: 71 __BASE: {type: FAULT, level: CRITICAL, desc: The event is communication fault } 72 ANONYMOUS_UID: {type: STRING, desc: uid with anonymous } 73 APP_ID: {type: STRING, desc: app id } 74 STORE_ID: {type: STRING, desc: store id } 75 SYNC_ERROR_INFO: {type: STRING, desc: error info include deviceid and error code} 76 77VISIT_STATISTIC: 78 __BASE: {type: STATISTIC, level: MINOR, desc: The event is api visit statistic } 79 TAG: {type: STRING, desc: tag which value is PowerStats } 80 APP_ID: {type: STRING, desc: app id } 81 INTERFACE_NAME: {type: STRING, desc: interface name } 82 TIMES: {type: INT32, desc: interface visit time at one hour } 83 84TRAFFIC_STATISTIC: 85 __BASE: {type: STATISTIC, level: MINOR, desc: The event is api visit statistic } 86 TAG: {type: STRING, desc: tag which value is PowerStats } 87 APP_ID: {type: STRING, desc: app id } 88 ANONYMOUS_DID: {type: STRING, desc: decice id with anonymous } 89 SEND_SIZE: {type: INT32, desc: send date size at one hour } 90 RECEIVED_SIZE: {type: INT32, desc: received date size at one hour } 91 92API_PERFORMANCE_STATISTIC: 93 __BASE: {type: STATISTIC, level: MINOR, desc: The event is api visit statistic } 94 INTERFACES: {type: STRING, desc: api performanace of one day } 95 96DATABASE_BEHAVIOUR: 97 __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is behaviour record } 98 ANONYMOUS_UID: {type: STRING, desc: uid with anonymous } 99 APP_ID: {type: STRING, desc: app id } 100 STORE_ID: {type: STRING, desc: store id } 101 BEHAVIOUR_INFO: {type: STRING, desc: behaviour type and behaviour resulte } 102 103UDMF_DATA_BEHAVIOR: 104 __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is behaviour record } 105 APP_ID: {type: STRING, desc: app id } 106 CHANNEL: {type: STRING, desc: channel name } 107 DATA_SIZE: {type: INT64, desc: data size } 108 DATA_TYPE: {type: STRING, desc: data type } 109 OPERATION: {type: STRING, desc: data operation } 110 RESULT: {type: STRING, desc: data operation result } 111 112OPEN_DATABASE_FAILED: 113 __BASE: {type: FAULT, level: CRITICAL, desc: The database open failed} 114 APP_ID: {type: STRING, desc: app id } 115 STORE_ID: {type: STRING, desc: store id } 116 ERROR_CODE: {type: STRING, desc: error code}