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 42DISC_STARTUP: 43 __BASE: {type: BEHAVIOR, level: MINOR, desc: start discovery} 44 PACKAGE_NAME: {type: STRING, desc: the appname which call softbus } 45 46FIRST_DISC_DURATION: 47 __BASE: {type: STATISTIC, level: MINOR, desc: first discovery device duration} 48 MEDIUM: {type: UINT8, desc: discovery medium } 49 MAX_DISC_DURATION: {type: UINT32, desc: max discovery time duration } 50 MIN_DISC_DURATION: {type: UINT32, desc: min discovery time duration } 51 AVG_DISC_DURATION: {type: UINT32, desc: average discovery time duration } 52 53SCAN_TIMES: 54 __BASE: {type: STATISTIC, level: MINOR, desc: stastistic scan times } 55 MEDIUM: {type: UINT8, desc: scan medium } 56 SCAN_COUNTER: {type: UINT32, desc: scan counter} 57 58DISC_FAULT: 59 __BASE: {type: STATISTIC, level: CRITICAL, desc: statistic all the exception in disc process } 60 MEDIUM: {type: UINT8, desc: disc medium } 61 ERROR_CODE: {type: INT32, desc: error code } 62 ERROR_COUNTER: {type: UINT32, desc: error counter } 63 64CONN_DURATION: 65 __BASE: {type: STATISTIC, level: MINOR, desc: statistic the connection duration} 66 MEDIUM: {type: UINT8, desc: connection medium } 67 MAX_CONN_DURATION: {type: UINT32, desc: max connection time duration } 68 MIN_CONN_DURATION: {type: UINT32, desc: min connection time duration } 69 AVG_CONN_DURATION: {type: UINT32, desc: average connection time duration } 70 71CONN_SUCC_RATE: 72 __BASE: {type: STATISTIC, level: MINOR, desc: stastistic connect success rate } 73 MEDIUM: {type: UINT8, desc: connection medium } 74 SUCC_TIMES: {type: UINT32, desc: conn success times } 75 FAIL_TIMES: {type: UINT32, desc: conn fail times } 76 SUCC_RATE: {type: FLOAT, desc: connection success rate} 77 78CONN_FAULT: 79 __BASE: {type: FAULT, level: CRITICAL, desc: report the fault of connection } 80 MEDIUM: {type: UINT8, desc: connection medium } 81 ERROR_CODE: {type: INT32, desc: error code } 82 83TRANS_OPEN_SESSION_CNT: 84 __BASE: {type: STATISTIC, level: MINOR, desc: the success count and the fail count of open session } 85 SUCCESS_CNT: {type: UINT32, desc: the success count of open session } 86 FAIL_CNT: {type: UINT32, desc: the fail count of open session } 87 SUCCESS_RATE: {type: FLOAT, desc: the success rate of open session } 88 89TRANS_OPEN_SESSION_TIME_COST: 90 __BASE: {type: STATISTIC, level: MINOR, desc: the time comsuming of open session } 91 MAX_TIME_COST: {type: UINT32, desc: the max time comsuming of open session } 92 MIN_TIME_COST: {type: UINT32, desc: the min time comsuming of open session } 93 AVE_TIME_COST: {type: UINT32, desc: the average time comsuming of open session } 94 TIMES_UNDER_500MS: {type: UINT32, desc: the times unders 500ms of open session } 95 TIMES_BETWEEN_500MS_1S: {type: UINT32, desc: the times between 500ms to 1s of open session } 96 TIMES_BETWEEN_1S_2S: {type: UINT32, desc: the times between 1s to 2s of open session } 97 TIMES_ABOVE_2S: {type: UINT32, desc: the times above 2s of open session } 98 99TRANS_FAULT: 100 __BASE: {type: FAULT, level: CRITICAL, desc: the transmission fail } 101 ERROR_CODE: {type: INT32, desc: error code } 102 103BUS_CENTER_FAULT_EVT: 104 __BASE: {type: FAULT, level: CRITICAL, desc: bus center all the exception} 105 ERROR_CODE: {type: INT32, desc: error code} 106 ERROR_STR: {type: STRING, desc: error code string} 107 CONN_TYPE: {type: INT32, desc: connection type} 108 109BUS_CENTER_SUCCESS_RATE: 110 __BASE: {type: STATISTIC, level: MINOR, desc: bus center lnn rate of success} 111 TOTAL_COUNT: {type: INT32, desc: lnn total count} 112 SUCCESS_COUNT: {type: INT32, desc: lnn success count} 113 SUCCESS_RATE: {type: FLOAT, desc: lnn rate of success} 114 CONN_TYPE: {type: INT32, desc: connection type} 115 116BUS_CENTER_DURATION: 117 __BASE: {type: STATISTIC, level: MINOR, desc: bus center lnn duration} 118 AVG_DURATION: {type: INT32, desc: lnn average duration} 119 MAX_DURATION: {type: INT32, desc: lnn max duration} 120 MIN_DURATION: {type: INT32, desc: lnn min duration} 121 CONN_TYPE: {type: INT32, desc: connection type} 122 123DFILE_WAIT_HEADER_TIMEOUT_EVT: 124 __BASE: {type: FAULT, level: CRITICAL, desc: wait file header time out} 125 ERROR_CODE: {type: STRING, desc: error code} 126 127DFILE_SERVER_CREATE_EVT: 128 __BASE: {type: BEHAVIOR, level: MINOR, desc: server created} 129 130DFILE_CLIENT_CREATE_EVT: 131 __BASE: {type: BEHAVIOR, level: MINOR, desc: client created} 132 133DFILE_SEND_BEGIN_EVT: 134 __BASE: {type: BEHAVIOR, level: MINOR, desc: send begin} 135 136DFILE_PEER_SHUTTED_EVT: 137 __BASE: {type: FAULT, level: CRITICAL, desc: peer shutted} 138 139DFILE_TRANS_COMPLETE_EVT: 140 __BASE: {type: STATISTIC, level: MINOR, desc: transfer complete} 141 TRANSRATE: {type: STRING, desc: transmission speed} 142 143DFILE_ACCEPT_SOCKET_EVT: 144 __BASE: {type: BEHAVIOR, level: MINOR, desc: accept socket} 145 146FILLP_LINK_EVT: 147 __BASE: {type: FAULT, level: MINOR, desc: fillp link disconnect} 148 SOCK_IDX: {type: UINT32, desc: fillp socket index} 149 LINK_EVT_TYPE: {type: UINT8, desc: fillp link event type} 150 151FILLP_PKT_EVT: 152 __BASE: {type: STATISTIC, level: MINOR, desc: fillp data package event} 153 SOCK_IDX: {type: UINT32, desc: fillp socket index} 154 PKT_EVT_TYPE: {type: UINT8, desc: fillp package event type} 155 DROP_CNT: {type: UINT32, desc: fillp package dropcnt} 156 157FILLP_SOCK_QOS_EVT: 158 __BASE: {type: STATISTIC, level: MINOR, desc: fillp socket Qos event} 159 SOCK_IDX: {type: UINT32, desc: fillp socket index} 160 RTT: {type: UINT32, desc: fillp socket rtt} 161 TOTAL_RECV_PKT: {type: UINT32, desc: fillp socket recv package num} 162 TOTAL_RECV_BYTES: {type: UINT32, desc: fillp socket recv bytes} 163 TOTAL_SEND_PKT: {type: UINT32, desc: fillp socket send package num} 164 TOTAL_SEND_BYTES: {type: UINT32, desc: fillp socket send bytes} 165 JITTER: {type: UINT32, desc: fillp socket jitter} 166 167DFINDER_STATS: 168 __BASE: {type: STATISTIC, level: MINOR, desc: dfinder statistics} 169 INVALID_OPTION_CNT: {type: UINT64, desc: the count of invalid option} 170 BUILD_PKT_FAIL_CNT: {type: UINT64, desc: the count when building packet failed} 171 INVALID_RSP_CNT: {type: UINT64, desc: the count of invalid message} 172 OVER_DEVICE_LIMIT_CNT: {type: UINT64, desc: the count when the device number is over limit} 173