marcosimbuerger/monitoring-station

监控站。应用概览。

This package is auto-updated.

Last update: 2024-09-14 17:53:45 UTC


README

监控站从监控卫星收集数据并显示。

监控卫星

安装

$ composer create-project marcosimbuerger/monitoring-station .

配置

创建 .env.local

.env.local.example 复制到 .env.local

创建您的后端登录

将您的后端用户名和密码添加到 .env.local

使用 bin/console security:encode-password 生成密码散列。

环境

使用 APP_ENV 变量定义环境。(APP_ENV=dev / APP_ENV=prod

在将监控站用于生产之前,请勿忘记将其设置为 prod

缓存生命周期

app_config.yaml 中定义获取的网站数据的缓存生命周期。

添加监控卫星

config/example.monitoring_satellite.websites.yaml 文件复制到 config/monitoring_satellite.websites.yaml 并添加您的监控卫星端点。

登录

在浏览器中打开根目录。输入您的后端登录凭据以登录。

测试

您可以通过调用 /example/monitoring-satellite/v1/get 获取监控卫星的示例结果。基本认证:foo | bar

命令

可用的控制台命令。

website-data:fetch          Fetches the website data.
website-data:clear-cache    Clears the website data cache.
website-data:prune-cache    Prunes the website data cache.

许可证

本项目采用MIT许可证发布。有关更多信息,请参阅包含的LICENSE 文件。