酷店

AppMonitor.h 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // AppMonitorSDK.h
  3. // AppMonitorSDK
  4. //
  5. // Created by junzhan on 14-9-9.
  6. // Copyright (c) 2014年 君展. All rights reserved.
  7. // 接口类
  8. #import <Foundation/Foundation.h>
  9. #import "AppMonitorTable.h"
  10. #import "AppMonitorAlarm.h"
  11. #import "AppMonitorCounter.h"
  12. #import "AppMonitorStat.h"
  13. @interface AppMonitor : NSObject
  14. + (BOOL)isInit;
  15. + (instancetype)sharedInstance;
  16. /*
  17. * 设置采样率配置
  18. * @param jsonStr JSON串
  19. */
  20. + (void)setSamplingConfigWithJson:(NSString *)jsonStr;
  21. /**
  22. * 关闭采样,紧开发调试用。线上版本请勿调用此API
  23. */
  24. + (void)disableSample;
  25. /**
  26. * 设置采样率(默认是 50%) 值范围在[0~10000] (0表示不上传,10000表示100%上传,5000表示50%上传)
  27. */
  28. + (void)setSampling:(NSString *)sampling;
  29. ////是否开启实时调试模式(与UT同步)
  30. + (BOOL)isTurnOnRealTimeDebug;
  31. + (NSString*)realTimeDebugUploadUrl;
  32. + (NSString*)realTimeDebugId;
  33. +(void) turnOnAppMonitorRealtimeDebug:(NSDictionary *) pDict;
  34. +(void) turnOffAppMonitorRealtimeDebug;
  35. @end