コード例 #1
0
 public Metric(int id, string description, ISimpleMetric metric)
 {
     _metric     = metric;
     Description = description;
     Id          = id;
 }
コード例 #2
0
 /// <summary>
 /// A method that can be overridden to perform processing after the metric is created
 /// </summary>
 /// <param name="name">The name of the metric</param>
 /// <param name="help">The help text associated with the metric</param>
 /// <param name="delayPublish">True if the value should delay publishing until it has a value written to it</param>
 /// <param name="labels">Labels associated with the metric that may demonstrate different views. It is up to the metric provider whether it is supported and the number of labels that are supported, no exceptions will be raised as a result but many providers will demonstrate a performance impact for too many labels as it may create descrete metrics.</param>
 /// <param name="metricInstance">The instance that was created</param>
 protected virtual void MetricPostcreate(string name, string help, bool delayPublish, string[] labels, ISimpleMetric metricInstance)
 {
 }