Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\Utils\BufferedStatsdCollector Class Reference

Public Member Functions

 __construct (BlobStore $blobStore, $statsdId)
 
 shouldRecord ( $shouldRecord)
 
 getStats ()
 
 incr ( $key)
 
 init ( $key, $default)
 
 set ( $key, $value)
 
 calcMedian ( $key, $value)
 
 saveStats ()
 
 recordStats ( $asPending=false)
 

Public Attributes

const VERSION = '0.2'
 
const STATS_INIT = 'init'
 
const STATS_INCR = 'incr'
 
const STATS_SET = 'set'
 
const STATS_MEDIAN = 'median'
 
const CACHE_NAMESPACE = 'smw:stats:store'
 

Detailed Description

Collect statistics in a provisional schema-free storage that depends on the availability of the cache back-end.

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Utils\BufferedStatsdCollector::__construct ( BlobStore  $blobStore,
  $statsdId 
)
Since
2.5
Parameters
BlobStore$blobStore
string$statsdId

Member Function Documentation

◆ calcMedian()

SMW\Utils\BufferedStatsdCollector::calcMedian (   $key,
  $value 
)
Since
2.5
Parameters
string | array$key
integer$value

◆ getStats()

SMW\Utils\BufferedStatsdCollector::getStats ( )
Since
2.5
Returns
array

◆ incr()

SMW\Utils\BufferedStatsdCollector::incr (   $key)
Since
2.5
Parameters
string | array$key

◆ init()

SMW\Utils\BufferedStatsdCollector::init (   $key,
  $default 
)
Since
2.5
Parameters
string | array$key
string | integer$default

◆ recordStats()

SMW\Utils\BufferedStatsdCollector::recordStats (   $asPending = false)
Since
2.5
Parameters
boolean$asPending

◆ saveStats()

SMW\Utils\BufferedStatsdCollector::saveStats ( )
Since
2.5

◆ set()

SMW\Utils\BufferedStatsdCollector::set (   $key,
  $value 
)
Since
2.5
Parameters
string | array$key
string | integer$value

◆ shouldRecord()

SMW\Utils\BufferedStatsdCollector::shouldRecord (   $shouldRecord)
Since
2.5
Parameters
boolean$shouldRecord

Member Data Documentation

◆ CACHE_NAMESPACE

const SMW\Utils\BufferedStatsdCollector::CACHE_NAMESPACE = 'smw:stats:store'

Namespace occupied by the BlobStore

◆ STATS_INIT

const SMW\Utils\BufferedStatsdCollector::STATS_INIT = 'init'

Available operations

◆ VERSION

const SMW\Utils\BufferedStatsdCollector::VERSION = '0.2'

Update this version number when the serialization format changes.


The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy