fittinq/symfony-rabbitmq-bundle
最新稳定版本:18.0.2
Composer 安装命令:
composer require fittinq/symfony-rabbitmq-bundle
包简介
README 文档
README
Introduction
Use symfony opsgenie to send alert messages if any error is thrown.
Table of Contents
Installation
composer require fittinq/symfony-opsgenie
Usage
Create an instance of the Opsgenie class, providing it with the required dependencies: HttpClientInterface, OPSGENIE_HOST_URL, and the OPSGENIE_API_KEY.
use Fittinq\Symfony\RabbitMQ\Bundle\ErrorHandler; use Symfony\Contracts\HttpClient\HttpClientInterface; $httpClient = new HttpClient(); // Replace with your actual HttpClient instance. $opsgenie = new Opsgenie($httpClient, OPSGENIE_HOST_URL, OPSGENIE_API_KEY);You can now use the escalate method to send an alert to Opsgenie:
$alertMessage = "This is an alert that needs attention!"; $opsgenie->escalate($alertMessage);
Configuration
Add the following parameters to your environment
OPSGENIE_HOST_URL=
OPSGENIE_API_KEY=
统计信息
- 总下载量: 3.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-08-28