酷店

AppMonitorMeasureSet.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // AppMonitorMeasureSet.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 "AppMonitorMeasure.h"
  10. #import "AppMonitorMeasureValueSet.h"
  11. @interface AppMonitorMeasureSet : NSObject
  12. /**
  13. * 根据列表初始化指标集合对象
  14. *
  15. * @param array NSString类型的数组 string为Name;
  16. * @return
  17. */
  18. + (instancetype)setWithArray:(NSArray *)array;
  19. - (BOOL)valid:(NSString*)module MonitorPoint:(NSString*)monitorpoint measureValues:(AppMonitorMeasureValueSet *)measureValues;
  20. /**
  21. * 增加指标
  22. *
  23. * @param measure 指标对象
  24. * @return
  25. */
  26. - (void)addMeasure:(AppMonitorMeasure *)measure;
  27. /**
  28. * 增加指标对象
  29. *
  30. * @param name 指标名称
  31. * @return
  32. */
  33. - (void)addMeasureWithName:(NSString *)name;
  34. /**
  35. * 获取指标对象
  36. *
  37. * @param name 指标名称
  38. * @return
  39. */
  40. - (AppMonitorMeasure *)measureForName:(NSString *)name;
  41. /**
  42. * 获取指标对象的列表
  43. *
  44. * @return
  45. */
  46. - (NSMutableOrderedSet *)measures;
  47. /**
  48. * 设置定值维度
  49. *
  50. * @param measureValues key为指标名称,value为内容
  51. */
  52. - (void)setConstantValue:(AppMonitorMeasureValueSet *)measureValues;
  53. @end