manzadey/sentry-cron-monitor

用于 Sentry 定时监控的包

资助包维护!
Open Collective

安装: 4

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 1

分支: 0

类型:package

v0.1.1 2023-02-23 19:51 UTC

This package is auto-updated.

Last update: 2024-09-24 00:14:21 UTC


README

Latest Version on Packagist PHPUnit tests Total Downloads

安装

您可以通过 composer 安装此包

composer require manzadey/sentry-cron-monitor

用法

use Manzadey\SentryCronMonitor\CronMonitor;

$monitor = new CronMonitor('dsn');

$monitor->progress('monitorId');
// Get data from progress request
$monitor->getDataProgress();

// our code...

// if a failure is detected in the execution of the task
$monitor->error();

// Get data from error request
$monitor->getDataError();

// or if your task is completed successfully
$monitor->ok(); 

// Get data from ok request
$monitor->getDataOk();

// Get all data from requests
$monitor->getData();

// get exception errors
$monitor->getErrors();

// check exception errors
$monitor->hasErrors();

测试

composer test

变更日志

请参阅 CHANGELOG 以获取最近更改的详细信息。

贡献

请参阅 CONTRIBUTING 以获取详细信息。

致谢

许可证

MIT 许可证 (MIT)。请参阅 许可证文件 以获取更多信息。