glean / mozilla.telemetry.glean.private / StringListMetricType / <init>


StringListMetricType(disabled: Boolean, category: String, lifetime: Lifetime, name: String, sendInPings: List<String>)

The public constructor used by automatically-generated metrics.

StringListMetricType(handle: Long, disabled: Boolean, sendInPings: List<String>)

This implements the developer facing API for recording string list metrics.

Instances of this class type are automatically generated by the parsers at build time, allowing developers to record values that were previously registered in the metrics.yaml file.

The string list API only exposes the add and set methods, which takes care of validating the input data and making sure that limits are enforced.

The internal constructor is only used by LabeledMetricType directly.