def kv()

in mutornadomon/monitor.py [0:0]


    def kv(self, stat, value):
        """Set a gauge to the given stat and value.

        The monitor also keeps track of the max and min value seen between subsequent calls
        to the .metrics property.
        """
        self._GAUGES[stat] = value
        if stat not in self._MAX_GAUGES or value > self._MAX_GAUGES[stat]:
            self._MAX_GAUGES[stat] = value
        if stat not in self._MIN_GAUGES or value < self._MIN_GAUGES[stat]:
            self._MIN_GAUGES[stat] = value