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