alive 0.1.10

use mysql to check is service alive
docs.rs failed to build alive-0.1.10
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: alive-0.2.3

alive : use mysql to check is service alive

mysql 免费数据库用 aiven.io

监控服务本身可以用 healthchecks.io 做状态监控

cron-job.org 用来做每分钟触发

导入配置的脚本 https://atomgit.com/3ti/node/tree/main/alive/init

mysql 数据库的表结构 https://atomgit.com/3ti/rust/tree/main/alive/dump

需要配置的环境变量如下 , NAME 是邮箱发件人的名称

LARK_BOT
MYSQL_COMPRESS
MYSQL_CONN_LIMIT
MYSQL_DB
MYSQL_HOST
MYSQL_PORT
MYSQL_PWD
MYSQL_SSL
MYSQL_USER
NAME
RUST_LOG
SMTP_FROM
SMTP_HOST
SMTP_PASSWORD
SMTP_USER
TO_MAIL
WXPUSH_ID
WXPUSH_TOKEN
< ./tests/main.rs>