001package io.prometheus.metrics.model.snapshots;
002
003/**
004 * For iterating over {@link NativeHistogramBuckets}.
005 */
006public class NativeHistogramBucket {
007
008    private final int bucketIndex;
009    private final long count;
010
011    public NativeHistogramBucket(int bucketIndex, long count) {
012        this.bucketIndex = bucketIndex;
013        this.count = count;
014    }
015
016    /**
017     * See {@link NativeHistogramBuckets} for info on native bucket indexes.
018     */
019    public int getBucketIndex() {
020        return bucketIndex;
021    }
022
023    public long getCount() {
024        return count;
025    }
026}