public function MetricService::getServerData in Drupalmonitor 8
Get Server Data.
Return value
array Server Data.
File
- src/
MetricService.php, line 151
Class
- MetricService
- Class MetricService.
Namespace
Drupal\drupalmonitorCode
public function getServerData() {
$info = [];
$info['php_uname'] = php_uname('s');
$info['system_load'] = sys_getloadavg();
$info['php_version'] = phpversion();
$info['getrusage'] = getrusage();
$info['sys_get_temp_dir'] = sys_get_temp_dir();
$info['PHP_SERVER'] = $_SERVER;
$info['phpinfo'] = $this
->getPhpInfoAsArray();
return $info;
}