# 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: HIVIEWDFX PLUGIN_LOAD: __BASE: {type: BEHAVIOR, level: CRITICAL, tag: hiviewPlugin, desc: load hiview plugin} NAME: {type: STRING, desc: plugin name} RESULT: {type: UINT32, desc: result of plugin loading} PLUGIN_UNLOAD: __BASE: {type: BEHAVIOR, level: CRITICAL, tag: hiviewPlugin, desc: unload hiview plugin} NAME: {type: STRING, desc: plugin name} RESULT: {type: UINT32, desc: result of plugin unloading} PLUGIN_STATS: __BASE: {type: STATISTIC, level: CRITICAL, tag: hiviewPlugin, desc: statistics of events handled by plugins} NAME: {type: STRING, desc: plugin name} AVG_TIME: {type: UINT32, desc: average time spent} TOP_K_TIME: {type: UINT32, arrsize: 3, desc: K times that took the most time} TOP_K_EVENT: {type: STRING, arrsize: 3, desc: K events that took the most time} TOTAL: {type: UINT32, desc: total events} PLUGIN_FAULT: __BASE: {type: FAULT, level: CRITICAL, tag: hiviewPlugin, desc: plugin fault} NAME: {type: STRING, desc: plugin name} REASON: {type: STRING, desc: reason of plugin fault} APP_USAGE: __BASE: {type: STATISTIC, level: CRITICAL, tag: usageStats, desc: application usage statistics} PACKAGE: {type: STRING, desc: package name} VERSION: {type: STRING, desc: version name} USAGE: {type: UINT32, desc: usage duration} DATE: {type: STRING, desc: usage date} SYS_USAGE: __BASE: {type: STATISTIC, level: CRITICAL, tag: usageStats, desc: system usage statistics} START: {type: UINT64, desc: start time} END: {type: UINT64, desc: end time} POWER: {type: UINT64, desc: power_on duration} SCREEN: {type: UINT64, desc: screen_on duration} RUNNING: {type: UINT64, desc: running duration} PROFILE_STAT: __BASE: {type: STATISTIC, level: CRITICAL, desc: hisysevent profile status} MAX_TOTAL_COUNT: {type: UINT32, desc: maximum total count} MAX_TOTAL_SIZE: {type: UINT32, desc: maximum total size} DOMAINS: {type: STRING, arrsize: 100, desc: domains} DOMAIN_DETAIL: {type: UINT32, arrsize: 100, desc: domain detail} TOTAL_COUNT: {type: UINT32, desc: total count} TOTAL_SIZE: {type: UINT32, desc: total size} BREAK_COUNT: {type: UINT8, desc: break count} BREAK_DURATION: {type: UINT64, desc: break duration} MIN_SPEED: {type: UINT32, desc: minimum speed} MAX_SPEED: {type: UINT32, desc: maximum speed} REAL_COUNT: {type: UINT32, arrsize: 10, desc: real time cost distribution} PROCESS_COUNT: {type: UINT32, arrsize: 10, desc: process time cost distribution} WAIT_COUNT: {type: UINT32, arrsize: 10, desc: wait count cost distribution} FINISHED_COUNT: {type: UINT32, desc: finished count} OVER_REAL_COUNT: {type: UINT32, desc: over real time benchmark count} OVER_REAL_PCT: {type: UINT32, desc: over real time benchmark percentage} OVER_PROC_COUNT: {type: UINT32, desc: over process time cost benchmark count} OVER_PROC_PCT: {type: UINT32, desc: over process time cost percentage} BREAK: __BASE: {type: BEHAVIOR, level: CRITICAL, desc: hisysevent is break} TOTAL_COUNT: {type: UINT32, desc: total count} TOTAL_SIZE: {type: UINT32, desc: total size} REAL_SPEED: {type: UINT32, desc: real time of handle hisysevent each second} PROC_SPEED: {type: UINT32, desc: process time of handle hisysevent each second} AVG_REAL_TIME: {type: DOUBLE, desc: average real time cost} AVG_PROC_TIME: {type: DOUBLE, desc: average process time cost} AVG_WAIT_TIME: {type: DOUBLE, desc: average wait time cost} TOP_EVENT: {type: STRING, arrsize: 3, desc: topN events} TOP_EVENT_COUNT: {type: UINT32, arrsize: 3, desc: count of topN events} TOP_DOMAIN: {type: STRING, arrsize: 3, desc: topN domains} TOP_DOMAIN_COUNT: {type: UINT32, arrsize: 3, desc: count of topN domains} RECOVER: __BASE: {type: BEHAVIOR, level: CRITICAL, desc: hisysevent is recover} DURATION: {type: INT64, desc: recover after break duration}