1ce968135Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 2ce968135Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3ce968135Sopenharmony_ci# you may not use this file except in compliance with the License. 4ce968135Sopenharmony_ci# You may obtain a copy of the License at 5ce968135Sopenharmony_ci# 6ce968135Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7ce968135Sopenharmony_ci# 8ce968135Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9ce968135Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10ce968135Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11ce968135Sopenharmony_ci# See the License for the specific language governing permissions and 12ce968135Sopenharmony_ci# limitations under the License. 13ce968135Sopenharmony_ci 14ce968135Sopenharmony_ci##################################################### 15ce968135Sopenharmony_ci# below is the format of defining event # 16ce968135Sopenharmony_ci##################################################### 17ce968135Sopenharmony_ci#domain: domain name. [Only one domain name can be defined at the top] 18ce968135Sopenharmony_ci# 19ce968135Sopenharmony_ci#author: the author name who defined this event. 20ce968135Sopenharmony_ci#date: the date when this event was defined, format is YYYY-MM-DD. 21ce968135Sopenharmony_ci#logged: source file which refer to this event. 22ce968135Sopenharmony_ci#usage: the usage of this event. 23ce968135Sopenharmony_ci#//Define event name and event properties. 24ce968135Sopenharmony_ci#@EVENT_NAME: the event definition part begin. 25ce968135Sopenharmony_ci# // __BASE is used for defining the basic info of the event. 26ce968135Sopenharmony_ci# // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR. 27ce968135Sopenharmony_ci# // "level" optional values are: CRITICAL, MINOR. 28ce968135Sopenharmony_ci# // "tag" set tags with may used by subscriber of this event, multiple tags divided by space. 29ce968135Sopenharmony_ci# // "desc" full description of this event. 30ce968135Sopenharmony_ci# @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}. 31ce968135Sopenharmony_ci# // follow the __BASE block, each line defines a parameter of this event. 32ce968135Sopenharmony_ci# // "type" optional values are: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, STRING. 33ce968135Sopenharmony_ci# // "arrsize" of the parameter is an array, set a non-zero value. 34ce968135Sopenharmony_ci# // "desc" full description of this parameter. 35ce968135Sopenharmony_ci 36ce968135Sopenharmony_ci##################################################### 37ce968135Sopenharmony_ci# Example of some hiviewdfx events definition # 38ce968135Sopenharmony_ci##################################################### 39ce968135Sopenharmony_ci 40ce968135Sopenharmony_cidomain: THEME 41ce968135Sopenharmony_ci 42ce968135Sopenharmony_ciSERVICE_FAULT: 43ce968135Sopenharmony_ci __BASE: {type: FAULT, level: CRITICAL, desc: The event is service fault } 44ce968135Sopenharmony_ci FAULT_TYPE: {type: INT32, desc: fault id } 45ce968135Sopenharmony_ci MODULE_NAME: {type: STRING, desc: module name } 46ce968135Sopenharmony_ci ERROR_TYPE: {type: INT32, desc: error type } 47ce968135Sopenharmony_ci 48ce968135Sopenharmony_ciRUNTIME_FAULT: 49ce968135Sopenharmony_ci __BASE: {type: FAULT, level: CRITICAL, desc: The event is runtime fault } 50ce968135Sopenharmony_ci FAULT_TYPE: {type: INT32, desc: fault id } 51ce968135Sopenharmony_ci ERROR_TYPE: {type: INT32, desc: error type } 52