Class: Orb::Models::Price::MeteredAllowance::MeteredAllowanceConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::Price::MeteredAllowance::MeteredAllowanceConfig
- Defined in:
- lib/orb/models/price.rb,
sig/orb/models/price.rbs
Overview
Instance Attribute Summary collapse
-
#allowance_display_name ⇒ String?
Sub-line label for the credit row (e.g. 'Up to 3x free egress').
-
#allowance_grouping_value ⇒ String
The grouping_key value whose summed quantity represents the allowance for this period (e.g. 'storage_snapshot' emitting 3 × avg storage).
-
#consumption_display_name ⇒ String?
Sub-line label for the gross consumption row (e.g. 'bytes gotten').
-
#consumption_grouping_value ⇒ String
The grouping_key value whose summed quantity represents consumption (e.g. 'download').
-
#grouping_key ⇒ String
Event property used to partition the metric into consumption and allowance quantities (e.g. 'event_name').
-
#unit_amount ⇒ String
Per-unit price applied to gross consumption and to the allowance credit.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ Object
9510 |
# File 'sig/orb/models/price.rbs', line 9510
def initialize: (
|
Instance Attribute Details
#allowance_display_name ⇒ String?
Sub-line label for the credit row (e.g. 'Up to 3x free egress').
12720 |
# File 'lib/orb/models/price.rb', line 12720 optional :allowance_display_name, String |
#allowance_grouping_value ⇒ String
The grouping_key value whose summed quantity represents the allowance for this period (e.g. 'storage_snapshot' emitting 3 × avg storage). Capped at consumption — credit can never exceed actual usage.
12693 |
# File 'lib/orb/models/price.rb', line 12693 required :allowance_grouping_value, String |
#consumption_display_name ⇒ String?
Sub-line label for the gross consumption row (e.g. 'bytes gotten').
12726 |
# File 'lib/orb/models/price.rb', line 12726 optional :consumption_display_name, String |
#consumption_grouping_value ⇒ String
The grouping_key value whose summed quantity represents consumption (e.g. 'download'). Charged at unit_amount.
12700 |
# File 'lib/orb/models/price.rb', line 12700 required :consumption_grouping_value, String |
#grouping_key ⇒ String
Event property used to partition the metric into consumption and allowance quantities (e.g. 'event_name'). The metric is queried with this key and the two values below select which partition is which.
12708 |
# File 'lib/orb/models/price.rb', line 12708 required :grouping_key, String |
#unit_amount ⇒ String
Per-unit price applied to gross consumption and to the allowance credit.
12714 |
# File 'lib/orb/models/price.rb', line 12714 required :unit_amount, String |
Instance Method Details
#to_hash ⇒ {
9519 |
# File 'sig/orb/models/price.rbs', line 9519
def to_hash: -> {
|