酷店

AppMonitorDimensionSet.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // AppMonitorDimensionSet.h
  3. // AppMonitor
  4. //
  5. // Created by christ.yuj on 15/2/15.
  6. // Copyright (c) 2015年 君展. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "AppMonitorDimensionValueSet.h"
  10. #import "AppMonitorDimension.h"
  11. @interface AppMonitorDimensionSet : NSObject
  12. /**
  13. * 根据列表初始化指标集合对象
  14. *
  15. * @param array NSString类型的数组 string为Name;
  16. * @return
  17. */
  18. + (instancetype)setWithArray:(NSArray *)array;
  19. - (BOOL)valid:(AppMonitorDimensionValueSet*)dimensionValues;
  20. /**
  21. * 增加维度
  22. *
  23. * @param dimension 维度对象
  24. * @return
  25. */
  26. - (void)addDimension:(AppMonitorDimension *)dimension;
  27. /**
  28. * 增加维度对象
  29. *
  30. * @param name 维度名称
  31. * @return
  32. */
  33. - (void)addDimensionWithName:(NSString *)name;
  34. /**
  35. * 获取维度对象
  36. *
  37. * @param name 维度名称
  38. * @return
  39. */
  40. - (AppMonitorDimension *)dimensionForName:(NSString *)name;
  41. - (NSMutableOrderedSet *)dimensions;
  42. /**
  43. * 设置定值维度
  44. *
  45. * @param dimensionValues key为维度名称,value为内容
  46. */
  47. - (void)setConstantValue:(AppMonitorDimensionValueSet *)dimensionValues;
  48. @end