Geen omschrijving

AlibcTradeMonitor.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * AlibcTradeMonitor.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeCommon
  6. * 版本号:3.1.1.200
  7. * 发布时间:2017-08-21
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #ifndef AlibcTradeMonitor_h
  14. #define AlibcTradeMonitor_h
  15. @class AlibcTradeMeasure;
  16. @class AlibcTradeDimension;
  17. @protocol AlibcTradeBenchmarkable;
  18. /**
  19. 性能监控器基本类
  20. */
  21. @interface AlibcTradeMonitor : NSObject
  22. /**
  23. 监控点所在模块名
  24. */
  25. @property(strong, nonatomic, readonly) NSString *moduleName;
  26. /**
  27. 监控点名称
  28. */
  29. @property(strong, nonatomic, readonly) NSString *name;
  30. /**
  31. AppKey 维度
  32. */
  33. @property(strong, nonatomic, readonly) AlibcTradeDimension *appkeyDimension;
  34. /**
  35. App Version 维度
  36. */
  37. @property(strong, nonatomic, readonly) AlibcTradeDimension *appVersionDimension;
  38. /**
  39. SDK Version 维度
  40. */
  41. @property(strong, nonatomic, readonly) AlibcTradeDimension *sdkVersionDimension;
  42. /**
  43. 平台指标
  44. */
  45. @property(strong, nonatomic, readonly) AlibcTradeDimension *platformDimension;
  46. - (instancetype)initWithName:(NSString *)name;
  47. - (NSDictionary *)benchmarkableDataDictionary;
  48. - (NSArray<id <AlibcTradeBenchmarkable>> *)allBenchmarkableData;
  49. - (void)commit;
  50. + (void)registerMonitor;
  51. @end
  52. @interface AlibcTradeDispatchGroup : NSObject
  53. @property(nonatomic, readonly) dispatch_group_t group;
  54. @end
  55. #endif