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 divided 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# DESCRIPTION contains userid,request type. 37# REASON contains errno num, and failed interface. 38 39domain: MULTI_MEDIA 40 41MEDIALIBRARY_FILESYSTEM_ERROR: 42 __BASE: { type: FAULT, level: CRITICAL, desc: filesystem error } 43 UID: { type: INT32, desc: application uid} 44 PACKAGE_NAME: { type: STRING, desc: application package name } 45 DESCRIPTION: { type: STRING, desc: errro message } 46 REASON: { type: STRING, desc: fault reason } 47 48MEDIALIBRARY_RDB_ERROR: 49 __BASE: { type: FAULT, level: CRITICAL, desc: filesystem error } 50 UID: { type: INT32, desc: application uid } 51 PACKAGE_NAME: { type: STRING, desc: application package name } 52 DESCRIPTION: { type: STRING, desc: errro message } 53 REASON: { type: STRING, desc: fault reason } 54 55MEDIALIBRARY_KVSTORE_ERROR: 56 __BASE: { type: FAULT, level: CRITICAL, desc: filesystem error } 57 UID: { type: INT32, desc: application uid } 58 PACKAGE_NAME: { type: STRING, desc: application package name } 59 DESCRIPTION: { type: STRING, desc: errro message } 60 REASON: { type: STRING, desc: fault reason } 61 62MEDIALIBRARY_DISTRIBUTE_ERROR: 63 __BASE: { type: FAULT, level: CRITICAL, desc: filesystem error } 64 DESCRIPTION: { type: STRING, desc: errro message } 65 REASON: { type: STRING, desc: fault reason } 66 67MEDIALIBRARY_THUMBNAIL_STAT: 68 __BASE: { type: BEHAVIOR, level: MINOR, desc: thumbnail numbers statistic} 69 TIMES: { type: UINT32, desc: generate times } 70 GNUMS: { type: UINT32, desc: generate thumbnail nums } 71 ANUMS: { type: UINT32, desc: aging thumbnail nums } 72 ADEVICES: { type: UINT32, desc: aging devices nums }