tonicforhealth/health-checker-incident

Health checker incident REST microservice

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

This package is not auto-updated.

Last update: 2024-11-18 13:42:37 UTC


README

License Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight

This service allows Health board system to use interface for aggregating incidents and performs notification transmit for heterogeneous subjects.

Requirements

  • PHP 5.5 or higher
  • ext-pdo_sqlite
  • ext-imap

Installation using Composer

composer create-project tonicforhealth/health-checker-incident

Setup

For the correct run of health-checker-incident app you need to install cachet:

Then set up config for it and other subject items app/config/parameter.php:

...
incident.notifications.subjects:
    file:
        file1:
            target: 'fileName'
    request:
        cached:
            target: 'http://localhost: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
...

Run of the app using symfony built in server

bin/console server:run

Run of the app with 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

What notification types it has:

  • file
  • request (cachet)
  • email