承接 dennzo/health-check 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dennzo/health-check

最新稳定版本:1.0.0-beta

Composer 安装命令:

composer require dennzo/health-check

包简介

A library containing tools for outputting json information for monitoring systems.

README 文档

README

GitHub issues Build Status GitHub GitHub release (latest by date) Packagist PHP Version Support

This package contains a standardized format for easy monitoring checks.

The tools will generate an output in the below format.

{
    "status":"OK",
    "applicationName":"foo-service",
    "version":"1.1",
    "environment":"prod"
}

You should set the status manually.

The following information will be automatically detected.

  • GIT Version
  • Development Environment (ex. dev, test, prod)
  • Name of the application

The git tag and application name is ONLY detected automatically if...

  • ...the server has git installed
  • ...the application itself is a git repository

Installation

composer require dennzo/monitoring-tools

Usage

Use the Class MonitoringTools to implement this feature in your application.

Depending on your application you will need to create the MonitoringController and define a health_check route.

// Json
MonitoringTools::provideHealthCheckAsJson();

// Object
MonitoringTools::provideHealthCheckAsObject();

You can find some more examples and explanation here.

Defaults

Name Default Description
Status OK You should override this within your application, for example by testing the apps functionality.
Git Version Automatic mechanism or null If GIT is installed and the current project is a git repository it will automatically detect this.
Environment Automatic mechanism or null The environment is read to see if certain variables exist.
Application Name Automatic mechanism or null If GIT is installed and the current project is a git repository it will automatically detect this.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固