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