def _our_gauge(self, stat: str, value: float, rate: float=1, delta: bool=False) -> None: """Set a gauge value.""" from django_statsd.clients import statsd if delta: value_str = '%+g|g' % (value,) else: value_str = '%g|g' % (value,) statsd._send(stat, value_str, rate)
def _our_gauge(self, stat, value, rate=1, delta=False): """Set a gauge value.""" from django_statsd.clients import statsd if delta: value = '%+g|g' % (value,) else: value = '%g|g' % (value,) statsd._send(stat, value, rate)
def _our_gauge(self, stat, value, rate=1, delta=False): """Set a gauge value.""" from django_statsd.clients import statsd if delta: value = '%+g|g' % (value, ) else: value = '%g|g' % (value, ) statsd._send(stat, value, rate)
def _our_gauge(self, stat, value, rate=1, delta=False): # type: (str, float, float, bool) -> None """Set a gauge value.""" from django_statsd.clients import statsd if delta: value_str = '%+g|g' % (value, ) else: value_str = '%g|g' % (value, ) statsd._send(stat, value_str, rate)
def _our_gauge(self, stat, value, rate=1, delta=False): # type: (str, float, float, bool) -> str """Set a gauge value.""" from django_statsd.clients import statsd if delta: value_str = '%+g|g' % (value,) else: value_str = '%g|g' % (value,) statsd._send(stat, value_str, rate)
def _our_gauge(self, stat: str, value: float, rate: float = 1, delta: bool = False) -> None: """Set a gauge value.""" from django_statsd.clients import statsd if delta: value_str = f"{value:+g}|g" else: value_str = f"{value:g}|g" statsd._send(stat, value_str, rate)