Metric

class Metric implements MetricInterface

Methods summary

Return Type Method Name Description
__construct($systemName, $displayName = null, $type = null, UnitInterface $units = null, UsageInterface $usage = null) -
UsageInterface usage() -
withUsage(UsageInterface $usage = null) -
UnitInterface; units() -
string systemName() Canonical name to be used by code and between systems
string displayName() Name to render in UI to users
string type() One of the TYPE_* constants of this instance

Details

__construct ($systemName, $displayName = null, $type = null, UnitInterface $units = null, UsageInterface $usage = null)

Parameters

$systemName
$displayName
$type
UnitInterface $units
UsageInterface $usage

UsageInterface usage ()

Return Value

UsageInterface

withUsage (UsageInterface $usage = null)

Parameters

UsageInterface $usage

UnitInterface; units ()

Return Value

UnitInterface;

string systemName ()

Canonical name to be used by code and between systems

Return Value

string

string displayName ()

Name to render in UI to users

Return Value

string

string type ()

One of the TYPE_* constants of this instance

Return Value

string