Piwik\Columns\
A factory to create metrics from a dimension.
The class defines the following methods:
__construct()
— Generates a new dimension metric factory.createCustomMetric()
createComputedMetric()
createMetric()
__construct()
Generates a new dimension metric factory.
$dimension
(Dimension
) —
A dimension instance the created metrics should be based on.createCustomMetric()
It accepts the following parameter(s):
$metricName
$readableName
$aggregation
$documentation
$semanticType
(string
) —
It returns a Piwik\Plugin\ArchivedMetric
value.
createComputedMetric()
It accepts the following parameter(s):
$metricName1
$metricName2
$aggregation
It returns a Piwik\Plugin\ComputedMetric
value.
createMetric()
It accepts the following parameter(s):
$aggregation
It returns a Piwik\Plugin\ArchivedMetric
value.