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: MEDIALIBRARY 40 41MEDIALIB_FILE_OPT_ERROR: 42 __BASE: { type: FAULT, level: CRITICAL, desc: create file error } 43 UID: { type: INT32, desc: user id} 44 ERR_FILE: { type: STRING, desc: failed file } 45 LINE: { type: UINT32, desc: failed line } 46 ERROR_CODE: { type: INT32, desc: error code } 47 FILE: { type: STRING, desc: file name } 48 TYPE: { type: STRING, desc: operation type } 49 CALLING_ID: { type: INT32, desc: calling uid } 50 51MEDIALIB_DB_OPT_ERROR: 52 __BASE: { type: FAULT, level: CRITICAL, desc: local db create file failure } 53 UID: { type: INT32, desc: user id} 54 ERR_FILE: { type: STRING, desc: failed file } 55 LINE: { type: UINT32, desc: upgrade failed line } 56 ERROR_CODE: { type: INT32, desc: error code } 57 TYPE: { type: STRING, desc: operation type } 58 CALLING_ID: { type: INT32, desc: calling uid } 59 60MEDIALIB_DB_UPGRADE_ERROR: 61 __BASE: { type: FAULT, level: CRITICAL, desc: local database upgrade failure } 62 ERR_FILE: { type: STRING, desc: upgrade failed file } 63 LINE: { type: UINT32, desc: upgrade failed line } 64 65MEDIALIB_THUMBNAIL_STAT: 66 __BASE: { type: BEHAVIOR, level: MINOR, desc: thumbnail aging is triggered when the screen is off } 67 UID: { type: INT32, desc: user id} 68 TIMES: { type: UINT32, desc: history trigger number } 69 GNUMS: { type: UINT32, desc: generate thumbnail nums } 70 ANUMS: { type: UINT32, desc: aging thumbnail nums } 71 72MEDIALIB_DB_UPGRADE_STAT: 73 __BASE: { type: BEHAVIOR, level: MINOR, desc: database upgrade } 74 PRE_VERSION: { type: INT32, desc: pre upgrade version number } 75 AFTER_VERSION: { type: INT32, desc: after upgrade version number } 76 COUNT: { type: UINT32, desc: upgrade events count } 77 78MEDIALIB_SYNC_STAT: 79 __BASE: { type: BEHAVIOR, level: MINOR, desc: synchronization times between the local end and the cloud } 80 TIMES: { type: UINT32, desc: sync times } 81 82MEDIALIB_AGING_STAT: 83 __BASE: { type: BEHAVIOR, level: MINOR, desc: aging state } 84 TIMES: { type: UINT32, desc: history trigger times } 85 COUNT: { type: UINT32, desc: the recycle number of aging } 86 87MEDIALIB_MSC_FIRST_VISIT_STAT: 88 __BASE: { type: BEHAVIOR, level: MINOR, desc: time interval between photo capture and first visit by the app } 89 PHOTO_ID: { type: STRING, desc: photo id } 90 TIME_INTERVAL: { type: UINT64, desc: the time interval from taking the photo to the fist visit } 91 92MEDIALIB_MSC_REQUST_POLICY_STAT: 93 __BASE: { type: STATISTIC, level: MINOR, desc: multistages capture request policy } 94 CALLING_PACKAGE: { type: STRING, desc: calling package name } 95 HIGH_QUALITY_COUNT: { type: UINT32, desc: high quality policy count } 96 BALANCE_QUALITY_COUNT: { type: UINT32, desc: balance quality policy count } 97 EMERGENCY_QUALITY_COUNT: { type: UINT32, desc: emergency quality policy count } 98 99MEDIALIB_MSC_TRIGGER_RATIO_STAT: 100 __BASE: { type: STATISTIC, level: MINOR, desc: trigger source ratio } 101 THIRD_PART_COUNT: { type: UINT32, desc: count of third part app trigger multistages capture } 102 AUTO_COUNT: { type: UINT32, desc: count of auto trigger multistages capture } 103 104MEDIALIB_MSC_TOTAL_TIME_STAT: 105 __BASE: { type: STATISTIC, level: MINOR, desc: multistages capture total time cost } 106 PHOTO_ID: { type: STRING, desc: photo id } 107 TOTAL_TIME_COST: { type: UINT64, desc: total time cost of multistages capture } 108 109MEDIALIB_MSC_RESULT_STAT: 110 __BASE: { type: STATISTIC, level: MINOR, desc: result of multistages capture } 111 PHOTO_ID: { type: STRING, desc: photo id } 112 RESULT: { type: INT32, desc: result of processing multistages capture } 113 MEDIA_TYPE: { type: INT32, desc: media type } 114 115MEDIALIB_THUMBNAIL_GENERATION: 116 __BASE: { type: STATISTIC, level: MINOR, desc: Medialibrary thumbnail generation statistics, preserve: true } 117 URI: { type: STRING, desc: The image uri } 118 SCENE: { type: INT32, desc: The scene triggers thumbnail generation } 119 OPEN_THUMB_COST: { type: INT32, desc: Open cloud thumbnail cost time } 120 OPEN_LCD_COST: { type: INT32, desc: Open cloud LCD thumbnail cost time } 121 SOURCE_TYPE: { type: INT32, desc: The image source that generates thumbnails } 122 SOURCE_WIDTH: { type: INT32, desc: The width of the source image that generates thumbnails } 123 SOURCE_HEIGHT: { type: INT32, desc: The height of the source image that generates thumbnails } 124 TOTAL_COST: { type: INT32, desc: The total cost time that generated thumbnails } 125 ERROR_CODE: { type: INT32, desc: The error code } 126 127MEDIALIB_BACKUP_PORTRAIT_STAT: 128 __BASE: { type: STATISTIC, level: MINOR, desc: result of portrait restoration } 129 ALBUM_COUNT: { type: UINT32, desc: number of restored portrait albums } 130 PHOTO_COUNT: { type: UINT64, desc: number of restored photos with portrait } 131 FACE_COUNT: { type: UINT64, desc: number of restored face analysis data } 132 TOTAL_TIME_COST: { type: UINT64, desc: total time cost of portrait restoration } 133 134DATABASE_CORRUPTION_ERROR: 135 __BASE: { type: FAULT, level: CRITICAL, desc: The database corruption error } 136 DATE: { type: STRING, desc: The database corruption time } 137 138MEDIALIB_CLOUDENHANCEMENT_STAT: 139 __BASE: {type: STATISTIC, level: CRITICAL, desc: mediaLibrary cloud enhancement task statistics, preserve: true } 140 PHOTO_ID: { type: STRING, desc: photo id } 141 TOTAL_TIME_COST: { type: UINT64, desc: total time cost of cloud enhancement } 142 COMPLETE_TYPE: { type: STRING, desc: types of cloudenhancement task completion} 143 144MEDIALIB_BACKUP_MEDIA_STAT: 145 __BASE: {type: STATISTIC, level: CRITICAL, desc: Report the under transferred media statistic info before Upgrade Restore task, preserve: true } 146 SCENE_CODE: { type: INT32, desc: Scenarios } 147 TASK_ID: { type: STRING, desc: Task ID } 148 ALBUM_NAME: { type: STRING, desc: Album name } 149 TOTAL_COUNT: { type: INT32, desc: Total Assets } 150 IMAGE_COUNT: { type: INT32, desc: Total number of pictures } 151 VIDEO_COUNT: { type: INT32, desc: Total number of videos } 152 HIDDEN_COUNT: { type: INT32, desc: Number of hidden assets } 153 TRASHED_COUNT: { type: INT32, desc: Number of deleted assets } 154 FAVORITE_COUNT: { type: INT32, desc: Number of Favorited Assets } 155 CLOUD_COUNT: { type: INT32, desc: Pure Cloud Asset Quantity } 156 BURST_COVER_COUNT: { type: INT32, desc: Number of Cover Images } 157 BURST_TOTAL_COUNT: { type: INT32, desc: Total number of continuous pictures } 158 159MEDIALIB_BACKUP_RESTORE_RESULT: 160 __BASE: {type: STATISTIC, level: CRITICAL, desc: Report the data transfer result after Upgrade Restore task, preserve: true } 161 SCENE_CODE: { type: INT32, desc: Scenarios } 162 TASK_ID: { type: STRING, desc: Task ID } 163 ERROR_CODE: { type: STRING, desc: Execution result code } 164 ERROR_INFO: { type: STRING, desc: Execution Information } 165 TYPE: { type: STRING, desc: Error Type } 166 BACKUP_INFO: { type: STRING, desc: Asset type } 167 DUPLICATE_COUNT: { type: INT32, desc: Number of existing assets of the new device } 168 FAILED_COUNT: { type: INT32, desc: Number of assets that fail to be migrated } 169 SUCCESS_COUNT: { type: INT32, desc: Number of Successfully Migrated Assets }