Exemplo n.º 1
0
 def test_gauge_set(self):
     gauge = metrics.Gauge()
     label_set = metrics.LabelSet()
     gauge.set(label_set, 1)
Exemplo n.º 2
0
 def test_gauge_set(self):
     gauge = metrics.Gauge()
     gauge.set(("value", ), 1)
Exemplo n.º 3
0
 def test_gauge(self):
     gauge = metrics.Gauge()
     label_set = metrics.LabelSet()
     handle = gauge.get_handle(label_set)
     self.assertIsInstance(handle, metrics.GaugeHandle)
Exemplo n.º 4
0
 def test_gauge(self):
     gauge = metrics.Gauge()
     handle = gauge.get_handle(("test", "test1"))
     self.assertIsInstance(handle, metrics.GaugeHandle)