定制 lafourchette/pager-duty-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

lafourchette/pager-duty-bundle

最新稳定版本:v0.1.2

Composer 安装命令:

composer require lafourchette/pager-duty-bundle

包简介

Trigger PagerDuty events easily from your Symfony2 application.

README 文档

README

Build Status Code Coverage Scrutinizer Code Quality

Trigger PagerDuty events easily from your Symfony2 application.

A simple example

In your config.yml file:

la_fourchette_pager_duty:
    services:
        my_service_alias: {key: "the 32 char GUID provided by PagerDuty"}

You'll find the service GUID at https://<your subdomain>.pagerduty.com/services

Then somewhere in your code where something really bad happens:

$event = $this->get('la_fourchette_pager_duty.factory.event')
    ->make("my_service_alias", "something bad happened");

// @throw PagerDuty\EventException if PagerDuty API 500s
$event->trigger();

LiipMonitor compatibility

If you're using liip/monitor-bundle, you're provided a "pagerduty" reporter which triggers PagerDuty on failures. You're just required to implement the Check/PagerDutyCheckInterface.

# Trigger pager duty on failed checks
app/console monitor:health --reporter=pagerduty

Installation

First, add PagerDutyBundle to the list of dependencies inside your composer.json:

{
    "require-dev": {
        "lafourchette/pager-duty-bundle": "~0.1"
    }
}

Then update your AppKernel.php:

    public function registerBundles()
    {
        $bundles = array(
            ...
            new LaFourchette\PagerDutyBundle\LaFourchettePagerDutyBundle()
            ...
        );

        return $bundles;
    }

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 44
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-04-15