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: DISTAUDIO 41 42DAUDIO_INIT: 43 __BASE: {type: BEHAVIOR, level: MINOR, desc: daudio init sa event} 44 SAID: {type: INT32, desc: daudio SAID} 45 MSG: {type: STRING, desc: daudio init sa event} 46 47DAUDIO_EXIT: 48 __BASE: {type: BEHAVIOR, level: MINOR, desc: daudio release sa event} 49 SAID: {type: INT32, desc: daudio SAID} 50 MSG: {type: STRING, desc: daudio release sa event} 51 52DAUIDO_REGISTER: 53 __BASE: {type: BEHAVIOR, level: MINOR, desc: daudio register event} 54 DEVID: {type: STRING, desc: daudio devId} 55 DHID: {type: STRING, desc: daudio dhId} 56 MSG: {type: STRING, desc: daudio register event} 57 58DAUDIO_UNREGISTER: 59 __BASE: {type: BEHAVIOR, level: MINOR, desc: daudio unregister event} 60 DEVID: {type: STRING, desc: daudio devId} 61 DHID: {type: STRING, desc: daudio dhId} 62 MSG: {type: STRING, desc: daudio unregister event} 63 64DAUDIO_OPEN: 65 __BASE: {type: BEHAVIOR, level: MINOR, desc: daudio open event} 66 DEVID: {type: STRING, desc: daudio devId} 67 DHID: {type: STRING, desc: daudio dhId} 68 MSG: {type: STRING, desc: daudio open event} 69 70DAUDIO_CLOSE: 71 __BASE: {type: BEHAVIOR, level: MINOR, desc: daudio close event} 72 DEVID: {type: STRING, desc: daudio devId} 73 DHID: {type: STRING, desc: daudio dhId} 74 MSG: {type: STRING, desc: daudio close event} 75 76DAUDIO_INIT_FAIL: 77 __BASE: {type: FAULT, level: CRITICAL, desc: daudio sa start fail occured} 78 SAID: {type: INT32, desc: daudio SAID} 79 ERRCODE: {type: INT32, desc: daudio init fail error code} 80 MSG: {type: STRING, desc: daudio sa start fail info} 81 82 83DAUDIO_REGISTER_FAIL: 84 __BASE: {type: FAULT, level: CRITICAL, desc: daudio register fail occured} 85 DEVID: {type: STRING, desc: daudio devId} 86 DHID: {type: STRING, desc: daudio dhId} 87 ERRCODE: {type: INT32, desc: daudio register fail error code} 88 MSG: {type: STRING, desc: daudio register fail info} 89 90DAUDIO_UNREGISTER_FAIL: 91 __BASE: {type: FAULT, level: CRITICAL, desc: daudio unregister fail occured} 92 DEVID: {type: STRING, desc: daudio devId} 93 DHID: {type: STRING, desc: daudio dhId} 94 ERRCODE: {type: INT32, desc: daudio unregister fail error code} 95 MSG: {type: STRING, desc: daudio unregister fail info} 96 97DAUDIO_OPT_FAIL: 98 __BASE: {type: FAULT, level: CRITICAL, desc: daudio operate fail occured} 99 ERROR_CODE: {type: INT32, desc: daudio init process fail error code} 100 MSG: {type: STRING, desc: daudio operate fail info}