public function updateStats($key, $delta = 1, $sampleRate = 1, $metric = 'c')
    {
        if (!is_array($key)) {
            $key = array($key);
        }
        $data = array();
        foreach ($key as $stat) {
            $data[$stat] = "$delta|$metric";
        }
        $this->send($data, $sampleRate);
    }
public function updateStats($key, $delta = 1, $sampleRate = 1, $metric = 'c')
    {
        if (!is_array($key)) {
            $key = array($key);
        }
        $data = array();
        foreach ($key as $stat) {
            $data[$stat] = "$delta|$metric";
        }
        $this->send($data, $sampleRate);
    }
public function updateStats ( $ key , $ delta = 1 , $ sampleRate = 1 , $ metric = 'c' ) { if ( ! is_array ( $ key ) ) { $ key = array ( $ key ) ; } $ data = array ( ) ; foreach ( $ key as $ stat ) { $ data [ $ stat ] = "$delta|$metric" ; } $ this -> send ( $ data , $ sampleRate ) ; }
Updates one or more stats.

@param string|array $key The metric(s) to update. Should be either a string or array of metrics.
@param int $delta The amount to increment/decrement each metric by.
@param float|int $sampleRate the rate (0-1) for sampling.
@param string $metric The metric type ("c" for count, "ms" for timing, "g" for gauge, "s" for set)
@return boolean
Updates one or more stats .