QNReportConfig.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. * 每次上传时间间隔 单位:分钟 默认为10分钟
  19. */
  20. @property (nonatomic, assign) uint32_t interval;
  21. /**
  22. * 记录文件大于 uploadThreshold 会触发上传,单位:字节 默认为4 * 1024
  23. */
  24. @property (nonatomic, assign) uint64_t uploadThreshold;
  25. /**
  26. * 记录文件最大值 要大于 uploadThreshold 单位:字节 默认为2 * 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. * 信息上报请求超时时间 单位:秒 默认为10秒
  39. */
  40. @property (nonatomic, assign, readonly) NSTimeInterval timeoutInterval;
  41. @end
  42. NS_ASSUME_NONNULL_END