FMLiveSwitchMetricMonitor Class Reference

Instance Methods

(void) - add:
 
(void) - addOnStateChange:
 
(FMLiveSwitchMetricMonitorStateChangeEventArgs *) - addOnStateChangeWithBlock
 
(void) - addOnStateChangeWithBlock:
 
(instancetype) - initWithConnectionId:
 
(instancetype) - initWithConnectionId:windowSize:minimumSamplesForThresholdDetection:minimumThreshold:trendThreshold:stabilizationCheckIntervalMs:
 
(int) - minimumCalculatedThreshold
 
(int) - minimumSamplesForThresholdDetection
 
(int) - minimumThreshold
 
(void) - removeOnStateChange:
 
(FMLiveSwitchRollingWindow *) - rollingWindow
 
(int) - stabilizationCheckIntervalMs
 
(FMLiveSwitchMetricMonitorState) - state
 
(void) - transitionStateWithNewState:metricValue:metricThreshold:metricTrend:
 
(float) - trendThreshold
 

Class Methods

(int) + defaultMinimumSamplesForThresholdDetection
 
(int) + defaultMinimumThreshold
 
(int) + defaultStabilizationIntervalCheckMilliseconds
 
(float) + defaultTrendThreshold
 
(int) + defaultWindowSize
 
(FMLiveSwitchMetricMonitor *) + metricMonitorWithConnectionId:
 
(FMLiveSwitchMetricMonitor *) + metricMonitorWithConnectionId:windowSize:minimumSamplesForThresholdDetection:minimumThreshold:trendThreshold:stabilizationCheckIntervalMs:
 
(void) + setDefaultMinimumSamplesForThresholdDetection:
 
(void) + setDefaultMinimumThreshold:
 
(void) + setDefaultStabilizationIntervalCheckMilliseconds:
 
(void) + setDefaultTrendThreshold:
 
(void) + setDefaultWindowSize:
 

Method Documentation

◆ add:

- (void) add: (int)  value

◆ addOnStateChange:

- (void) addOnStateChange: (FMLiveSwitchAction1< FMLiveSwitchMetricMonitorStateChangeEventArgs * > *)  value

◆ addOnStateChangeWithBlock

- (FMLiveSwitchMetricMonitorStateChangeEventArgs*) addOnStateChangeWithBlock

◆ addOnStateChangeWithBlock:

- (void) addOnStateChangeWithBlock: (void(^)(FMLiveSwitchMetricMonitorStateChangeEventArgs *))  valueBlock

◆ defaultMinimumSamplesForThresholdDetection

+ (int) defaultMinimumSamplesForThresholdDetection

◆ defaultMinimumThreshold

+ (int) defaultMinimumThreshold

◆ defaultStabilizationIntervalCheckMilliseconds

+ (int) defaultStabilizationIntervalCheckMilliseconds

◆ defaultTrendThreshold

+ (float) defaultTrendThreshold

◆ defaultWindowSize

+ (int) defaultWindowSize

◆ initWithConnectionId:

- (instancetype) initWithConnectionId: (NSString *)  connectionId

◆ initWithConnectionId:windowSize:minimumSamplesForThresholdDetection:minimumThreshold:trendThreshold:stabilizationCheckIntervalMs:

- (instancetype) initWithConnectionId: (NSString *)  connectionId
windowSize: (int)  windowSize
minimumSamplesForThresholdDetection: (int)  minimumSamplesForThresholdDetection
minimumThreshold: (int)  minimumThreshold
trendThreshold: (float)  trendThreshold
stabilizationCheckIntervalMs: (int)  stabilizationCheckIntervalMs 

◆ metricMonitorWithConnectionId:

+ (FMLiveSwitchMetricMonitor*) metricMonitorWithConnectionId: (NSString *)  connectionId

◆ metricMonitorWithConnectionId:windowSize:minimumSamplesForThresholdDetection:minimumThreshold:trendThreshold:stabilizationCheckIntervalMs:

+ (FMLiveSwitchMetricMonitor*) metricMonitorWithConnectionId: (NSString *)  connectionId
windowSize: (int)  windowSize
minimumSamplesForThresholdDetection: (int)  minimumSamplesForThresholdDetection
minimumThreshold: (int)  minimumThreshold
trendThreshold: (float)  trendThreshold
stabilizationCheckIntervalMs: (int)  stabilizationCheckIntervalMs 

◆ minimumCalculatedThreshold

- (int) minimumCalculatedThreshold

◆ minimumSamplesForThresholdDetection

- (int) minimumSamplesForThresholdDetection

◆ minimumThreshold

- (int) minimumThreshold

◆ removeOnStateChange:

- (void) removeOnStateChange: (FMLiveSwitchAction1< FMLiveSwitchMetricMonitorStateChangeEventArgs * > *)  value

◆ rollingWindow

- (FMLiveSwitchRollingWindow*) rollingWindow

◆ setDefaultMinimumSamplesForThresholdDetection:

+ (void) setDefaultMinimumSamplesForThresholdDetection: (int)  value

◆ setDefaultMinimumThreshold:

+ (void) setDefaultMinimumThreshold: (int)  value

◆ setDefaultStabilizationIntervalCheckMilliseconds:

+ (void) setDefaultStabilizationIntervalCheckMilliseconds: (int)  value

◆ setDefaultTrendThreshold:

+ (void) setDefaultTrendThreshold: (float)  value

◆ setDefaultWindowSize:

+ (void) setDefaultWindowSize: (int)  value

◆ stabilizationCheckIntervalMs

- (int) stabilizationCheckIntervalMs

◆ state

- (FMLiveSwitchMetricMonitorState) state

◆ transitionStateWithNewState:metricValue:metricThreshold:metricTrend:

- (void) transitionStateWithNewState: (FMLiveSwitchMetricMonitorState)  newState
metricValue: (int)  metricValue
metricThreshold: (int)  metricThreshold
metricTrend: (float)  metricTrend 

◆ trendThreshold

- (float) trendThreshold