MetricFamilySamples constructor

MetricFamilySamples(
  1. String name,
  2. MetricType type,
  3. String help,
  4. List<Sample> samples,
)

Constructs a new metric family with a name, type, help text and related samples.

Implementation

MetricFamilySamples(this.name, this.type, this.help, List<Sample> samples)
    : samples = List.unmodifiable(samples);