Class Metric
java.lang.Object
com.yahoo.vespa.model.admin.monitoring.Metric
Helper class to model a metric.
- Author:
- trygve, gjoranv
-
Field Details
-
name
-
outputName
-
description
-
dimensions
-
-
Constructor Details
-
Metric
-
Metric
-
Metric
Creates a metric with empty description -
Metric
Creates a metric with same outputname as metricname- Parameters:
name
- The name of the metric, same name used for output name
-
-
Method Details
-
addDimensionsFrom
Returns a new Metric that is a combination of this and the given metric. New dimensions from the given metric are added, but already existing dimensions will be kept unchanged.- Parameters:
other
- The metric to add dimensions from.- Returns:
- A new metric with dimensions from this and the other.
-
toString
-
equals
Two metrics are considered equal if they have the same name. -
hashCode
public int hashCode()
-