You are here

public static function StatsD::decrement in StatsD 6

Same name and namespace in other branches
  1. 7.2 includes/statsd.inc \StatsD::decrement()
  2. 7 includes/statsd.inc \StatsD::decrement()

Decrements one or more stats counters.

Parameters

$stats: A string or an array of string representing the metric(s) to decrement.

$sample_rate: A float between 0 and 1 representing the sampling rate.

Return value

boolean

File

includes/statsd.inc, line 68

Class

StatsD
Sends statistics to the stats daemon over UDP

Code

public static function decrement($stats, $sample_rate = NULL) {
  self::updateStats($stats, -1, $sample_rate);
}