protected function getBasePacket(MetricInterface $metric, $timestamp)
    {
        $packet = $this->buildTimestamp($timestamp);
        $packet .= $this->buildString(self::PART_TYPE_HOST, $this->host);
        $packet .= $this->buildString(self::PART_TYPE_PLUGIN, $metric->getName());
//        $packet .= $this->buildString(self::PART_TYPE_PLUGIN_INSTANCE, 'none');

        return $packet;
    }
protected function getBasePacket(MetricInterface $metric, $timestamp)
    {
        $packet = $this->buildTimestamp($timestamp);
        $packet .= $this->buildString(self::PART_TYPE_HOST, $this->host);
        $packet .= $this->buildString(self::PART_TYPE_PLUGIN, $metric->getName());
//        $packet .= $this->buildString(self::PART_TYPE_PLUGIN_INSTANCE, 'none');

        return $packet;
    }
protected function getBasePacket ( MetricInterface $ metric , $ timestamp ) { $ packet = $ this -> buildTimestamp ( $ timestamp ) ; $ packet .= $ this -> buildString ( self :: PART_TYPE_HOST , $ this -> host ) ; $ packet .= $ this -> buildString ( self :: PART_TYPE_PLUGIN , $ metric -> getName ( ) ) ; //        $packet .= $this->buildString(self::PART_TYPE_PLUGIN_INSTANCE, 'none'); return $ packet ; }
The length field of those parts must therefore always be set to 12

@param MetricInterface $metric
@param integer        $timestamp

@return binary
The length field of those parts must therefore always be set to 12