Beberlei\Metrics\Collector\Collector::flush PHP Method

flush() public method

Sends the metrics to the adapter backend.
public flush ( )
    public function flush();

Usage Example

 /**
  * {@inheritdoc}
  */
 public function publish(array $metrics)
 {
     foreach ($metrics as $metric) {
         $this->publishMetric($metric);
     }
     if ($this->autoFlush) {
         $this->beberleiCollector->flush();
     }
 }
All Usage Examples Of Beberlei\Metrics\Collector\Collector::flush