Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
wiki.bernardino.org /
includes /
libs /
stats /
Delete
Unzip
Name
Size
Permission
Date
Action
BufferingStatsdDataFactory.php
2.54
KB
-rw-r--r--
2016-11-28 20:20
NullStatsdDataFactory.php
2.74
KB
-rw-r--r--
2016-11-28 20:20
SamplingStatsdClient.php
4.28
KB
-rw-r--r--
2016-11-28 20:20
StatsdAwareInterface.php
408
B
-rw-r--r--
2016-11-28 20:20
Save
Rename
<?php use Liuggio\StatsdClient\Entity\StatsdData; use Liuggio\StatsdClient\Entity\StatsdDataInterface; use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface; /** * @author Addshore * @since 1.27 */ class NullStatsdDataFactory implements StatsdDataFactoryInterface { /** * This function creates a 'timing' StatsdData. * * @param string|array $key The metric(s) to set. * @param float $time The elapsed time (ms) to log **/ public function timing( $key, $time ) { } /** * This function creates a 'gauge' StatsdData. * * @param string|array $key The metric(s) to set. * @param float $value The value for the stats. **/ public function gauge( $key, $value ) { } /** * This function creates a 'set' StatsdData object * A "Set" is a count of unique events. * This data type acts like a counter, but supports counting * of unique occurrences of values between flushes. The backend * receives the number of unique events that happened since * the last flush. * * The reference use case involved tracking the number of active * and logged in users by sending the current userId of a user * with each request with a key of "uniques" (or similar). * * @param string|array $key The metric(s) to set. * @param float $value The value for the stats. * * @return array **/ public function set( $key, $value ) { return []; } /** * This function creates a 'increment' StatsdData object. * * @param string|array $key The metric(s) to increment. * @param float|1 $sampleRate The rate (0-1) for sampling. * * @return array **/ public function increment( $key ) { return []; } /** * This function creates a 'decrement' StatsdData object. * * * @param string|array $key The metric(s) to decrement. * @param float|1 $sampleRate The rate (0-1) for sampling. * * @return mixed **/ public function decrement( $key ) { return []; } /** * This function creates a 'updateCount' StatsdData object. * * @param string|array $key The metric(s) to decrement. * @param integer $delta The delta to add to the each metric * * @return mixed **/ public function updateCount( $key, $delta ) { return []; } /** * Produce a StatsdDataInterface Object. * * @param string $key The key of the metric * @param int $value The amount to increment/decrement each metric by. * @param string $metric The metric type * ("c" for count, "ms" for timing, "g" for gauge, "s" for set) * * @return StatsdDataInterface **/ public function produceStatsdData( $key, $value = 1, $metric = StatsdDataInterface::STATSD_METRIC_COUNT ) { $data = new StatsdData(); $data->setKey( $key ); $data->setValue( $value ); $data->setMetric( $metric ); return $data; } }