diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-06 15:28:06 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-12 16:24:51 +0000 |
commit | f9478e475bf645038b4f1f163240d7fd0ec02af0 (patch) | |
tree | 8f3111db53f48e2918b98b372c7436270846931b /tests/metrics/test_metric.py | |
parent | Provide some process resource usage metrics (diff) | |
download | synapse-f9478e475bf645038b4f1f163240d7fd0ec02af0.tar.xz |
Rename Metrics' "keys" to "labels"
Diffstat (limited to '')
-rw-r--r-- | tests/metrics/test_metric.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/metrics/test_metric.py b/tests/metrics/test_metric.py index b25520821d..fefe1a5867 100644 --- a/tests/metrics/test_metric.py +++ b/tests/metrics/test_metric.py @@ -43,7 +43,7 @@ class CounterMetricTestCase(unittest.TestCase): ]) def test_vector(self): - counter = CounterMetric("vector", keys=["method"]) + counter = CounterMetric("vector", labels=["method"]) # Empty counter doesn't yet know what values it has self.assertEquals(counter.render(), []) @@ -83,7 +83,7 @@ class CallbackMetricTestCase(unittest.TestCase): def test_vector(self): vals = dict() - metric = CallbackMetric("values", lambda: vals, keys=["type"]) + metric = CallbackMetric("values", lambda: vals, labels=["type"]) self.assertEquals(metric.render(), []) @@ -115,7 +115,7 @@ class TimerMetricTestCase(unittest.TestCase): ]) def test_vector(self): - metric = TimerMetric("queries", keys=["verb"]) + metric = TimerMetric("queries", labels=["verb"]) self.assertEquals(metric.render(), []) |