public function send($data)
    {
        $pieces = [
          $this->config['apiKey'],
          $this->config['prefix'],
          $data.' '.time(),
        ];
        $message = implode('.', $pieces).PHP_EOL;

        return $this->sendData($this->config['host'], $this->config['port'], $message);
    }
public function send($data)
    {
        $pieces = [
          $this->config['apiKey'],
          $this->config['prefix'],
          $data.' '.time(),
        ];
        $message = implode('.', $pieces).PHP_EOL;

        return $this->sendData($this->config['host'], $this->config['port'], $message);
    }
public function send ( $ data ) { $ pieces = [ $ this -> config [ 'apiKey' ] , $ this -> config [ 'prefix' ] , $ data . ' ' . time ( ) , ] ; $ message = implode ( '.' , $ pieces ) . PHP_EOL ; return $ this -> sendData ( $ this -> config [ 'host' ] , $ this -> config [ 'port' ] , $ message ) ; }
Data to send to Graphite host

@param string $data

@return bool
Data to send to Graphite host