fittinq/symfony-opsgenie2 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

fittinq/symfony-opsgenie2

最新稳定版本:6.0.0

Composer 安装命令:

composer require fittinq/symfony-opsgenie2

包简介

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\Opsgenie\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);
    
  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=

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-09-17