QNReportConfig.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // QNReportConfig.h
  3. // QiniuSDK
  4. //
  5. // Created by 杨森 on 2020/7/14.
  6. // Copyright © 2020 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface QNReportConfig : NSObject
  11. - (id)init __attribute__((unavailable("Use sharedInstance: instead.")));
  12. + (instancetype)sharedInstance;
  13. /**
  14. * 是否开启sdk上传信息搜集 默认为YES
  15. */
  16. @property (nonatomic, assign, getter=isReportEnable) BOOL reportEnable;
  17. /**
  18. * 每次上传时间间隔 单位:分钟 默认为0.5分钟
  19. */
  20. @property (nonatomic, assign) double interval;
  21. /**
  22. * 记录文件大于 uploadThreshold 会触发上传,单位:字节 默认为16 * 1024
  23. */
  24. @property (nonatomic, assign) uint64_t uploadThreshold;
  25. /**
  26. * 记录文件最大值 要大于 uploadThreshold 单位:字节 默认为20 * 1024 * 1024
  27. */
  28. @property (nonatomic, assign) uint64_t maxRecordFileSize;
  29. /**
  30. * 记录文件所在文件夹目录 默认为:.../沙盒/Library/Caches/com.qiniu.report
  31. */
  32. @property (nonatomic, copy) NSString *recordDirectory;
  33. /**
  34. * 信息上报服务器地址
  35. */
  36. @property (nonatomic, copy, readonly) NSString *serverURL;
  37. /**
  38. * 信息上报服务器地址 host
  39. */
  40. @property (nonatomic, copy, readonly) NSString *serverHost;
  41. /**
  42. * 信息上报请求超时时间 单位:秒 默认为10秒
  43. */
  44. @property (nonatomic, assign, readonly) NSTimeInterval timeoutInterval;
  45. @end
  46. NS_ASSUME_NONNULL_END