tonicforhealth / health-checker-incident
健康检查事件REST微服务
v0.1.5
2016-07-28 15:38 UTC
Requires
- php: >=5.5.9
- doctrine/doctrine-bundle: ~1.6
- doctrine/doctrine-cache-bundle: ~1.2
- doctrine/orm: ~2.5
- gremo/hmac-authentication-bundle: ^0.1.1
- incenteev/composer-parameter-handler: ~2.0
- jms/serializer-bundle: ~1.1
- puli/composer-plugin: dev-classmap as 1.0-beta10
- puli/symfony-bundle: ~1.0
- sensio/distribution-bundle: ~5.0
- sensio/framework-extra-bundle: ~3.0.2
- symfony/monolog-bundle: ~2.8
- symfony/symfony: 3.0.*
- tonicforhealth/health-checker-incident-component: ~0.1
Requires (Dev)
- phpunit/phpunit: ~4.8
- sensio/generator-bundle: ^3.0
- symfony/phpunit-bridge: ^3.0
This package is not auto-updated.
Last update: 2024-09-23 12:55:59 UTC
README
此服务允许健康委员会系统使用接口聚合事件,并对不同主题进行通知传输。
要求
- PHP 5.5 或更高版本
- ext-pdo_sqlite
- ext-imap
使用 Composer 进行安装
composer create-project tonicforhealth/health-checker-incident
设置
为了正确运行 health-checker-incident 应用程序,您需要安装 cachet
然后设置其配置以及其他主题项目 app/config/parameter.php
...
incident.notifications.subjects:
file:
file1:
target: 'fileName'
request:
cached:
target: 'https://:8000/api/v1'
email:
drefixs:
schedule: '* * 0,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,30,31 * * *'
target: email@example.com
...
使用 symfony 内置服务器运行应用程序
bin/console server:run
使用 docker-compose 运行应用程序
git clone git@github.com:tonicforhealth/health-checker-incident-docker.git cd health-checker-incident-docker cp config/parameters.default.yml config/parameters.yml vi config/parameters.yml # set up right config docker-compose up -d incident-web
它具有哪些通知类型
- 文件
- 请求(cachet)
- 电子邮件