Exemple #1
0
 /**
  * @inheritdoc
  */
 public function format(Metric $metric)
 {
     switch ($metric->getType()) {
         case 'gauge':
             return $this->processGauge($metric);
         default:
             return $this->process($metric);
     }
 }
 /**
  * @inheritdoc
  */
 public function format(Metric $metric)
 {
     switch ($metric->getType()) {
         case 'counter':
         case 'memory':
             return $this->process($metric, 'c');
         case 'timer':
             return $this->process($metric, 'ms');
         case 'gauge':
             return $this->process($metric, 'g');
         case 'unique':
             return $this->process($metric, 's');
     }
     return false;
 }