protected override IGauge CreateGauge(string name, MetricAttribute attribute) { return(new InMemoryElement(name, attribute)); }
public InMemoryElement(string name, MetricAttribute attribute) { Name = name; Attribute = attribute; }
protected override ITimer CreateTimer(string name, MetricAttribute attribute) { return(new InMemoryElement(name, attribute)); }
protected override IGauge CreateGauge(string name, MetricAttribute attribute) { return(Dummy); }
protected override ITimer CreateTimer(string name, MetricAttribute attribute) { return(Dummy); }
/// <summary> /// Creates a gauge with the given gauge name and set of tags. The actual metric name is a combination of those two /// values. The timer starts at 0. /// </summary> /// <param name="name">The gauge name</param> /// <param name="attribute">The attributes to add to the counter</param> /// <returns>A <see cref="IGauge"/> with a metric name following the gauge name and tags</returns> protected abstract IGauge CreateGauge(string name, MetricAttribute attribute);
/// <summary> /// Creates a timer with the given timer name and set of tags. The actual metric name is a combination of those two /// values. The timer starts at 0. /// </summary> /// <param name="name">The timer name</param> /// <param name="attribute">The attributes to add to the counter</param> /// <returns>A <see cref="ITimer"/> with a metric name following the counter name and tags</returns> protected abstract ITimer CreateTimer(string name, MetricAttribute attribute);
/// <summary> /// Creates a counter with the given gauge name and set of tags. The actual metric name is a combination of those two /// values. The counter starts at 0. /// </summary> /// <param name="name">The counter name</param> /// <param name="attribute">The attributes to add to the counter</param> /// <returns>A <see cref="ICounter"/> with a metric name following the counter name and tags</returns> protected abstract ICounter CreateCounter(string name, MetricAttribute attribute);