src/Rxnet/Statsd/Statsd.php
public function updateStats($stats, $delta = 1, $sampleRate = 1, array $tags = null)
    {
        if (!is_array($stats)) {
            $stats = array($stats);
        }
        $data = array();
        foreach ($stats as $stat) {
            $data[$stat] = "$delta|c";
        }
        return $this->send($data, $sampleRate, $tags);
    }
public function updateStats($stats, $delta = 1, $sampleRate = 1, array $tags = null)
    {
        if (!is_array($stats)) {
            $stats = array($stats);
        }
        $data = array();
        foreach ($stats as $stat) {
            $data[$stat] = "$delta|c";
        }
        return $this->send($data, $sampleRate, $tags);
    }
public function updateStats ( $ stats , $ delta = 1 , $ sampleRate = 1 , array $ tags = null ) { if ( ! is_array ( $ stats ) ) { $ stats = array ( $ stats ) ; } $ data = array ( ) ; foreach ( $ stats as $ stat ) { $ data [ $ stat ] = "$delta|c" ; } return $ this -> send ( $ data , $ sampleRate , $ tags ) ; }
Updates one or more stats counters by arbitrary amounts.

@param string|array $stats The metric(s) to update. Should be either a string or array of metrics.
@param int|1 $delta The amount to increment/decrement each metric by.
@param float|1 $sampleRate the rate (0-1) for sampling.
@param array|string $tags Key Value array of Tag => Value, or single tag as string

@return Observable
Updates one or more stats counters by arbitrary amounts .