BBASMAdMonitor.h
820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// BBASMAdMonitor.h
// SWANAd
//
// Created by xutingting on 2020/9/3.
// Copyright © 2020 Baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BBASMInternalConstants.h"
NS_ASSUME_NONNULL_BEGIN
@interface BBASMAdMonitor : NSObject
/**
* @brief 发送监控日志
*
* @param type 事件
* @param info 信息
*/
+ (void)sendMonitorLog:(BBASMAdMonitorLogType)type
withMonitorInfo:(NSDictionary *)info;
/**
* @brief 日志类型转string
*
* @param type 事件
* @return 日志类型
*/
+ (NSString *)getMonitorTypeString:(BBASMAdMonitorLogType)eventType;
/**
* @brief 发送错误日志
*
* @param code 错误码
* @param info 信息
*/
+ (void)sendMonitorErrorLog:(NSString *)code
withMonitorInfo:(NSDictionary *)info;
@end
NS_ASSUME_NONNULL_END