Function Stats.setMetricTo

Sets the metric's value to some amount and attach some labels to it

void setMetricTo(string metricName, LabelTs...) (
  ulong amount,
  LabelTs labels_packed
) pure nothrow @safe;

Parameters

NameDescription
metricName name of the metric we want to change LabelTs... = types of the labels
amount metric will be increased by this amount
labels_packed labels that will be attached to the metric