[Python] Re-export all metric types again from metrics module

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

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

@ -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",
]