承接 fittinq/symfony-rabbitmq-bundle 相关项目开发

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

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

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

  1. 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);
    
  2. 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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-08-28