Class MetricDefinition


  • public class MetricDefinition
    extends Object
    This type defines a metric that is attached to a tracepoint.
    • Constructor Detail

      • MetricDefinition

        public MetricDefinition​(String name,
                                List<MetricDefinition.Label> labels,
                                String type,
                                String expression,
                                String namespace,
                                String help,
                                String unit)
        Create a new MetricDefinition.
        Parameters:
        name - the name of the metric
        labels - the labels attached to the metric
        type - the type of the metric
        expression - the expression used to calculate the value for this metric
        namespace - the namespace the metric should be in
        help - the help statement for the metric
        unit - the unit for the metric