Package org.apache.solr.metrics
Class SolrMetricInfo
- java.lang.Object
-
- org.apache.solr.metrics.SolrMetricInfo
-
public final class SolrMetricInfo extends Object
Wraps meta-data for a metric.
-
-
Constructor Summary
Constructors Constructor Description SolrMetricInfo(SolrInfoBean.Category category, String scope, String name)Creates a new instance ofSolrMetricInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetMetricName()Returns the metric name defined by this object.inthashCode()static SolrMetricInfoof(String fullName)StringtoString()
-
-
-
Field Detail
-
name
public final String name
-
scope
public final String scope
-
category
public final SolrInfoBean.Category category
-
-
Constructor Detail
-
SolrMetricInfo
public SolrMetricInfo(SolrInfoBean.Category category, String scope, String name)
Creates a new instance ofSolrMetricInfo.- Parameters:
category- the category of the metric (e.g. `QUERY`)scope- the scope of the metric (e.g. `/admin/ping`)name- the name of the metric (e.g. `Requests`)
-
-
Method Detail
-
of
public static SolrMetricInfo of(String fullName)
-
getMetricName
public String getMetricName()
Returns the metric name defined by this object. For example, if the name is `Requests`, scope is `/admin/ping`, and category is `QUERY`, then the metric name is `QUERY./admin/ping.Requests`.- Returns:
- the metric name defined by this object
-
-