Create a health check report to be verified by Oh Dear
Using this package you can build up the JSON that Oh Dear expects for the health check.
Installation
You can install the package via composer:
composer require ohdearapp/health-check-report
Usage
Here's an example that shows how you can create the JSON that Oh Dear expects for the health check.
$lines = [
new Line(
'name',
'message',
'ok',
['name' => 'value']
)
];
$report = new Report(
finishedAt: new DateTimeImmutable('2001-01-01 00:00:00'),
lines: $lines,
);
This will output this JSON:
{"finishedAt":"2001-01-01 00:00:00","lines":[{"name":"name","message":"message","status":"ok","meta":{"name":"value"}}]}
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.