Class MetricCompositeKey
java.lang.Object
org.qubership.nifi.service.recordSink.MetricCompositeKey
Composite metric key, comprised of metric name and its labels with values.
-
Constructor Summary
ConstructorsConstructorDescriptionMetricCompositeKey(String metricName, String[] labelsName, String[] labelsValue) Create instance of MetricCompositeKey -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]Gets label namesString[]Gets label valuesGets metric nameinthashCode()voidsetLabelsName(String[] labelsName) Sets label namesvoidsetLabelsValue(String[] labelsValue) Sets label valuesvoidsetMetricName(String metricName) Sets metric name
-
Constructor Details
-
MetricCompositeKey
Create instance of MetricCompositeKey- Parameters:
metricName-labelsName-labelsValue-
-
-
Method Details
-
getMetricName
Gets metric name- Returns:
- metric name
-
getLabelsName
Gets label names- Returns:
- an array of label names
-
getLabelsValue
Gets label values- Returns:
- an array of label values
-
setMetricName
Sets metric name- Parameters:
metricName- metric name to set
-
setLabelsName
Sets label names- Parameters:
labelsName- label names to set
-
setLabelsValue
Sets label values- Parameters:
labelsValue- label values to set
-
equals
-
hashCode
public int hashCode()
-