Skip to content
Last updated

WHMCS\UsageBilling\Contracts\Metrics\MetricInterface

Interface

MetricInterface

Constants

NameDescription
TYPE_SNAPSHOT
TYPE_PERIOD_DAY
TYPE_PERIOD_MONTH

Methods

usage

public function usage()

Returns UsageInterface

withUsage

public function withUsage(UsageInterface $usage = null)

units

public function units()

Returns UnitInterface;

systemName

public function systemName()

Canonical name to be used by code and between systems

Returns string

displayName

public function displayName()

Name to render in UI to users

Returns string

type

public function type()

One of the TYPE_* constants of this instance

Returns string