酷店

AppMonitorMeasureValueSet.h 882B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // AppMonitorMeasureValueSet.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 "AppMonitorMeasureValue.h"
  10. @interface AppMonitorMeasureValueSet : NSObject<NSCopying>
  11. - (instancetype)initWithDictionary:(NSDictionary *)dictionary;
  12. /**
  13. * 设置指标值
  14. *
  15. * @param name
  16. * @param value
  17. * @return
  18. */
  19. - (void)setDoubleValue:(double)value forName:(NSString *)name;
  20. - (void)setValue:(AppMonitorMeasureValue *)value forName:(NSString *)name;
  21. - (BOOL)containValueForName:(NSString *)name;
  22. - (AppMonitorMeasureValue *)valueForName:(NSString *)name;
  23. /**
  24. * 合并指标
  25. *
  26. * @param measureValueSet 目标指标集合
  27. * 发现相同的name就对MeasureValue做加操作
  28. */
  29. - (void)merge:(AppMonitorMeasureValueSet*)measureValueSet;
  30. - (NSDictionary *)jsonDict;
  31. @end