Files
CustomPlugin/Libs/YTXMonitor.framework/Headers/ACMConfig.h
2023-04-10 18:48:16 +08:00

44 lines
1.4 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// ACMConfig.h
// ATAuthSDK
//
// Created by 刘超的MacBook on 2020/5/19.
// Copyright © 2020. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ACMUploadInterface.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, ACMMonitorUploadType) {
ACMMonitorUploadTypeRealTime, //实时上传,暂时不支持,如果采用这个方式将以默认的轮询上传实现
ACMMonitorUploadTypeCirculate, //轮询上传
ACMMonitorUploadTypeManual //手动上传
};
@interface ACMConfig : NSObject
+ (instancetype)sharedInstance;
/// 日志是否入库默认NO
@property (atomic, assign) BOOL loggerIsSaveInDB;
/// 埋点是否入库默认YES
@property (atomic, assign) BOOL monitorIsSaveInDB;
/// 日志是否上传默认NO
@property (atomic, assign) BOOL loggerIsUpload;
/// 埋点是否上传默认YES
@property (atomic, assign) BOOL monitorIsUpload;
/// 日志埋点组件上传type默认 ACMMonitorUploadTypeManual
@property (nonatomic, assign) ACMMonitorUploadType uploadType;
/// 日志埋点组件上传代理对象,注:这里是弱引用,组件外面需要保证该上传对象不要被释放,如果被释放掉将影响日志埋点的上传
@property (nonatomic, weak) id<ACMProtocol> uploadDelegate;
/// 更新日志埋点组件限流信息
- (void)setLimitConfig:(NSDictionary *)info;
@end
NS_ASSUME_NONNULL_END