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 14domain: BUNDLE_MANAGER 15 16################################################################################ 17# FAULT EVENT # 18################################################################################ 19BUNDLE_INSTALL_EXCEPTION: 20 __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle install} 21 USERID: {type: INT32, desc: userId} 22 BUNDLE_NAME: {type: STRING, desc: bundleName} 23 VERSION: {type: UINT32, desc: versionCode} 24 INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} 25 SCENE: {type: STRING, desc: boot reboot or createUser} 26 ERROR_CODE: {type: INT32, desc: error code} 27 28BUNDLE_UNINSTALL_EXCEPTION: 29 __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle uninstall} 30 USERID: {type: INT32, desc: userId} 31 BUNDLE_NAME: {type: STRING, desc: bundleName} 32 VERSION: {type: UINT32, desc: versionCode} 33 INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} 34 ERROR_CODE: {type: INT32, desc: error code} 35 36BUNDLE_UPDATE_EXCEPTION: 37 __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when bundle update} 38 USERID: {type: INT32, desc: userId} 39 BUNDLE_NAME: {type: STRING, desc: bundleName} 40 VERSION: {type: UINT32, desc: versionCode} 41 INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} 42 ERROR_CODE: {type: INT32, desc: error code} 43 44PRE_BUNDLE_RECOVER_EXCEPTION: 45 __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when prebundle recover} 46 USERID: {type: INT32, desc: userId} 47 BUNDLE_NAME: {type: STRING, desc: bundleName} 48 VERSION: {type: UINT32, desc: versionCode} 49 INSTALL_TYPE: {type: STRING, desc: only prebundle} 50 ERROR_CODE: {type: INT32, desc: error code} 51 52BUNDLE_STATE_CHANGE_EXCEPTION: 53 __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when state change} 54 USERID: {type: INT32, desc: userId} 55 BUNDLE_NAME: {type: STRING, desc: bundleName} 56 ABILITY_NAME: {type: STRING, desc: abilityName} 57 TYPE: {type: STRING, desc: application or ability} 58 59BUNDLE_CLEAN_CACHE_EXCEPTION: 60 __BASE: {type: FAULT, level: MINOR, desc: used to fault happened when clean cache or clean data} 61 USERID: {type: INT32, desc: userId} 62 BUNDLE_NAME: {type: STRING, desc: bundleName} 63 CLEAN_TYPE: {type: STRING, desc: clean cache or clean data} 64 65################################################################################ 66# BEHAVIOR EVENT # 67################################################################################ 68BOOT_SCAN_START: 69 __BASE: {type: BEHAVIOR, level: MINOR, desc: boot scan start} 70 TIME: {type: INT64, desc: time stamp} 71 72BOOT_SCAN_END: 73 __BASE: {type: BEHAVIOR, level: MINOR, desc: boot scan end} 74 TIME: {type: INT64, desc: time stamp} 75 76BUNDLE_INSTALL: 77 __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle install} 78 USERID: {type: INT32, desc: userId} 79 BUNDLE_NAME: {type: STRING, desc: bundleName} 80 VERSION: {type: UINT32, desc: versionCode} 81 INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} 82 SCENE: {type: STRING, desc: boot reboot or createUser} 83 84BUNDLE_UNINSTALL: 85 __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle uninstall} 86 USERID: {type: INT32, desc: userId} 87 BUNDLE_NAME: {type: STRING, desc: bundleName} 88 VERSION: {type: UINT32, desc: versionCode} 89 INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} 90 91BUNDLE_UPDATE: 92 __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle update} 93 USERID: {type: INT32, desc: userId} 94 BUNDLE_NAME: {type: STRING, desc: bundleName} 95 VERSION: {type: UINT32, desc: versionCode} 96 INSTALL_TYPE: {type: STRING, desc: normal prebundle or freeInstall} 97 98PRE_BUNDLE_RECOVER: 99 __BASE: {type: BEHAVIOR, level: MINOR, desc: prebundle recover} 100 USERID: {type: INT32, desc: userId} 101 BUNDLE_NAME: {type: STRING, desc: bundleName} 102 VERSION: {type: UINT32, desc: versionCode} 103 INSTALL_TYPE: {type: STRING, desc: only prebundle} 104 105BUNDLE_STATE_CHANGE: 106 __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle or component disable or enable} 107 USERID: {type: INT32, desc: userId} 108 BUNDLE_NAME: {type: STRING, desc: bundleName} 109 ABILITY_NAME: {type: STRING, desc: abilityName} 110 TYPE: {type: STRING, desc: application or ability} 111 STATE: {type: STRING, desc: isEnable} 112 113BUNDLE_CLEAN_CACHE: 114 __BASE: {type: BEHAVIOR, level: MINOR, desc: bundle clean cache} 115 USERID: {type: INT32, desc: userId} 116 BUNDLE_NAME: {type: STRING, desc: bundleName} 117 CLEAN_TYPE: {type: STRING, desc: clean cache or clean data} 118 119GET_REMOTE_ABILITY_INFO: 120 __BASE: {type: BEHAVIOR, level: MINOR, desc: get remote abilityInfo} 121 DEVICE_ID: {type: STRING, desc: deviceId} 122 BUNDLE_NAME: {type: STRING, desc: bundleName} 123 LOCALE_INFO: {type: STRING, desc: localeInfo} 124 ABILITY_NAME: {type: STRING, desc: abilityName} 125 RESULT_CODE: {type: INT32, desc: result code} 126 127GET_REMOTE_ABILITY_INFOS: 128 __BASE: {type: BEHAVIOR, level: MINOR, desc: get remote abilityInfos} 129 DEVICE_ID: {type: STRING, desc: deviceId} 130 BUNDLE_NAME: {type: STRING, desc: bundleName} 131 LOCALE_INFO: {type: STRING, desc: localeInfo} 132 ABILITY_NAME: {type: STRING, desc: abilityName} 133 RESULT_CODE: {type: INT32, desc: result code}