-
-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy path__init__.py
More file actions
23 lines (21 loc) · 904 Bytes
/
__init__.py
File metadata and controls
23 lines (21 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""A collection of tools to collect and manipulate prometheus metrics."""
__title__ = "prometheus-connect"
__version__ = "0.7.0"
from .exceptions import PrometheusApiClientException, MetricValueConversionError
def __getattr__(name):
if name == "PrometheusConnect":
from .prometheus_connect import PrometheusConnect
return PrometheusConnect
elif name == "Metric":
from .metric import Metric
return Metric
elif name == "MetricsList":
from .metrics_list import MetricsList
return MetricsList
elif name == "MetricSnapshotDataFrame":
from .metric_snapshot_df import MetricSnapshotDataFrame
return MetricSnapshotDataFrame
elif name == "MetricRangeDataFrame":
from .metric_range_df import MetricRangeDataFrame
return MetricRangeDataFrame
raise AttributeError(f"module {__name__} has no attribute {name}")