fittinq / symfony-rabbitmq-bundle
There is no license information available for the latest version (10.0.0) of this package.
10.0.0
2025-02-04 08:49 UTC
Requires
- ext-json: *
- doctrine/orm: *
- fittinq/logger-elasticsearch: ^6.0
- fittinq/symfony-opsgenie2: ^6.0
- fittinq/symfony-rabbitmq: ^19.0
- symfony/framework-bundle: ^6.1
- symfony/http-client: ^6.1
Requires (Dev)
- fittinq/symfony-mock: ^7.0
- phpunit/phpunit: ^9.5
- symfony/yaml: ^6.1
- dev-main
- 10.0.0
- 9.1.4
- 9.1.3
- 9.1.2
- 9.1.1
- 9.1.0
- 9.0.8
- 9.0.7
- 9.0.6
- 9.0.5
- 9.0.4
- 9.0.3
- 9.0.2
- 9.0.1
- 9.0.0
- 8.0.2
- 8.0.1
- 8.0.0
- 7.2.5
- 7.2.4
- 7.2.3
- 7.2.2
- 7.2.1
- 7.2.0
- 7.1.0
- 7.0.0
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.0
- 4.0.1
- 4.0.0
- 3.1.0
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.0.1
- 2.0.0
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2025-02-04 07:50:40 UTC
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\Opsgenie; 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=