hardtyz/yii2-health 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hardtyz/yii2-health

Composer 安装命令:

composer require hardtyz/yii2-health

包简介

Yii2 multipoint health check

README 文档

README

1. Instalation

The preferred way to install this extension is through composer.

and add next lines to composer.json

    "repositories": [
        {
            "url": "https://bitbucket.org/HardTYZ/yii2-health",
            "type": "git"
        }
    ]

and add line to require section of composer.json

"hardtyz/yii2-health": "*"

Usage

Example configuration

Just simply add to your config in modules, you need to define your checks in "check" array.

...
   'modules'   => [
        'health' => [
            'class'  => 'hardtyz\health\Module',
            'check' => [
                "TcpCheck" => [
                    "type" => "tcp",                    // type tcp
                    "host" => "localhost",              // tcp host or ip adress
                    "port" => 80,                       // tcp port
                    "name" => "TcpCheck"                // service name
                ],
                "HttpCheck" => [
                    "type" => "http",                   // type http
                    "host" => "http://localhost",       // http or https host
                    "name" => "HttpCheck"               // service name
                ],
                "DataBaseCheck" => [
                    "type" => "db",                     // type database
                    "db" => "db",                       // name of database profile
                    "name" => "DB"                      // service name
                ],
            ],
        ],
    ],
...

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固