[Python] Re-enable all metric types in the loader

This commit is contained in:
Jan-Erik Rediger 2022-02-14 11:52:13 +01:00 коммит произвёл Jan-Erik Rediger
Родитель d2ebe3e3fd
Коммит af0767e771
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -26,7 +26,21 @@ from . import metrics
# A mapping from the name of the metric type as it appears in the metrics.yaml
# to the Python class for that metric type.
_TYPE_MAPPING = {
"boolean": metrics.BooleanMetricType,
"counter": metrics.CounterMetricType,
"datetime": metrics.DatetimeMetricType,
"event": metrics.EventMetricType,
"labeled_boolean": metrics.LabeledBooleanMetricType,
"labeled_counter": metrics.LabeledCounterMetricType,
"labeled_string": metrics.LabeledStringMetricType,
"memory_distribution": metrics.MemoryDistributionMetricType,
"ping": metrics.PingType,
"string": metrics.StringMetricType,
"string_list": metrics.StringListMetricType,
"timespan": metrics.TimespanMetricType,
"timing_distribution": metrics.TimingDistributionMetricType,
"uuid": metrics.UuidMetricType,
"quantity": metrics.QuantityMetricType,
}