ATEvent.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // ATEvent.h
  3. // ATrack
  4. //
  5. // Created by 卡迩 on 2018/4/24.
  6. // Copyright © 2018年 Alipay. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "AntLogLevel.h"
  10. #import "ATConfigMgr.h"
  11. /**
  12. * 埋点参数对象基类
  13. */
  14. @interface ATEvent : NSObject
  15. @property (nonatomic, copy) NSString *log; /**< 自定义日志内容*/
  16. @property (nonatomic, copy) NSString *bizType; /**< 所属业务类型*/
  17. @property (nonatomic, assign) AntLogLevel logLevel; /**< 日志等级*/
  18. @property (nonatomic, copy) NSString *ABTestInfo;
  19. @property (nonatomic, copy) NSDictionary *extParam4;
  20. /**
  21. * 最终渲染到日志中时取ATEvent的属性名称列表. 各日志模型自行覆盖实现.
  22. * 如基类中返回 @[@"bizType",@"logLevel",@"log"]
  23. */
  24. + (NSArray<NSString *> *)fieldNames;
  25. @end
  26. @interface ATEvent (/**internal*/)
  27. @property (nonatomic, strong) ATConfig *config; /**< 配置信息,私有*/
  28. @end
  29. @interface ATEvent (/**Deprecated*/)
  30. @property (nonatomic, assign) NSUInteger maxLogCount; /**< 上报条数阈值,兼容老keybiztrace埋点*/
  31. @end