#NEWLINE# def kv( self , stat , value ) : #NEWLINE# #INDENT# 'Set a gauge to the given stat and value.\n\n        The monitor also keeps track of the max and min value seen between subsequent calls\n        to the .metrics property.\n        ' #NEWLINE# self . _GAUGES [ stat ] = value #NEWLINE# if ( ( stat not in self . _MAX_GAUGES ) or ( value > self . _MAX_GAUGES [ stat ] ) ) : #NEWLINE# #INDENT# self . _MAX_GAUGES [ stat ] = value #NEWLINE# #UNINDENT# if ( ( stat not in self . _MIN_GAUGES ) or ( value < self . _MIN_GAUGES [ stat ] ) ) : #NEWLINE# #INDENT# self . _MIN_GAUGES [ stat ] = value