struct

MemoryBudget::MemoryMetricLimit

Inherits JSON::Serializable::Strict < JSON::Serializable < Struct < Value < Object

Declares an absolute or fixed-plus-per-item maximum, in the metric's units.

Constructors

new(metric_name : String = "", fixed_limit : UInt64 = 0_u64, per_item_limit : UInt64 = 0_u64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

allowed_value(item_count : UInt64) : UInt64

Computes the maximum with checked unsigned arithmetic.

Source
fixed_limit
Source
metric_name
Source
per_item_limit
Source