monitor()
Monitor a service at the given interval.
Usage
monitor(
service,
interval=60,
)Parameters
service: str-
The name of the service to monitor.
interval: int = 60-
The monitoring interval in seconds, by default 60.
Returns
dict-
A dictionary containing the service status and uptime.
Examples
>>> monitor("api", interval=30)
{'service': 'api', 'status': 'healthy', 'interval': 30}