A system daemon makes periodic checks and actions to achieve a specified number of errors.
Project description
# DYATEL
A system daemon makes periodic checks and actions to achieve a specified number of errors.
Awailable resource:
- http
## Install
pip install dyatel
## Example config file
```
---
- task:
- check:
name: prodtest
type: http
url: https://microservice.net/api/1.1/
method: get
pause: 5
expectation:
status: 200
exception:
count: 3
action:
command: /usr/bin/supervisorctl restart app
pause: 30
```
## Systemd Unit
```
[Unit]
Description=Simplified simple zebra service
After=syslog.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/usr/local
ExecStart=/usr/local/bin/dyatel.py
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
```
A system daemon makes periodic checks and actions to achieve a specified number of errors.
Awailable resource:
- http
## Install
pip install dyatel
## Example config file
```
---
- task:
- check:
name: prodtest
type: http
url: https://microservice.net/api/1.1/
method: get
pause: 5
expectation:
status: 200
exception:
count: 3
action:
command: /usr/bin/supervisorctl restart app
pause: 30
```
## Systemd Unit
```
[Unit]
Description=Simplified simple zebra service
After=syslog.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/usr/local
ExecStart=/usr/local/bin/dyatel.py
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dyatel-0.0.4.tar.gz
(2.0 kB
view details)
File details
Details for the file dyatel-0.0.4.tar.gz
.
File metadata
- Download URL: dyatel-0.0.4.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3594f434824b4a12e51510a8b2a895f3c55d726c9e75573a13d8d77ceddc36ef |
|
MD5 | 37cea0f0af8e2f168068a8a0b02dcd52 |
|
BLAKE2b-256 | c3d98d6ec8ab34b7d462cc4629033664d89e9c04416edfbff4d50e33b44d3857 |