You are here

public static function StatsD::getDefaultProperties in StatsD 7.2

Return the default class properties.

Return value

array A hash of name-default_value property descriptions.

2 calls to StatsD::getDefaultProperties()
StatsD::__construct in includes/statsd.inc
Constructor. Copy valid arguments to public properties, ignore others.
statsd_instance in ./statsd.module
Static instance function for StatsD.

File

includes/statsd.inc, line 40

Class

StatsD
Sends statistics to the stats daemon over UDP.

Code

public static function getDefaultProperties() {
  $statsd = new ReflectionClass(__CLASS__);

  // @todo: Find out if this can be done easier with get_object_vars()
  $properties = array();
  $properties['enabled'] = $statsd->enabled;
  $properties['sampleRate'] = $statsd->sampleRate;
  $properties['host'] = $statsd->host;
  $properties['port'] = $statsd->port;
  $properties['prefix'] = $statsd->prefix;
  $properties['suffix'] = $statsd->suffix;
  return $properties;
}