src/Bayer/DataDogClient/Client.php
public function sendMetric(Metric $metric) {
        $points = $metric->getPoints();
        if (empty($points)) {
            throw new EmptyMetricException('The metric must contain points to send');
        }

        $this->sendSeries(new Series($metric));

        return $this;
    }
public function sendMetric(Metric $metric) {
        $points = $metric->getPoints();
        if (empty($points)) {
            throw new EmptyMetricException('The metric must contain points to send');
        }

        $this->sendSeries(new Series($metric));

        return $this;
    }
public function sendMetric ( Metric $ metric ) { $ points = $ metric -> getPoints ( ) ; if ( empty ( $ points ) ) { throw new EmptyMetricException ( 'The metric must contain points to send' ) ; } $ this -> sendSeries ( new Series ( $ metric ) ) ; return $ this ; }
Send a Metric object to datadog

The metric object will be encapsulated into a
dummy series, as the datadog API requires.

@param Metric $metric
@throws EmptyMetricException

@return Client
Send a Metric object to datadog