洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
6.6 KiB

9 months ago
  1. //
  2. // MPMonitorPointDataDefines.h
  3. //
  4. //
  5. // Created by tudou on 12-1-5.
  6. // Copyright (c) 2012年 DTF. All rights reserved.
  7. //
  8. /**
  9. * actionID
  10. */
  11. static NSString * const kValue_CrashLogFlag = @"MonitorPoint_Crash";
  12. //static NSString * const kActionID_Manual_perf = @"monitorPerf"; //性能监控标志
  13. //static NSString * const kActionID_Clicked = @"clicked";
  14. //static NSString * const kActionID_LongClicked = @"longClicked";
  15. //static NSString * const kActionID_Submtted = @"submited";
  16. //static NSString * const kActionID_BizLaunched = @"bizLaunched";
  17. //static NSString * const kActionID_SetGesture = @"setGesture";
  18. //static NSString * const kActionID_CheckGesture = @"checkGesture";
  19. //static NSString * const kActionID_NetBroken = @"netBroken";
  20. //static NSString * const kActionID_Monitor = @"monitor";
  21. //static NSString * const KActionID_Slided = @"slided";
  22. //static NSString * const KActionID_None = @"none";
  23. //static NSString * const kActionID_OPENPAGE = @"openPage";
  24. //static NSString * const KActionID_AutoClicked = @"auto_clicked";
  25. //static NSString * const KActionID_AutoClick = @"auto_click";
  26. //static NSString * const KActionID_AutoOpenPage = @"auto_openPage";
  27. //static NSString * const KActionID_AutoEvent = @"auto_event";
  28. //static NSString * const KActionID_Event = @"event";
  29. //static NSString * const KActionID_FingerIdenty = @"fingerIdenty";
  30. //static NSString * const KActionID_MonitorReport = @"MonitorReport";
  31. //static NSString * const KActionID_Exposure = @"exposure";
  32. //static NSString * const KActionID_Page_monitor = @"page_monitor";
  33. //
  34. //
  35. //static NSString * const kActionID_Exception = @"exception";
  36. //static NSString * const KActionID_Error = @"error";
  37. //static NSString * const kActionID_FlashBroken = @"flashBroken";
  38. //性能埋点的actionID
  39. static NSString * const KActionID_PerformanceNetwork = @"network";
  40. static NSString * const KActionID_PerformanceMobSDK = @"mobsdk";
  41. static NSString * const KActionID_PerformanceWebApp = @"webapp";
  42. static NSString * const KActionID_PerformancePackage = @"package";
  43. static NSString * const KActionID_PerformancePage = @"page";
  44. static NSString * const KActionID_PerformanceInterface = @"interface";
  45. static NSString * const KActionID_PerformanceMemory = @"memory";
  46. static NSString * const KActionID_PerformanceSdkMonitor = @"sdkmonitor";
  47. #pragma mark -
  48. #pragma mark 埋点id
  49. #pragma mark -
  50. static NSString * const kRecordTime = @"timestamp";
  51. static NSString * const kPlatformID = @"platformID"; //客户端ID
  52. static NSString * const kClientVersion = @"clientVersion";//客户端版本
  53. static NSString * const kInternalVersion = @"InternalVersion";//内部版本
  54. static NSString * const kLogModleVersion = @"logModelVersion";//日志版本
  55. static NSString * const kClientId = @"clientId"; //设备ID
  56. static NSString * const kUUID = @"UUID"; //会话ID
  57. static NSString * const kUserID = @"userID";
  58. static NSString * const kActionID = @"actionID";//行为id (clicked,submited,bizLaunched)
  59. static NSString * const kActionStatus = @"actionStatus";
  60. static NSString * const kStatusMsg = @"statusMsg";
  61. static NSString * const kBizID = @"bizID";
  62. static NSString * const kBizVersion = @"bizVersion";
  63. static NSString * const kCurrentViewID = @"currentViewID";
  64. static NSString * const kLastViewID = @"lastViewID";
  65. static NSString * const kActionSeed = @"logID"; //埋点ID
  66. static NSString * const kWapURL = @"wapURL";
  67. static NSString * const kActionOwnerType = @"actionType";
  68. static NSString * const kLogOwnerType = @"logType";
  69. static NSString * const kExArg1 = @"stayDuration";
  70. static NSString * const kExArg2 = @"arg2";
  71. static NSString * const kExArg3 = @"renderConsume";
  72. static NSString * const kExArg4 = @"arg4";
  73. static NSString * const kExArg5 = @"sourceID";
  74. static NSString * const kRequestid = @"unitID"; //流水号
  75. static NSString * const UTDID = @"utdID"; //cookie
  76. static NSString * const ucID = @"ucID";
  77. static NSString * const kIndex = @"index";
  78. static NSString * const kLogLastViewID = @"logLastViewID";
  79. static NSString * const kLogCurrentViewID = @"logCurrentViewID";
  80. static NSString * const kExceptionType = @"ExceptionType";
  81. static NSString * const kAppStack = @"AppStack";
  82. static NSString * const kVcStack = @"VcStack";
  83. static NSString * const kAppPackageType = @"AppPackageType";
  84. static NSString * const kAttachment = @"Attachment"; //附加信息
  85. static NSString * const kHeader = @"header";
  86. static NSString * const kExtension = @"extension";
  87. static NSString * const kResolution = @"resolution";
  88. static NSString * const kSessionid = @"session_id";
  89. static NSString * const kHotpatchVersion = @"HotpatchVersion";
  90. #pragma mark -
  91. #pragma mark Performance Log Key
  92. static NSString * const kActionControlID = @"ActionControlID";
  93. static NSString * const kActionToken = @"ActionToken";
  94. static NSString * const kActionDescription = @"ActionDescription";
  95. static NSString * const kMonitorType = @"MonitorType";
  96. static NSString * const kMonitorSubType = @"MonitorSubType";
  97. static NSString * const kSystemType = @"SystemType";
  98. static NSString * const kMPSystemVersion = @"MPSystemVersion";
  99. static NSString * const kNetworkType = @"NetworkType";
  100. static NSString * const kDeviceModel = @"kDeviceModel";
  101. static NSString * const kInnerVersion = @"InnerVersion";
  102. static NSString * const kDistributionChannel = @"DistributionChannel";
  103. static NSString * const kLanguage = @"Language";
  104. #pragma mark -
  105. #pragma mark other keys
  106. // android only 仅仅是为了和安卓保持日志模型一致,此字段留空
  107. static NSString * const kCPUCoreNum = @"CPUCoreNum";
  108. static NSString * const kCPUMaxFreq = @"CPUMaxFreq";
  109. static NSString * const kTotalMem = @"TotalMem";
  110. static NSString * const kAPK = @"apk";
  111. static NSString * const kExtendedArg = @"extendedArgument";// for server @尚清
  112. //9.6.6之后行为埋点的基础扩展字段,字典类型,后续其它日志模型也可以用这个key
  113. static NSString * const kFoundationExtended = @"FoundationExtended";
  114. static NSString * const kFoundationExtendedVoiceOver = @"VoiceOver";
  115. #pragma mark -
  116. #pragma mark Diagnose Log Key
  117. static NSString * const kChannelID = @"ChannelID";
  118. static NSString * const kDiagnoseType = @"DiagnoseType";
  119. static NSString * const kDiagnoseMessage = @"DiagnoseMessage";
  120. //日志级别
  121. static NSString * const kLoggerLevel = @"loggerLevel";
  122. //关键业务日志级别
  123. static NSString * const LoggerLevelHigh = @"loggerLevelHigh";
  124. //普通业务日志级别
  125. static NSString * const LoggerLevelMedium = @"loggerLevelMedium";
  126. //诊断业务日志级别
  127. static NSString * const LoggerLevelLow = @"loggerLevelLow";
  128. typedef NS_ENUM(int, MPLogType){
  129. MPLogTypeNone = 0,
  130. MPLogTypeBehavior,
  131. MPLogTypeCount
  132. };