'Declaration
Public Overloads Shared Function AddOrGet( _ ByVal definitions As MetricDefinitionCollection, _ ByVal metricTypeName As String, _ ByVal categoryName As String, _ ByVal counterName As String, _ ByVal metricSampleType As MetricSampleType, _ ByVal unitCaption As String, _ ByVal description As String _ ) As CustomSampledMetricDefinition
public static CustomSampledMetricDefinition AddOrGet( MetricDefinitionCollection definitions, string metricTypeName, string categoryName, string counterName, MetricSampleType metricSampleType, string unitCaption, string description )
Parameters
- definitions
- The definitions dictionary this definition is a part of
- metricTypeName
- The unique metric type
- categoryName
- The name of the category with which this definition is associated.
- counterName
- The name of the definition within the category.
- metricSampleType
- The type of data captured for each metric under this definition.
- unitCaption
- The display caption for the calculated values captured under this metric.
- description
- A description of what is tracked by this metric, suitable for end-user display.