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: DISTINPUT 41 42DINPUT_INIT: 43 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dinput sa init} 44 MSG: {type: STRING, desc: dinput sa init info} 45 46DINPUT_REGISTER: 47 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dinput register dhardware} 48 DEVID: {type: STRING, desc: network id} 49 DHID: {type: STRING, desc: hardware id} 50 MSG: {type: STRING, desc: dinput register dhardware info} 51 52DINPUT_PREPARE: 53 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dinput prepare start} 54 DEVID: {type: STRING, desc: network id} 55 MSG: {type: STRING, desc: dinput prepare start info} 56 57DINPUT_START_USE: 58 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dinput start use} 59 DEVID: {type: STRING, desc: network id} 60 MSG: {type: STRING, desc: dinput start info} 61 62DINPUT_STOP_USE: 63 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dinput stop use} 64 DEVID: {type: STRING, desc: network id} 65 MSG: {type: STRING, desc: dinput stop info} 66 67DINPUT_UNPREPARE: 68 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dinput unprepare} 69 DEVID: {type: STRING, desc: network id} 70 MSG: {type: STRING, desc: dinput unprepare info} 71 72DINPUT_UNREGISTER: 73 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dinput unregister} 74 DEVID: {type: STRING, desc: network id} 75 DHID: {type: STRING, desc: hardware id} 76 MSG: {type: STRING, desc: dinput unregister info} 77 78DINPUT_EXIT: 79 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dinput server exit} 80 MSG: {type: STRING, desc: dinput server exit info} 81 82DINPUT_INIT_FAIL: 83 __BASE: {type: FAULT, level: CRITICAL, desc: dinput sa start fail occured} 84 ERROR_CODE: {type: INT32, desc: the return error code} 85 MSG: {type: STRING, desc: dinput sa start fail info} 86 87DINPUT_REGISTER_FAIL: 88 __BASE: {type: FAULT, level: CRITICAL, desc: dinput register fail occured} 89 DEVID: {type: STRING, desc: network id} 90 DHID: {type: STRING, desc: hardware id} 91 ERROR_CODE: {type: INT32, desc: the return error code} 92 MSG: {type: STRING, desc: dinput register fail info} 93 94DINPUT_OPT_FAIL: 95 __BASE: {type: FAULT, level: CRITICAL, desc: dinput operate fail occured} 96 DEVID: {type: STRING, desc: network id} 97 ERROR_CODE: {type: INT32, desc: the return error code} 98 MSG: {type: STRING, desc: dinput operate fail info} 99 100DINPUT_UNREGISTER_FAIL: 101 __BASE: {type: FAULT, level: CRITICAL, desc: dinput unregister fail occured} 102 DEVID: {type: STRING, desc: network id} 103 DHID: {type: STRING, desc: hardware id} 104 ERROR_CODE: {type: INT32, desc: the return error code} 105 MSG: {type: STRING, desc: dinput unregister fail info} 106