tonicforhealth/health-checker-incident

健康检查事件REST微服务

v0.1.5 2016-07-28 15:38 UTC

This package is not auto-updated.

Last update: 2024-09-23 12:55:59 UTC


README

License Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight

此服务允许健康委员会系统使用接口聚合事件,并对不同主题进行通知传输。

要求

  • 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)
  • 电子邮件