ATCrash.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // ATException.h
  3. // APRemoteLogging
  4. //
  5. // Created by 卡迩 on 2018/7/3.
  6. // Copyright © 2018年 Alipay. All rights reserved.
  7. //
  8. #import "ATEvent.h"
  9. /**
  10. * Crash日志模型
  11. */
  12. @interface ATCrash : ATEvent
  13. @property (nonatomic, strong) NSString *header; /**< 字段1,日志头,默认e*/
  14. @property (nonatomic, strong) NSDate *timestamp; /**< 字段2,客户端日志时间*/
  15. @property (nonatomic, strong) NSString *platformId; /**< 字段3,客户端ProductID. 如 IPHONE_1ND*/
  16. @property (nonatomic, strong) NSString *clientVersion;/**< 字段4,客户端版本*/
  17. @property (nonatomic, strong) NSString *logVersion; /**< 字段5,客户端日志模型版本号*/
  18. @property (nonatomic, strong) NSString *clientId; /**< 字段6,[imei]|[imsi] 客户端ID*/
  19. @property (nonatomic, strong) NSString *sessionId; /**< 字段7,客户端会话ID*/
  20. @property (nonatomic, strong) NSString *userId; /**< 字段8,用户ID*/
  21. @property (nonatomic, strong) NSString *actionId; /**< 字段9,行为ID*/
  22. @property (nonatomic, strong) NSString *appState; /**< 字段10,app前后台状态*/
  23. @property (nonatomic, strong) NSString *statusMsg; /**< 字段11,statusMsg ?*/
  24. @property (nonatomic, strong) NSString *appId; /**< 字段12,子应用ID*/
  25. @property (nonatomic, strong) NSString *subType; /**< 字段13,subType ?*/
  26. @property (nonatomic, strong) NSString *exceptionType;/**< 字段14,异常类型*/
  27. @property (nonatomic, strong) NSString *appStack; /**< 字段15,应用堆栈*/
  28. @property (nonatomic, strong) NSString *vcStack; /**< 字段16,VC堆栈*/
  29. @property (nonatomic, strong) NSString *channelId; /**< 字段17,渠道ID*/
  30. @property (nonatomic, strong) NSString *packageType; /**< 字段18,包类型*/
  31. @property (nonatomic, strong) NSString *lastViewId; /**< 字段19,上一个ViewId*/
  32. @property (nonatomic, strong) NSString *viewId; /**< 字段20,当前ViewId*/
  33. @property (nonatomic, strong) NSString *pageSerialNo; /**< 字段21,页面流水号*/
  34. @property (nonatomic, strong) NSString *trackId; /**< 字段22,当前ACTIONID*/
  35. @property (nonatomic, strong) NSString *trackToken; /**< 字段23,当前ACTION_TOKEN*/
  36. @property (nonatomic, strong) NSString *deviceModel; /**< 字段24,手机型号*/
  37. @property (nonatomic, strong) NSString *systemVersion;/**< 字段25,操作系统版本号*/
  38. @property (nonatomic, strong) NSString *networkType; /**< 字段26,网络类型*/
  39. @property (nonatomic, strong) NSString *extension; /**< 字段27,扩展信息*/
  40. @property (nonatomic, strong) NSString *innerVersion; /**< 字段28,内部版本号*/
  41. @property (nonatomic, strong) NSString *utdid; /**< 字段29,utdid设备ID*/
  42. @property (nonatomic, strong) NSString *language; /**< 字段30,App语言*/
  43. @property (nonatomic, strong) NSString *hpVersion; /**< 字段31,hotpatch版本号*/
  44. @property (nonatomic, strong) NSString *ebcContextInfo;/**< 字段32,虚拟机调用栈*/
  45. @property (nonatomic, strong) NSString *threadName; /**< 字段33,线程名 ?*/
  46. @property (nonatomic, strong) NSString *javaOrNative; /**< 字段34,javaOrNative ?*/
  47. @property (nonatomic, strong) NSString *apk; /**< 字段35.Android独有,apk唯一ID*/
  48. @property (nonatomic, strong) NSString *bootReason; /**< 字段36.bootReason ?*/
  49. @property (nonatomic, strong) NSString *foundationExtended; /**< 字段37.全局扩展字段*/
  50. @property (nonatomic, strong) NSString *logSequenceId;/**< 字段38,日志序列号*/
  51. @property (nonatomic, strong) NSString *logIDFA; /**< 字段39,IDFA值*/
  52. @end
  53. @interface ATCrash (Compatibility)
  54. + (ATCrash *)crashWithStateDictionary:(NSDictionary *)dict;
  55. @end