indigerd/healthchecks

为微服务提供的HTTP和控制台健康检查

v0.0.5 2019-05-21 08:49 UTC

This package is auto-updated.

Last update: 2024-09-21 21:19:38 UTC


README

模块具有多个内置健康检查,例如数据库和缓存

通过填充检查数组属性在配置中添加健康检查

例如

'modules'=>[
        .........
        'healthchecks' => [
            'class' => 'indigerd\healthchecks\Module',
            'checks'=> [
                'db',
                'cache',
                'custom' => function() {
                    return (2 + 2 == 4);
                };
            ],
        ],
        .........