#  Copyright (c) 2024 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: APPSPAWN

SPAWN_CHILD_PROCESS_FAIL:
  __BASE: {type: FAULT, level: CRITICAL, desc: Spawn Child Process Fail}
  PROCESS_NAME: {type: STRING, desc: Process Name}
  ERROR_CODE: {type: INT32, desc: Error Code}
  SRC_PATH : {type: STRING, desc: Source Path For Mount Failed}
  TARGET_PATH: {type: STRING, desc: Target Path For Mount Failed}
  SPAWN_RESULT : {type: INT32, desc: Process Spawn Result}

SPAWN_KEY_EVENT:
  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: Spawn Key Event Finish}
  EVENT_NAME: {type: STRING, desc: Event Name}

SPAWN_PROCESS_DURATION:
  __BASE: {type: STATISTIC, level: CRITICAL, desc: Boot Process Duration}
  MAXDURATION: {type: INT64, desc: Max Spawn Process Duration}
  MINDURATION: {type: INT64, desc: Min Spawn Process Duration}
  TOTALDURATION: {type: INT64, desc: Total Spawn Process Duration}
  EVENTCOUNT: {type: INT64, desc: Total Spawn Process Count}
  STAGE: {type: STRING, desc: Boot Stage Or BootFinished Stage}

SPAWN_ABNORMAL_DURATION:
  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: Scene Duration}
  SCENE_NAME: {type: STRING, desc: Scene Name}
  DURATION: {type: INT64, desc: Scene Duration}

SPAWN_MOUNT_FULL:
  __BASE: {type: FAULT, level: CRITICAL, desc: Mount Full}
  ERROR_CODE: {type: INT32, desc: Error Code}
  NAMESPACE_MOUNT_COUNT: {type: INT32, desc: Main Namespace Mount Count}
  DEVICE_MOUNT_COUNT: {type: INT32, desc: Device Mount Count}
  SPAWN_RESULT: {type: INT32, desc: Process Spawn Result}

SPAWN_MOUNT_COUNT:
  __BASE: {type: STATISTIC, level: CRITICAL, desc: Mount Number}
  MAX_NAMESPACE_MOUNT_COUNT: {type: INT32, desc: Max Main Namespace Mount Count}
  MAX_DEVICE_MOUNT_COUNT: {type: INT32, desc: Max Device Mount Count}
  AVG_NAMESPACE_MOUNT_COUNT: {type: INT32, desc: Average Main Namespace Mount Count}
  AVG_DEVICE_MOUNT_COUNT: {type: INT32, desc: Average Device Mount Count}

UNLOCK_MOUNT_ALL_DONE:
  __BASE: {type: STATISTIC, level: MINOR, desc: Unlock mount all apps done}
  UID: {type: INT32, desc: User ID}
  APP_COUNT: {type: INT32, desc: Total App Count}
  SUCCESS_COUNT: {type: INT32, desc: Mount Success Count}
  FAIL_COUNT: {type: INT32, desc: Mount Fail Count}
  DURATION: {type: INT64, desc: Mount Duration in ms}

UNLOCK_MOUNT_APP_FAIL:
  __BASE: {type: FAULT, level: CRITICAL, desc: Unlock mount single app fail}
  UID: {type: INT32, desc: User ID}
  BUNDLE_NAME: {type: STRING, desc: Bundle Name}
  SRC_PATH: {type: STRING, desc: Source Path}
  TARGET_PATH: {type: STRING, desc: Target Path}
  ERROR_CODE: {type: INT32, desc: Error Code}