## monitor()


Monitor a service at the given interval.


Usage


``` python
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

``` python
>>> monitor("api", interval=30)
```

{'service': 'api', 'status': 'healthy', 'interval': 30}
