class

KemalWAF::HistogramBuckets

Inherits Reference / Object

============================================================================= Histogram Bucket Helper

Simple histogram implementation with fixed buckets

Constructors

new(buckets : Array(Float64) = [0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, 10.0])
Source

Instance methods

bucket_counts

Get bucket counts

Source
count
Source
observe(value : Float64)

Observe a value (in seconds)

Source
reset
Source