- implement a HTTP health check API that can be hit to perform basic application diagnostics
- application instance health check
- application release health check
use wanmigs\HealthCheck\SystemCheck;
$system = new SystemCheck();
results :
{
'status': 'OK'
'timestamp': '2019-06-14T04:01:03Z00:00'
'instance-id': '<hostname>'
}
Details :
- php version
- php component checks
results :
{
'timestamp': '2019-06-14T04:01:03Z00:00'
'instance-id': '<hostname>'
'php-version': 'php7.2'
'php-modules': [
'mbstring',
. . .
]
}
Details :
- information stored from
build.json
generated from CI build
build.json
{
'start': '2019-06-14T04:01:03Z00:00'
'end': '2019-06-14T04:01:03Z00:00',
'status': 'SUCCESS',
'branch': '<git-branch>',
'release': '<git-relesae-tag>',
'commit': '<git-commit-id>',
'build': '<CI-build-id>'
'config': '<configuration-id-from-CD>'
}
https://gist.github.com/wanmigs/90db26e95be708f9d7b9ac6fd3052c62