• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#           SoftBus hisysevent definition           #
38#####################################################
39
40domain: DSOFTBUS
41
42FIRST_DISC_DURATION:
43  __BASE: {type: STATISTIC, level: MINOR, desc: first discovery device duration }
44  SOFT_BUS_VERSION: {type: STRING, desc: softbus version }
45  PACKAGE_VERSION: {type: STRING, desc: package version }
46  LINK_TYPE: {type: UINT32, desc: link type ble 1 wlan 2 }
47  TOTAL_TIME: {type: UINT64, desc: total duration ms }
48  TOTAL_COUNT: {type: UINT32, desc: total count }
49  COUNT1: { type: UINT32, desc: number of times that the duration is longer than 500ms }
50  COUNT2: { type: UINT32, desc: number of times that the duration is longer than 1000ms }
51  COUNT3: { type: UINT32, desc: number of times that the duration is longer than 1500ms }
52  COUNT4: { type: UINT32, desc: number of times that the duration is longer than 2000ms }
53  COUNT5: { type: UINT32, desc: number of times that the duration is longer than 2500ms }
54
55DISCOVERY_DETAILS:
56  __BASE: {type: STATISTIC, level: MINOR, desc: ble discovery details }
57  MODULE: {type: STRING, desc: module }
58  DISCTYPE: {type: UINT32, desc: discovery type }
59  DURATION: {type: UINT64, desc: discovery duration }
60  REPTIMES: {type: UINT32, desc: report times }
61  DEVNUM: {type: UINT32, desc: report times }
62  DISCTIMES: {type: UINT32, desc: discovery times }
63
64DISCOVERY_BLE_RSSI:
65  __BASE: {type: STATISTIC, level: MINOR, desc: ble discovery rssi }
66  RANGEID: {type: UINT32, arrsize: 52, desc: range id }
67  RANGEDATA: {type: UINT32, arrsize: 52, desc: range data }
68
69CONN_DURATION:
70  __BASE: {type: STATISTIC, level: MINOR, desc: statistic the connection duration }
71  SOFT_BUS_VERSION: { type: STRING, desc: softbus version }
72  PACKAGE_VERSION: { type: STRING, desc: package version }
73  CALLER_PACKAGE_NAME: {type: STRING, desc: caller package name }
74  LINK_TYPE: { type: UINT32, desc: link type br 0 ble 1 wlan 2 p2p 3 hml 4 }
75  FAIL_TOTAL_TIME: { type: UINT64, desc: fail total duration ms }
76  FAIL_TOTAL_COUNT: { type: UINT32, desc: fail total count }
77  TOTAL_TIME: { type: UINT64, desc: total duration ms }
78  TOTAL_COUNT: { type: UINT32, desc: total count }
79  COUNT1: { type: UINT32, desc: number of times that the duration is longer than 1500ms }
80  COUNT2: { type: UINT32, desc: number of times that the duration is longer than 2000ms }
81  COUNT3: { type: UINT32, desc: number of times that the duration is longer than 2500ms }
82  COUNT4: { type: UINT32, desc: number of times that the duration is longer than 3000ms }
83  COUNT5: { type: UINT32, desc: number of times that the duration is longer than 4000ms }
84
85PROCESS_STEP_DURATION:
86  __BASE: {type: STATISTIC, level: MINOR, desc: statistic the p2p or hml process duration }
87  SOFT_BUS_VERSION: { type: STRING, desc: softbus version }
88  PACKAGE_VERSION: { type: STRING, desc: package version }
89  PROCESS_STEP: {type: UINT32, desc: process step }
90  LINK_TYPE: { type: UINT32, desc: link type br 0 ble 1 wlan 2 p2p 3 hml 4 }
91  TOTAL_TIME: { type: UINT64, desc: total duration ms }
92  TOTAL_COUNT: { type: UINT32, desc: total count }
93  COUNT1: { type: UINT32, desc: number of times that the duration is longer than 1500ms }
94  COUNT2: { type: UINT32, desc: number of times that the duration is longer than 2000ms }
95  COUNT3: { type: UINT32, desc: number of times that the duration is longer than 2500ms }
96  COUNT4: { type: UINT32, desc: number of times that the duration is longer than 3000ms }
97  COUNT5: { type: UINT32, desc: number of times that the duration is longer than 4000ms }
98
99TRANSPORT_KPI:
100  __BASE: {type: STATISTIC, level: MINOR, desc: success rate of establishing softbus transmission}
101  LINK_TYPE: {type: INT32, desc: linktype}
102  TOTAL_TIME: {type: INT64, desc: total duration ms}
103  TOTAL_COUNT: {type: INT32, desc: total count}
104  FAIL_TOTAL_TIME: {type: INT64, desc: fail total time ms}
105  FAIL_TOTAL_COUNT: {type: INT32, desc: fail total count}
106  PACKAGE_VERSION: {type: STRING, desc: package version}
107  SOFT_BUS_VERSION: {type: STRING, desc: softbus version}
108  COUNT1: {type: INT32, desc: Number of times that the duration is longer than 1s}
109  COUNT2: {type: INT32, desc: Number of times that the duration is longer than 2s}
110  COUNT3: {type: INT32, desc: Number of times that the duration is longer than 4s}
111  COUNT4: {type: INT32, desc: Number of times that the duration is longer than 7s}
112  COUNT5: {type: INT32, desc: Number of times that the duration is longer than 11s}
113  CALLER_PACKAGE_NAME: {type: STRING, desc: caller package name}
114
115CALLED_API_INFO:
116  __BASE: {type: STATISTIC, level: MINOR, desc: api called APP infor}
117  APP_NAME: {type: STRING, desc: caller package name}
118  API_NAME: {type: STRING, desc: called api name}
119  TOTAL_COUNT: {type: INT32, desc: total count}
120  SOFT_BUS_VERSION: {type: STRING, desc: softbus version}
121  PACKAGE_VERSION: {type: STRING, desc: package version}
122
123CALLED_API_CNT:
124  __BASE: {type: STATISTIC, level: MINOR, desc: api called count}
125  API_NAME: {type: STRING, desc: called api name}
126  TOTAL_COUNT: {type: INT32, desc: total count}
127
128TRANS_OPEN_SESSION_CNT:
129  __BASE: {type: STATISTIC, level: MINOR, desc: the success count and the fail count of open session }
130  SUCCESS_CNT: {type: UINT32, desc: the success count of open session }
131  FAIL_CNT: {type: UINT32, desc: the fail count of open session }
132  SUCCESS_RATE: {type: FLOAT, desc: the success rate of open session }
133
134TRANS_OPEN_SESSION_TIME_COST:
135  __BASE: {type: STATISTIC, level: MINOR, desc: the time comsuming of open session }
136  MAX_TIME_COST: {type: UINT32, desc: the max time comsuming of open session }
137  MIN_TIME_COST: {type: UINT32, desc: the min time comsuming of open session }
138  AVE_TIME_COST: {type: UINT32, desc: the average time comsuming of open session }
139  TIMES_UNDER_500MS: {type: UINT32, desc: the times unders 500ms of open session }
140  TIMES_BETWEEN_500MS_1S: {type: UINT32, desc: the times between 500ms to 1s of open session }
141  TIMES_BETWEEN_1S_2S: {type: UINT32, desc: the times between 1s to 2s of open session }
142  TIMES_ABOVE_2S: {type: UINT32, desc: the times above 2s of open session }
143
144TRANS_FAULT:
145  __BASE: {type: FAULT, level: CRITICAL, desc: the transmission fail }
146  ERROR_CODE: {type: INT32, desc: error code }
147
148TRANS_INFO:
149  __BASE: {type: BEHAVIOR, level: MINOR, desc: the transmission info }
150  ERROR_CODE: {type: STRING, desc: info msg or err msg }
151
152BUS_CENTER_FAULT_EVT:
153  __BASE: {type: FAULT, level: CRITICAL, desc: bus center all the exception}
154  MODULE_TYPE: {type: UINT32, desc: module type}
155  LINK_TYPE: {type: UINT32, desc: connection type}
156  CHANNEL_QUALITY: {type: FLOAT, desc: channel quality}
157  ERROR_CODE: {type: UINT32, desc: error code}
158  PEER_DEVICE_TYPE: {type: UINT32, desc: peer device type}
159  ONLINE_DEVICE_NUM: {type: UINT32, desc: online device count}
160  CONNECTION_NUM: {type: UINT32, desc: connected device count}
161  NIGHT_MODE: {type: UINT32, desc: night mode}
162  WIFI_STATUS: {type: UINT32, desc: wifi status}
163  BLUETOOTH_STATUS: {type: UINT32, desc: bluetooth status}
164  CALLER_APP_MODE: {type: UINT32, desc: caller app mode}
165  SUB_ERROR_CODE: {type: UINT32, desc: sub error code}
166  CONN_BR_NUM: {type: UINT32, desc: the count of device connected by br}
167  CONN_BLE_NUM: {type: UINT32, desc: the count of device connected by ble}
168  BLUETOOTH_BROADCAST_STATUS: {type: BOOL, desc: bluetooth broadcast status}
169  BLUETOOTH_SCAN_STATUS: {type: BOOL, desc: bluetooth scan status}
170  BUSUNINESS_NAME: {type: STRING, desc: caller business name}
171  CALLER_PACKAGE_NAME: {type: STRING, desc: caller package name}
172  REMOTE_BIZ_TRUNCATED_UUID: {type: STRING, desc: remote biz truncated uuid}
173  SOFT_BUS_VERSION: {type: STRING, desc: softbus version}
174  PACKAGE_VERSION: {type: STRING, desc: softbus package version}
175
176ONLINE_DURATION:
177  __BASE: {type: STATISTIC, level: MINOR, desc: the time comsuming of online}
178  TOTAL_TIME: {type: UINT64, desc: device online total time}
179  TOTAL_COUNT: {type: UINT32, desc: device online total count}
180  COUNT1: {type: UINT32, desc: the times above 10s of online}
181  COUNT2: {type: UINT32, desc: the times above 30s of online}
182  COUNT3: {type: UINT32, desc: the times above 5min of online}
183  COUNT4: {type: UINT32, desc: the times above 10min of online}
184  COUNT5: {type: UINT32, desc: the times above 15min of online}
185  SOFT_BUS_VERSION: {type: STRING, desc: softbus version}
186  PACKAGE_VERSION: {type: STRING, desc: softbus package version}
187
188AUTH_DURATION:
189  __BASE: {type: STATISTIC, level: MINOR, desc: stastistic auth rate and time cost}
190  LINK_TYPE: {type: UINT32, desc: connection type}
191  TOTAL_TIME: {type: UINT64, desc: the total time cost of auth}
192  TOTAL_COUNT: {type: UINT32, desc: device auth total count}
193  COUNT1: {type: UINT32, desc: the times above 2000ms of single auth}
194  COUNT2: {type: UINT32, desc: the times above 2500ms of single auth}
195  COUNT3: {type: UINT32, desc: the times above 3000ms of single auth}
196  COUNT4: {type: UINT32, desc: the times above 3500ms of single auth}
197  COUNT5: {type: UINT32, desc: the times above 4000ms of single auth}
198  FAIL_TOTAL_COUNT: {type: UINT32, desc: auth failed total count}
199  FAIL_TOTAL_TIME: {type: UINT64, desc: auth failed total time}
200  CONNECT_FAIL_TOTAL_COUNT: {type: UINT32, desc: connect failed total count}
201  AUTH_FAIL_TOTAL_COUNT: {type: UINT32, desc: auth failed total count}
202  EXCHANGE_FAIL_TOTAL_COUNT: {type: UINT32, desc: exchange info failed total count}
203  SOFT_BUS_VERSION: {type: STRING, desc: softbus version}
204  PACKAGE_VERSION: {type: STRING, desc: softbus package version}
205
206BUS_CENTER_DURATION:
207  __BASE: {type: STATISTIC, level: MINOR, desc: stastistic bus center lnn duration}
208  LINK_TYPE: {type: UINT32, desc: connection type}
209  TOTAL_TIME: {type: UINT64, desc: the total time cost of lnn}
210  TOTAL_COUNT: {type: UINT32, desc: lnn total count}
211  COUNT1: {type: UINT32, desc: the times above 800ms of single lnn}
212  COUNT2: {type: UINT32, desc: the times above 1000ms of single lnn}
213  COUNT3: {type: UINT32, desc: the times above 1200ms of single lnn}
214  COUNT4: {type: UINT32, desc: the times above 1500ms of single lnn}
215  COUNT5: {type: UINT32, desc: the times above 1800ms of single lnn}
216  SOFT_BUS_VERSION: {type: STRING, desc: softbus version}
217  PACKAGE_VERSION: {type: STRING, desc: softbus package version}
218
219DEVICE_ONLINE_EVT:
220  __BASE: {type: STATISTIC, level: MINOR, desc: report the online device info}
221  ONLINE_DEVICE_NUM: {type: UINT32, desc: online device count}
222  BT_ONLINE_DEVICE_NUM: {type: UINT32, desc: online device count connection medium is bt}
223  WIFI_ONLINE_DEVICE_NUM: {type: UINT32, desc: online device count connection medium is wifi}
224  PEER_DEVICE_TYPE: {type: UINT32, desc: peer device type}
225  INSERT_PROFILE_RESULT: {type: UINT32, desc: the result of insert device info to profile}
226  PEER_SOFT_BUS_VERSION: {type: STRING, desc: softbus version of peer device}
227  PEER_DEVICE_NAME: {type: STRING, desc: device name of peer device}
228  SOFT_BUS_VERSION: {type: STRING, desc: softbus version of local device}
229  PEER_PACKAGE_VERSION: {type: STRING, desc: softbus package version of peer device}
230  PACKAGE_VERSION: {type: STRING, desc: softbus package version of local device}
231
232DEVICE_DISCOVERY:
233  __BASE: {type: STATISTIC, level: MINOR, desc: stastistic device discovery count}
234  START_DISCOVERY_COUNT: {type: UINT64, desc: start discovery count}
235  SEND_BROADCAST_COUNT: {type: UINT64, desc: send broadcast count}
236  RECEIVE_BROADCAST_COUNT: {type: UINT64, desc: receiver broadcast count}
237  DEVICE_FOUND_COUNT: {type: UINT64, desc: device found count}
238  BUSINESS_DISCOVERY_COUNT: {type: UINT64, desc: business discovery count}
239  BUSINESS_DISCOVERY_DETAIL: {type: STRING, desc: business discovery detail info}
240  SOFT_BUS_VERSION: {type: STRING, desc: softbus version}
241  PACKAGE_VERSION: {type: STRING, desc: softbus package version}
242
243APP_DISCOVERY:
244  __BASE: {type: STATISTIC, level: MINOR, desc: stastistic app discovery count}
245  APP_NAME: {type: STRING, desc: name of app who discovery device}
246  APP_DISCOVERY_COUNT: {type: UINT32, desc: app discovery count}
247
248DFILE_WAIT_HEADER_TIMEOUT_EVT:
249  __BASE: {type: FAULT, level: CRITICAL, desc: wait file header time out}
250  ERROR_CODE: {type: STRING, desc: error code}
251
252DFILE_SERVER_CREATE_EVT:
253  __BASE: {type: BEHAVIOR, level: MINOR, desc: server created}
254
255DFILE_CLIENT_CREATE_EVT:
256  __BASE: {type: BEHAVIOR, level: MINOR, desc: client created}
257
258DFILE_SEND_BEGIN_EVT:
259  __BASE: {type: BEHAVIOR, level: MINOR, desc: send begin}
260
261DFILE_PEER_SHUTTED_EVT:
262  __BASE: {type: FAULT, level: CRITICAL, desc: peer shutted}
263
264DFILE_TRANS_COMPLETE_EVT:
265  __BASE: {type: STATISTIC, level: MINOR, desc: transfer complete}
266  TRANSRATE: {type: STRING, desc: transmission speed}
267
268DFILE_ACCEPT_SOCKET_EVT:
269  __BASE: {type: BEHAVIOR, level: MINOR, desc: accept socket}
270
271FILLP_LINK_EVT:
272  __BASE: {type: FAULT, level: MINOR, desc: fillp link disconnect}
273  SOCK_IDX: {type: UINT32, desc: fillp socket index}
274  LINK_EVT_TYPE: {type: UINT8, desc: fillp link event type}
275
276FILLP_PKT_EVT:
277  __BASE: {type: STATISTIC, level: MINOR, desc: fillp data package event}
278  SOCK_IDX: {type: UINT32, desc: fillp socket index}
279  PKT_EVT_TYPE: {type: UINT8, desc: fillp package event type}
280  DROP_CNT: {type: UINT32, desc: fillp package dropcnt}
281
282FILLP_SOCK_QOS_EVT:
283  __BASE: {type: STATISTIC, level: MINOR, desc: fillp socket Qos event}
284  SOCK_IDX: {type: UINT32, desc: fillp socket index}
285  RTT: {type: UINT32, desc: fillp socket rtt}
286  TOTAL_RECV_PKT: {type: UINT32, desc: fillp socket recv package num}
287  TOTAL_RECV_BYTES: {type: UINT32, desc: fillp socket recv bytes}
288  TOTAL_SEND_PKT: {type: UINT32, desc: fillp socket send package num}
289  TOTAL_SEND_BYTES: {type: UINT32, desc: fillp socket send bytes}
290  JITTER: {type: UINT32, desc: fillp socket jitter}
291
292DFINDER_STATS:
293  __BASE: {type: STATISTIC, level: MINOR, desc: dfinder statistics}
294  INVALID_OPTION_CNT: {type: UINT64, desc: the count of invalid option}
295  BUILD_PKT_FAIL_CNT: {type: UINT64, desc: the count when building packet failed}
296  INVALID_RSP_CNT: {type: UINT64, desc: the count of invalid message}
297  OVER_DEVICE_LIMIT_CNT: {type: UINT64, desc: the count when the device number is over limit}