lafourchette/pager-duty-bundle
最新稳定版本:v0.1.2
Composer 安装命令:
composer require lafourchette/pager-duty-bundle
包简介
Trigger PagerDuty events easily from your Symfony2 application.
README 文档
README
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
其他信息
- 授权协议: Unknown
- 更新时间: 2015-04-15