Package com.ocient.metrics
Class Metric.MetricPath
java.lang.Object
com.ocient.metrics.Metric.MetricPath
public static class Metric.MetricPath extends Object
The identifier than a perfCounter. The "path" should be constant (i.e. not containing variants
like CPU, Socket, or device)
-
Method Summary
Modifier and Type Method Description StringbasePath()static Metric.MetricPathcreate(String basePath, List<Metric.NamedTag> tags)Constructs a Path for a perf counter with the given base path and set ofMetric.NamedTags.static Metric.MetricPathcreateWithFullPath(String basePath, List<Metric.NamedTag> tags, String fullPathOverride)Same ascreate(String, List)but the full path is provided instead of being derived from the givenMetric.NamedTags.booleanequals(Object obj)StringfullPath()inthashCode()List<Metric.NamedTag>tags()StringtoString()
-
Method Details
-
create
Constructs a Path for a perf counter with the given base path and set ofMetric.NamedTags.- Parameters:
basePath- the base path for this countertags- list onMetric.NamedTags associated with this counter- Returns:
- a fully constructed
Metric.MetricPath
-
createWithFullPath
public static Metric.MetricPath createWithFullPath(String basePath, List<Metric.NamedTag> tags, String fullPathOverride)Same ascreate(String, List)but the full path is provided instead of being derived from the givenMetric.NamedTags.- Parameters:
basePath- the base path for this countertags- list onMetric.NamedTags associated with this counterfullPathOverride- the full path of the createdMetric.MetricPathobject- Returns:
- a fully constructed
Metric.MetricPath
-
basePath
- Returns:
- the base path
-
tags
- Returns:
- the tags associated with this counter
-
fullPath
- Returns:
- the full path. Can be interpreted as a unique identifier for a counter
-
hashCode
public int hashCode() -
equals
-
toString
-