<?php
class MetricsService{
public function snapshot(){
return ['status'=>'OK','memory'=>memory_get_usage(true),'peak_memory'=>memory_get_peak_usage(true),'php_version'=>PHP_VERSION,'time'=>date('c')];
}}
