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 class
MetricDefinition.Label
This 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 boolean
equals(Object o)
String
getExpression()
String
getHelp()
List<MetricDefinition.Label>
getLabels()
String
getName()
String
getNamespace()
String
getType()
String
getUnit()
int
hashCode()
String
toString()
-
-
-
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
-
-