MediaWiki  master
Wikimedia\Metrics\Sample Class Reference

Public Member Functions

 __construct (array $data)
 
 getLabels ()
 
 getValue ()
 

Detailed Description

Definition at line 31 of file Sample.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Metrics\Sample::__construct ( array  $data)
Parameters
array$dataassociative array:
  • labels: (string[]) Array of label values associated with the metric
  • value: (numeric) The metric value

Definition at line 43 of file Sample.php.

Member Function Documentation

◆ getLabels()

Wikimedia\Metrics\Sample::getLabels ( )
Returns
string[]

Definition at line 49 of file Sample.php.

◆ getValue()

Wikimedia\Metrics\Sample::getValue ( )
Returns
float

Definition at line 54 of file Sample.php.


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