# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. domain: NOTIFICATION # fault event SUBSCRIBE_ERROR: __BASE: {type: FAULT, level: MINOR, desc: subscribe notification error} PID: {type: INT32, desc: subscriber pid} UID: {type: INT32, desc: subscriber uid} USER_ID: {type: INT32, desc: subscribe notification published from this userId} BUNDLE_NAME: {type: STRING, desc: subscribe notification published from this bundle names} ERROR_CODE: {type: INT32, desc: error code} ENABLE_NOTIFICATION_ERROR: __BASE: {type: FAULT, level: MINOR, desc: enable notification error} BUNDLE_NAME: {type: STRING, desc: bundle name} UID: {type: INT32, desc: uid} ENABLE: {type: BOOL, desc: enable state} ERROR_CODE: {type: INT32, desc: error code} ENABLE_NOTIFICATION_SLOT_ERROR: __BASE: {type: FAULT, level: MINOR, desc: enable notification slot error} BUNDLE_NAME: {type: STRING, desc: bundle name} UID: {type: INT32, desc: uid} SLOT_TYPE: {type: INT32, desc: slot type} ENABLE: {type: BOOL, desc: enable state} ERROR_CODE: {type: INT32, desc: error code} PUBLISH_ERROR: __BASE: {type: STATISTIC, level: MINOR, desc: publish notification error} NOTIFICATION_ID: {type: INT32, desc: notification Id} CONTENT_TYPE: {type: INT32, desc: notification content type} BUNDLE_NAME: {type: STRING, desc: bundle name of notification creater} USER_ID: {type: INT32, desc: userId of notification creater} ERROR_CODE: {type: INT32, desc: error code} FLOW_CONTROL_OCCUR: __BASE: {type: FAULT, level: MINOR, desc: flow control occured} NOTIFICATION_ID: {type: INT32, desc: notification Id} BUNDLE_NAME: {type: STRING, desc: bundle name} UID: {type: INT32, desc: uid} # behavior event SUBSCRIBE: __BASE: {type: BEHAVIOR, level: MINOR, desc: subscribe notification} PID: {type: INT32, desc: subscriber pid} UID: {type: INT32, desc: subscriber uid} USER_ID: {type: INT32, desc: subscribe notification published from this userId} BUNDLE_NAME: {type: STRING, desc: subscribe notification published from this bundle names} UNSUBSCRIBE: __BASE: {type: BEHAVIOR, level: MINOR, desc: unsubscribe notification} PID: {type: INT32, desc: subscriber pid} UID: {type: INT32, desc: subscriber uid} USER_ID: {type: INT32, desc: unsubscribe notification published from this userId} BUNDLE_NAME: {type: STRING, desc: unsubscribe notification published from this bundle names} ENABLE_NOTIFICATION: __BASE: {type: BEHAVIOR, level: MINOR, desc: enable notification} BUNDLE_NAME: {type: STRING, desc: bundle name} UID: {type: INT32, desc: uid} ENABLE: {type: BOOL, desc: enable state} ENABLE_NOTIFICATION_SLOT: __BASE: {type: BEHAVIOR, level: MINOR, desc: enable notification slot} BUNDLE_NAME: {type: STRING, desc: bundle name} UID: {type: INT32, desc: uid} SLOT_TYPE: {type: INT32, desc: slot type} ENABLE: {type: BOOL, desc: enable state} # statistic event PUBLISH: __BASE: {type: STATISTIC, level: MINOR, desc: publish notification} NOTIFICATION_ID: {type: INT32, desc: notification Id} CONTENT_TYPE: {type: INT32, desc: notification content type} BUNDLE_NAME: {type: STRING, desc: bundle name of notification creater} USER_ID: {type: INT32, desc: userId of notification creater} CANCEL: __BASE: {type: STATISTIC, level: MINOR, desc: cancel notification} NOTIFICATION_ID: {type: INT32, desc: notification Id} NOTIFICATION_LABEL: {type: STRING, desc: notification label} BUNDLE_NAME: {type: STRING, desc: bundle name} UID: {type: INT32, desc: uid} REMOVE: __BASE: {type: STATISTIC, level: MINOR, desc: cancel notification} NOTIFICATION_ID: {type: INT32, desc: notification Id} NOTIFICATION_LABEL: {type: STRING, desc: notification label} BUNDLE_NAME: {type: STRING, desc: bundle name} UID: {type: INT32, desc: uid} ALARM_TRIGGER: __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: alarm trigger} PID: {type: INT32, desc: thread pid} UID: {type: INT32, desc: package uid} NAME: {type: STRING, desc: call package name}