Class MetricCompositeKey

java.lang.Object
org.qubership.nifi.service.recordSink.MetricCompositeKey

public class MetricCompositeKey extends Object
Composite metric key, comprised of metric name and its labels with values.
  • Constructor Details

    • MetricCompositeKey

      public MetricCompositeKey(String metricName, String[] labelsName, String[] labelsValue)
      Create instance of MetricCompositeKey
      Parameters:
      metricName -
      labelsName -
      labelsValue -
  • Method Details

    • getMetricName

      public String getMetricName()
      Gets metric name
      Returns:
      metric name
    • getLabelsName

      public String[] getLabelsName()
      Gets label names
      Returns:
      an array of label names
    • getLabelsValue

      public String[] getLabelsValue()
      Gets label values
      Returns:
      an array of label values
    • setMetricName

      public void setMetricName(String metricName)
      Sets metric name
      Parameters:
      metricName - metric name to set
    • setLabelsName

      public void setLabelsName(String[] labelsName)
      Sets label names
      Parameters:
      labelsName - label names to set
    • setLabelsValue

      public void setLabelsValue(String[] labelsValue)
      Sets label values
      Parameters:
      labelsValue - label values to set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object