Skip to content
Snippets Groups Projects

update appmonitor client

Merged Hahn Axel (hahn) requested to merge update-appmonitor into master
14 files
+ 954
84
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -42,8 +42,10 @@ if (!class_exists('appmonitorcheck')) {
* 2020-05-03 0.110 axel.hahn@iml.unibe.ch update renderHtmloutput<br>
* 2023-07-06 0.128 axel.hahn@unibe.ch update httpcontent check<br>
* 2024-07-19 0.137 axel.hahn@unibe.ch php 8 only: use typed variables
* 2024-11-22 0.141 axel.hahn@unibe.ch Set client version to server version after updating http, mysqli and app checks
* 2025-01-02 0.149 axel.hahn@unibe.ch add getChecks method
* --------------------------------------------------------------------------------<br>
* @version 0.137
* @version 0.149
* @author Axel Hahn
* @link TODO
* @license GPL
@@ -57,7 +59,7 @@ class appmonitor
* Name and Version number
* @var string
*/
protected string $_sVersion = 'php-client-v0.137';
protected string $_sVersion = 'php-client-v0.149';
/**
* config: default ttl for server before requesting the client check again
@@ -402,6 +404,15 @@ class appmonitor
die('<h1>503 Service Unavailable</h1>' . $sMessage);
}
/**
* Get array with executed checks
* @return array
*/
public function getChecks(): array
{
return $this->_aChecks;
}
/**
* Get full array for response with metadata and checks
* @return array
Loading