酷店

AppMonitorMeasureValue.h 760B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // AppMonitorMeasureValue.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. /**
  10. * 监控指标值
  11. *
  12. */
  13. @interface AppMonitorMeasureValue : NSObject
  14. /**
  15. * 耗时操作是否已经完成
  16. */
  17. @property (nonatomic, assign) BOOL isFinish;
  18. @property (nonatomic, strong) NSNumber * offset;
  19. @property (nonatomic, strong) NSNumber * value;
  20. - (instancetype)initWithValue:(NSNumber *)value;
  21. - (instancetype)initWithValue:(NSNumber *)value offset:(NSNumber *)offset;
  22. - (void)merge:(AppMonitorMeasureValue *)measureValue;
  23. //为了json序列化
  24. - (NSDictionary *)jsonDict;
  25. //json反序列化
  26. - (instancetype)initWithDictionary:(NSDictionary *)dictionary;
  27. @end