docs: private static BucketSizeType bucketSizeFromInterval(HistogramIntervalType interval) {
          BucketSizeType bucketSize;
          switch (interval) {
          case minute:
              bucketSize = BucketSizeType.Minute;
              break;
          case hour:
              bucketSize = BucketSizeType.Hour;
              break;
          case day:
              bucketSize = BucketSizeType.Day;
              break;
          case week:
              bucketSize = BucketSizeType.Week;
              break;
          case month:
              bucketSize = BucketSizeType.Month;
              break;
          default:
              bucketSize = BucketSizeType.Day;
              break;
          }
          return bucketSize;
      }