Ejemplo n.º 1
0
 /// <summary>
 /// Return the <see cref="Core.Counter"/> registered under this name; or create and register
 /// a new <see cref="Core.Counter"/> if none is registered.
 /// </summary>
 /// <param name="name">The metric name</param>
 /// <returns>a new or pre-existing <see cref="Core.Counter"/></returns>
 public Counter Counter(string name)
 {
     return(Counter(MetricName.build(name)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Given an <see cref="IMetric"/>, registers it under the given name
 /// </summary>
 /// <typeparam name="T">the type of the metric</typeparam>
 /// <param name="name">the name of the metric</param>
 /// <param name="metric">the metric</param>
 /// <returns><see cref="IMetric"/></returns>
 public T Register <T>(string name, T metric) where T : IMetric
 {
     return(Register(MetricName.build(name), metric));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Return the <see cref="Core.Meter"/> registered under this name; or create and register
 /// a new <see cref="Core.Meter"/> if none is registered.
 /// </summary>
 /// <param name="name">The metric name</param>
 /// <returns>a new or pre-existing <see cref="Core.Meter"/></returns>
 public Meter Meter(string name)
 {
     return(Meter(MetricName.build(name)));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Return the <see cref="Core.Timer"/> registered under this name; or create and register
 /// a new <see cref="Core.Timer"/> if none is registered.
 /// </summary>
 /// <param name="name">The metric name</param>
 /// <returns>a new or pre-existing <see cref="Core.Timer"/></returns>
 public Timer Timer(String name)
 {
     return(Timer(MetricName.build(name)));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Return the <see cref="Core.Histogram"/> registered under this name; or create and register
 /// a new <see cref="Core.Histogram"/> if none is registered.
 /// </summary>
 /// <param name="name">The metric name</param>
 /// <returns>a new or pre-existing <see cref="Core.Histogram"/></returns>
 public Histogram Histogram(string name)
 {
     return(Histogram(MetricName.build(name)));
 }