kiwi-simple-metrics/kiwi_simple_metrics/metrics/__init__.py

20 lines
316 B
Python
Raw Normal View History

from typing import Callable, TypeAlias
2023-08-31 22:10:33 +00:00
from ._report import Report
2023-08-31 11:17:19 +00:00
from .cpu import cpu
from .disk import disk
from .external import external
2023-08-31 12:26:50 +00:00
from .memory import memory
2023-08-31 11:17:19 +00:00
Metric: TypeAlias = Callable[[], Report | None]
2023-08-31 11:17:19 +00:00
__all__ = [
2023-08-31 22:10:33 +00:00
"Report",
"Metric",
2023-08-31 22:10:33 +00:00
2023-08-31 11:17:19 +00:00
"cpu",
"disk",
"external",
2023-08-31 12:26:50 +00:00
"memory",
2023-08-31 11:17:19 +00:00
]