1 2# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15##################################################### 16# below is the format of defining event # 17##################################################### 18#domain: domain name. [Only one domain name can be defined at the top] 19# 20#author: the author name who defined this event. 21#date: the date when this event was defined, format is YYYY-MM-DD. 22#logged: source file which refer to this event. 23#usage: the usage of this event. 24#//Define event name and event properties. 25#@EVENT_NAME: the event definition part begin. 26# // __BASE is used for defining the basic info of the event. 27# // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR. 28# // "level" optional values are: CRITICAL, MINOR. 29# // "tag" set tags with may used by subscriber of this event, multiple tags devided by space. 30# // "desc" full description of this event. 31# @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}. 32# // follow the __BASE block, each line defines a parameter of this event. 33# // "type" optional values are: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, STRING. 34# // "arrsize" of the parameter is an array, set a non-zero value. 35# // "desc" full description of this parameter. 36 37##################################################### 38# Example of some hiviewdfx events definition # 39##################################################### 40 41domain: PASTEBOARD 42 43PASTEBOARD_FAULT: 44 __BASE: {type: FAULT, level: CRITICAL, desc: The event is database fault } 45 USER_ID: {type: INT32, desc: app id } 46 FAULT_CODE: {type: STRING, desc: fault code } 47 48TIME_CONSUMING_STATISTIC: 49 __BASE: {type: STATISTIC, level: MINOR, desc: The event is api visit statistic } 50 PASTEBOARD_STATE: {type: STRING, desc: Pasteboard state } 51 NET_TYPE: {type: STRING, desc: net type } 52 DATA_LEVLE: {type: STRING, desc: Data level } 53 CONSUMING_DATA: {type: STRING, desc: Consuming data } 54 55PASTEBOARD_BEHAVIOUR: 56 __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is behaviour record } 57 PASTEBOARD_STATE: {type: STRING, desc: The counts of time consuming level one} 58 TOP_ONE_APP: {type: STRING, desc: The counts of top one calling pasteboard } 59 TOP_TOW_APP: {type: STRING, desc: The counts of top two calling pasteboard } 60 TOP_THREE_APP: {type: STRING, desc: The counts of top three calling pasteboard } 61 TOP_FOUR_APP: {type: STRING, desc: The counts of top four calling pasteboard } 62 TOP_FIVE_APP: {type: STRING, desc: The counts of top five calling pasteboard } 63 TOP_SIX_APP: {type: STRING, desc: The counts of top six calling pasteboard} 64 TOP_SEVEN_APP: {type: STRING, desc: The counts of top seven calling pasteboard } 65 TOP_EIGHT_APP: {type: STRING, desc: The counts of top eight calling pasteboard } 66 TOP_NINE_APP: {type: STRING, desc: The counts of top nine calling pasteboard } 67 TOP_TEN_APP: {type: STRING, desc: The counts of top ten calling pasteboard } 68 69USE_BEHAVIOUR: 70 __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is behaviour record of access } 71 PASTEBOARD_STATE: {type: STRING, desc: Pasteboard state } 72 BOOTTIME: {type: STRING, desc: Boot time } 73 WALLTIME: {type: STRING, desc: Access pasteboard time} 74 RESULT: {type: INT32, desc: The result of access pasteboard } 75 OPERATE_APP: {type: STRING, desc: The app to access pasteboard } 76 PRI_MIME_TYPE: {type: STRING, desc: Primary mime type } 77 ISLOCALPASTE: {type: INT32, desc: IsLocalPaste} 78 ISREMOTE: {type: INT32, desc: IsRemote } 79 SHAREOPTION: {type: STRING, desc: ShareOption }