io.prometheus.client.dropwizard.samplebuilder.SampleBuilder Maven / Gradle / Ivy
The newest version!
package io.prometheus.client.dropwizard.samplebuilder;
import io.prometheus.client.Collector;
import java.util.List;
/**
* SampleBuilder defines the action of creating a {@link io.prometheus.client.Collector.MetricFamilySamples.Sample} for the given parameters.
*/
public interface SampleBuilder {
/**
* Creates a new {@link io.prometheus.client.Collector.MetricFamilySamples.Sample} for the given parameters.
*
* @param dropwizardName Metric name coming from Dropwizard.
* @param nameSuffix Optional suffix to add.
* @param additionalLabelNames Optional additional label names. Needs to have same size as additionalLabelValues.
* @param additionalLabelValues Optional additional label values. Needs to have same size as additionalLabelNames.
* @param value Metric value
* @return A new {@link io.prometheus.client.Collector.MetricFamilySamples.Sample}.
*/
Collector.MetricFamilySamples.Sample createSample(String dropwizardName, String nameSuffix, List additionalLabelNames, List additionalLabelValues, double value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy