Uses of Class
io.prometheus.metrics.model.snapshots.Exemplar
Packages that use Exemplar
-
Uses of Exemplar in io.prometheus.metrics.model.snapshots
Methods in io.prometheus.metrics.model.snapshots that return ExemplarModifier and TypeMethodDescriptionExemplar.Builder.build()Exemplars.get(double lowerBound, double upperBound) This is used by classic histograms to find an exemplar with a value between lowerBound and upperBound.Exemplars.get(int index) CounterSnapshot.CounterDataPointSnapshot.getExemplar()May benull.GaugeSnapshot.GaugeDataPointSnapshot.getExemplar()May benull.UnknownSnapshot.UnknownDataPointSnapshot.getExemplar()May returnnull.Exemplars.getLatest()Find the Exemplar with the newest timestamp.Methods in io.prometheus.metrics.model.snapshots that return types with arguments of type ExemplarMethods in io.prometheus.metrics.model.snapshots with parameters of type ExemplarModifier and TypeMethodDescriptionAdd an exemplar.OptionalOptionalstatic ExemplarsCreate a new Exemplars instance.Method parameters in io.prometheus.metrics.model.snapshots with type arguments of type ExemplarModifier and TypeMethodDescriptionExemplars.Builder.exemplars(Collection<Exemplar> exemplars) Add all exemplars form the collection.static ExemplarsExemplars.of(Collection<Exemplar> exemplars) Create a new Exemplars instance.Constructors in io.prometheus.metrics.model.snapshots with parameters of type ExemplarModifierConstructorDescriptionCounterDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long createdTimestampMillis) To create a newCounterSnapshot.CounterDataPointSnapshot, you can either call the constructor directly or use the Builder withCounterSnapshot.CounterDataPointSnapshot.builder().CounterDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long createdTimestampMillis, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.GaugeDataPointSnapshot(double value, Labels labels, Exemplar exemplar) To create a newGaugeSnapshot.GaugeDataPointSnapshot, you can either call the constructor directly or use the Builder withGaugeSnapshot.GaugeDataPointSnapshot.builder().GaugeDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.UnknownDataPointSnapshot(double value, Labels labels, Exemplar exemplar) To create a newUnknownSnapshot.UnknownDataPointSnapshot, you can either call the constructor directly or use the Builder withUnknownSnapshot.UnknownDataPointSnapshot.builder().UnknownDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.