View
class View
View allows users to aggregate the recorded stats.Measurements.
Views need to be passed to the Stats::registerView function before data will be collected and sent to Exporters.
Traits
Internal utility methods for working with tag keys, tag values, and metric names.
Methods
__construct(string $name, string $description, Measure $measure, Aggregation $aggregation, TagKey ...$tagKeys)
Creates a new View.
string
getName()
Retrieves the name of the view.
string
getDescription()
Retrieves the description of the view.
array
getTagKeys()
Retrieves the TagKeys used by the view.
getMeasure()
Return the Measure this View aggregates.
getAggregation()
Returns the Aggregation of the View.
Details
at line 55
final
__construct(string $name, string $description, Measure $measure, Aggregation $aggregation, TagKey ...$tagKeys)
Creates a new View.
at line 84
string
getName()
Retrieves the name of the view.
at line 94
string
getDescription()
Retrieves the description of the view.
at line 104
array
getTagKeys()
Retrieves the TagKeys used by the view.
at line 114
Measure
getMeasure()
Return the Measure this View aggregates.
at line 124
Aggregation
getAggregation()
Returns the Aggregation of the View.