Class MetricDefinition
- java.lang.Object
-
- com.intergral.deep.agent.api.plugin.MetricDefinition
-
public class MetricDefinition extends Object
This type defines a metric that is attached to a tracepoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricDefinition.LabelThis type is used to represent a label that is attached to a metric.
-
Constructor Summary
Constructors Constructor Description MetricDefinition(String name, List<MetricDefinition.Label> labels, String type, String expression, String namespace, String help, String unit)Create a new MetricDefinition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetExpression()StringgetHelp()List<MetricDefinition.Label>getLabels()StringgetName()StringgetNamespace()StringgetType()StringgetUnit()inthashCode()StringtoString()
-
-
-
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 metriclabels- the labels attached to the metrictype- the type of the metricexpression- the expression used to calculate the value for this metricnamespace- the namespace the metric should be inhelp- the help statement for the metricunit- the unit for the metric
-
-