酷店

AppMonitorMeasure.h 854B

1234567891011121314151617181920212223242526272829
  1. //
  2. // AppMonitorMeasure.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. /**
  11. * 监控指标项
  12. *
  13. */
  14. @interface AppMonitorMeasure : NSObject
  15. @property (nonatomic, copy) NSString *name;
  16. @property (nonatomic, strong) NSNumber *constantValue;
  17. @property (nonatomic, strong) NSNumber *min;
  18. @property (nonatomic, strong) NSNumber *max;
  19. - (instancetype)initWithName:(NSString *)name;
  20. - (instancetype)initWithName:(NSString *)name constantValue:(NSNumber *)constantValue;
  21. - (instancetype)initWithName:(NSString *)name constantValue:(NSNumber *)constantValue min:(NSNumber *)min max:(NSNumber *)max;
  22. - (void)setRangeWithMin:(NSNumber *)min max:(NSNumber *)max;
  23. - (BOOL)valid:(AppMonitorMeasureValue *)measureValue;
  24. @end