(any)
(any)
Used when the exhaustive values of a label is not clear e.g. When it is stats for errorCodes.
(string)
The name of the label.
object
:
{
[labelValue]
: count}.
Add a new metrics unit from metrics-specs.
Load a list of metrics specs to metricsUnits.
(Array)
List of metrics specs.
List the metrics unit instances stored in metricsUnits.
object
:
<{
[metrics name]
: metrics unit instance}>.
Find a metrics unit by action/type or by name(higher priority).
object
:
The metrics unit instance.
Clear instances stored in metricsUnits and prometheus.register.
Check if object a contains another object b by shallow equal.
boolean
:
If contains.
Trim object keys to the target array.
object
:
The new object with trimmed keys.