定制 bycarmona141/king-monitor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

bycarmona141/king-monitor

最新稳定版本:4.0.0

Composer 安装命令:

composer require bycarmona141/king-monitor

包简介

API requests and errors monitor

README 文档

README

Monitoring API Requests and Errors for Laravel.

Installation

You can install the package via composer:

composer require bycarmona141/king-monitor

Public Config

You can publish the config file with:

php artisan vendor:publish king-monitor-config

Variables Config

Note

The variable values shown are the tool's default values.

The USER_ERRORS_LIMIT configuration variable sets the error limit for sending an alert.

USER_ERRORS_LIMIT=3

The USER_REQUEST_LIMIT configuration variable sets the request limit for sending an alert.

USER_REQUEST_LIMIT=1000

The TOKEN_ERRORS_LIMIT configuration variable sets the error limit for a TOKEN to send an alert.

TOKEN_ERRORS_LIMIT=3

The TOKEN_REQUEST_LIMIT configuration variable sets the limit of requests for a TOKEN to send an alert.

TOKEN_REQUEST_LIMIT=1000

The MONITOR_ALERT configuration variable enables the monitor to send alerts.

MONITOR_ALERT=true

The USER_BETWEEN_ALERT configuration variable configures the time between user alerts.

USER_BETWEEN_ALERT=3600

The USE_RESOURCE configuration variable configures whether the application uses RESOURCES

USE_RESOURCE=false

Usage with collection

public function kingIndex(): KingCategoryCollection {
    $response = KingCategoryCollection::make(KingCategory::all());

    KingMonitor::monitor($response);

    return $response;
}

Use without collection

public function kingIndex(): Response {
    $response = response(Category::all(), 200);

    KingMonitor::monitor($response);

    return $response;
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固