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