1885b47fbSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 2885b47fbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3885b47fbSopenharmony_ci# you may not use this file except in compliance with the License. 4885b47fbSopenharmony_ci# You may obtain a copy of the License at 5885b47fbSopenharmony_ci# 6885b47fbSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7885b47fbSopenharmony_ci# 8885b47fbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9885b47fbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10885b47fbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11885b47fbSopenharmony_ci# See the License for the specific language governing permissions and 12885b47fbSopenharmony_ci# limitations under the License. 13885b47fbSopenharmony_ci 14885b47fbSopenharmony_ci##################################################### 15885b47fbSopenharmony_ci# below is the format of defining event # 16885b47fbSopenharmony_ci##################################################### 17885b47fbSopenharmony_ci#domain: domain name. [Only one domain name can be defined at the top] 18885b47fbSopenharmony_ci# 19885b47fbSopenharmony_ci#author: the author name who defined this event. 20885b47fbSopenharmony_ci#date: the date when this event was defined, format is YYYY-MM-DD. 21885b47fbSopenharmony_ci#logged: source file which refer to this event. 22885b47fbSopenharmony_ci#usage: the usage of this event. 23885b47fbSopenharmony_ci#//Define event name and event properties. 24885b47fbSopenharmony_ci#@EVENT_NAME: the event definition part begin. 25885b47fbSopenharmony_ci# // __BASE is used for defining the basic info of the event. 26885b47fbSopenharmony_ci# // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR. 27885b47fbSopenharmony_ci# // "level" optional values are: CRITICAL, MINOR. 28885b47fbSopenharmony_ci# // "tag" set tags with may used by subscriber of this event, multiple tags divided by space. 29885b47fbSopenharmony_ci# // "desc" full description of this event. 30885b47fbSopenharmony_ci# @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}. 31885b47fbSopenharmony_ci# // follow the __BASE block, each line defines a parameter of this event. 32885b47fbSopenharmony_ci# // "type" optional values are: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, STRING. 33885b47fbSopenharmony_ci# // "arrsize" of the parameter is an array, set a non-zero value. 34885b47fbSopenharmony_ci# // "desc" full description of this parameter. 35885b47fbSopenharmony_ci 36885b47fbSopenharmony_ci##################################################### 37885b47fbSopenharmony_ci# Example of some hiviewdfx events definition # 38885b47fbSopenharmony_ci##################################################### 39885b47fbSopenharmony_ci 40885b47fbSopenharmony_cidomain: ACCESSIBILITY 41885b47fbSopenharmony_ci 42885b47fbSopenharmony_ciUNAVAILABLE: 43885b47fbSopenharmony_ci __BASE: {type: FAULT, level: CRITICAL, desc: Accessibility function is unavailable} 44885b47fbSopenharmony_ci MSG: {type: STRING, desc: accessibility event message} 45885b47fbSopenharmony_ci 46885b47fbSopenharmony_ciSTARTING_FUNCTION: 47885b47fbSopenharmony_ci __BASE: {type: BEHAVIOR, level: CRITICAL, desc: Starting accessibility function} 48885b47fbSopenharmony_ci MSG: {type: STRING, desc: accessibility event message}