deegitalbe / laravel-trustup-io-health-checker
适用于信任UP应用的健壮性检查包
v0.3.0
2022-07-14 12:53 UTC
Requires
- php: ^8.1
- spatie/cpu-load-health-check: ^1.0
- spatie/laravel-health: ^1.11
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-09-14 17:53:43 UTC
README
允许快速监控网站。
安装
您可以通过Composer安装此包
composer require deegitalbe/laravel-trustup-io-health-checker
您必须推送配置文件
php artisan vendor:publish --tag="health-config"
在生成的health.php
配置文件中,在'result_stores'
中,只需启用InMemoryHealthResultStore::class
并禁用其他存储
'result_stores' => [ /* Spatie\Health\ResultStores\EloquentHealthResultStore::class => [ 'model' => Spatie\Health\Models\HealthCheckResultHistoryItem::class, 'keep_history_for_days' => 5, ], Spatie\Health\ResultStores\CacheHealthResultStore::class => [ 'store' => 'file', ], Spatie\Health\ResultStores\JsonFileHealthResultStore::class => [ 'disk' => 's3', 'path' => 'health.json', ], */ Spatie\Health\ResultStores\InMemoryHealthResultStore::class, ],
使用方法
您可以在/health-json
路由上获取实时结果
鸣谢
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件。