MediaWiki master
Wikimedia\WRStats\MetricSpec Class Reference

Class representation of normalized metric specifications. More...

Public Member Functions

 __construct (array $spec)
 

Public Attributes

float int $resolution
 
array< string, SequenceSpec$sequences
 Sequences in ascending order of expiry.
 
string $type
 
const DEFAULT_RESOLUTION = 1
 The default (value axis) resolution.
 

Detailed Description

Class representation of normalized metric specifications.

Access: internal

Definition at line 10 of file MetricSpec.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\WRStats\MetricSpec::__construct ( array $spec)
Parameters
array$spec

Definition at line 24 of file MetricSpec.php.

References Wikimedia\WRStats\MetricSpec\$sequences, and Wikimedia\WRStats\MetricSpec\DEFAULT_RESOLUTION.

Member Data Documentation

◆ $resolution

float int Wikimedia\WRStats\MetricSpec::$resolution

Definition at line 17 of file MetricSpec.php.

◆ $sequences

array<string,SequenceSpec> Wikimedia\WRStats\MetricSpec::$sequences

Sequences in ascending order of expiry.

Definition at line 19 of file MetricSpec.php.

Referenced by Wikimedia\WRStats\MetricSpec\__construct().

◆ $type

string Wikimedia\WRStats\MetricSpec::$type

Definition at line 15 of file MetricSpec.php.

◆ DEFAULT_RESOLUTION

const Wikimedia\WRStats\MetricSpec::DEFAULT_RESOLUTION = 1

The default (value axis) resolution.

Definition at line 12 of file MetricSpec.php.

Referenced by Wikimedia\WRStats\MetricSpec\__construct().


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