зеркало из https://github.com/mozilla/glean.git
[Python] Re-enable all metric types in the loader
This commit is contained in:
Родитель
d2ebe3e3fd
Коммит
af0767e771
|
@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче