12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // QNReportConfig.h
- // QiniuSDK
- //
- // Created by 杨森 on 2020/7/14.
- // Copyright © 2020 Qiniu. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface QNReportConfig : NSObject
- - (id)init __attribute__((unavailable("Use sharedInstance: instead.")));
- + (instancetype)sharedInstance;
- /**
- * 是否开启sdk上传信息搜集 默认为YES
- */
- @property (nonatomic, assign, getter=isReportEnable) BOOL reportEnable;
- /**
- * 每次上传时间间隔 单位:分钟 默认为10分钟
- */
- @property (nonatomic, assign) uint32_t interval;
- /**
- * 记录文件大于 uploadThreshold 会触发上传,单位:字节 默认为4 * 1024
- */
- @property (nonatomic, assign) uint64_t uploadThreshold;
- /**
- * 记录文件最大值 要大于 uploadThreshold 单位:字节 默认为2 * 1024 * 1024
- */
- @property (nonatomic, assign) uint64_t maxRecordFileSize;
- /**
- * 记录文件所在文件夹目录 默认为:.../沙盒/Library/Caches/com.qiniu.report
- */
- @property (nonatomic, copy) NSString *recordDirectory;
- /**
- * 信息上报服务器地址
- */
- @property (nonatomic, copy, readonly) NSString *serverURL;
- /**
- * 信息上报请求超时时间 单位:秒 默认为10秒
- */
- @property (nonatomic, assign, readonly) NSTimeInterval timeoutInterval;
- @end
- NS_ASSUME_NONNULL_END
|