Class SolrMetricInfo


  • public final class SolrMetricInfo
    extends Object
    Wraps meta-data for a metric.
    • Constructor Detail

      • SolrMetricInfo

        public SolrMetricInfo​(SolrInfoBean.Category category,
                              String scope,
                              String name)
        Creates a new instance of SolrMetricInfo.
        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

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object