def test_gauge_set(self): gauge = metrics.Gauge() label_set = metrics.LabelSet() gauge.set(label_set, 1)
def test_gauge_set(self): gauge = metrics.Gauge() gauge.set(("value", ), 1)
def test_gauge(self): gauge = metrics.Gauge() label_set = metrics.LabelSet() handle = gauge.get_handle(label_set) self.assertIsInstance(handle, metrics.GaugeHandle)
def test_gauge(self): gauge = metrics.Gauge() handle = gauge.get_handle(("test", "test1")) self.assertIsInstance(handle, metrics.GaugeHandle)