зеркало из https://github.com/mozilla/glean.git
[Python] Re-export all metric types again from metrics module
This commit is contained in:
Родитель
369d2bc5df
Коммит
d2ebe3e3fd
|
@ -7,14 +7,58 @@
|
|||
This module contains all of the metric types.
|
||||
"""
|
||||
|
||||
|
||||
from .._uniffi import CounterMetric as CounterMetricType
|
||||
# Re-export utilities
|
||||
from .._uniffi import CommonMetricData
|
||||
from .._uniffi import Lifetime
|
||||
from .._uniffi import MemoryUnit
|
||||
from .._uniffi import TimeUnit
|
||||
from .._uniffi import RecordedExperiment
|
||||
|
||||
# Re-export some metrics directly
|
||||
from .._uniffi import BooleanMetric as BooleanMetricType
|
||||
from .._uniffi import CounterMetric as CounterMetricType
|
||||
from .._uniffi import MemoryDistributionMetric as MemoryDistributionMetricType
|
||||
from .._uniffi import QuantityMetric as QuantityMetricType
|
||||
from .._uniffi import StringListMetric as StringListMetricType
|
||||
|
||||
# Export wrapper implementations for metric types
|
||||
from .datetime import DatetimeMetricType
|
||||
from .event import EventMetricType, EventExtras, RecordedEvent
|
||||
from .labeled import (
|
||||
LabeledBooleanMetricType,
|
||||
LabeledCounterMetricType,
|
||||
LabeledStringMetricType,
|
||||
)
|
||||
from .ping import PingType
|
||||
from .string import StringMetricType
|
||||
from .timespan import TimespanMetricType
|
||||
from .timing_distribution import TimingDistributionMetricType
|
||||
from .url import UrlMetricType
|
||||
from .uuid import UuidMetricType
|
||||
|
||||
|
||||
__all__ = [
|
||||
"BooleanMetricType",
|
||||
"CommonMetricData",
|
||||
"CounterMetricType",
|
||||
"DatetimeMetricType",
|
||||
"EventMetricType",
|
||||
"QuantityMetricType",
|
||||
"LabeledBooleanMetricType",
|
||||
"LabeledCounterMetricType",
|
||||
"LabeledStringMetricType",
|
||||
"Lifetime",
|
||||
"MemoryDistributionMetricType",
|
||||
"MemoryUnit",
|
||||
"PingType",
|
||||
"RecordedEvent",
|
||||
"EventExtras",
|
||||
"RecordedExperiment",
|
||||
"StringMetricType",
|
||||
"StringListMetricType",
|
||||
"TimespanMetricType",
|
||||
"TimeUnit",
|
||||
"TimingDistributionMetricType",
|
||||
"UrlMetricType",
|
||||
"UuidMetricType",
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче