1 /* 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef HIVIEWDFX_HIVIEW_UNIFIED_COMMON_H 16 #define HIVIEWDFX_HIVIEW_UNIFIED_COMMON_H 17 #include <string> 18 19 namespace OHOS::HiviewDFX { 20 namespace Telemetry { 21 const std::string KEY_TELEMETRY_TRACE_TAG = "traceArgs"; 22 const std::string KEY_REMAIN_TIME = "remainTimeToStop"; 23 const std::string KEY_ID = "telemetryId"; 24 const std::string KEY_BUNDLE_NAME = "bundleName"; 25 const std::string KEY_SWITCH_STATUS = "telemetryStatus"; 26 const std::string SWITCH_ON = "on"; 27 const std::string SWITCH_OFF = "off"; 28 const std::string KEY_TOTAL_QUOTA = "traceQuota"; 29 const std::string KEY_OPEN_TIME = "traceOpenTime"; 30 const std::string KEY_DURATION = "traceDuration"; 31 const std::string KEY_DELAY_TIME = "delayTime"; 32 const std::string KEY_XPERF_QUOTA = "xperfTraceQuota"; 33 const std::string KEY_XPOWER_QUOTA = "xpowerTraceQuota"; 34 const std::string TOTAL = "Total"; 35 const std::string KEY_FLOW_RATE = "traceCompressRatio"; 36 const std::string KEY_TRACE_TAG = "traceArgs"; 37 constexpr char TELEMETRY_DOMAIN[] = "TELEMETRY"; 38 } 39 } 40 #endif //HIVIEWDFX_HIVIEW_UNIFIED_COMMON_H 41