Class: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::MeteredAllowance::MeteredAllowanceConfig

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/orb/models/price_evaluate_multiple_params.rb,
sig/orb/models/price_evaluate_multiple_params.rbs

Overview

See Also:

  • Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::MeteredAllowance#metered_allowance_config

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeObject



1175
# File 'sig/orb/models/price_evaluate_multiple_params.rbs', line 1175

def initialize: (

Instance Attribute Details

#allowance_display_nameString?

Sub-line label for the credit row (e.g. 'Up to 3x free egress').

Parameters:

  • (String)

Returns:

  • (String, nil)


1668
# File 'lib/orb/models/price_evaluate_multiple_params.rb', line 1668

optional :allowance_display_name, String

#allowance_grouping_valueString

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.

Parameters:

  • value (String)

Returns:

  • (String)


1641
# File 'lib/orb/models/price_evaluate_multiple_params.rb', line 1641

required :allowance_grouping_value, String

#consumption_display_nameString?

Sub-line label for the gross consumption row (e.g. 'bytes gotten').

Parameters:

  • (String)

Returns:

  • (String, nil)


1674
# File 'lib/orb/models/price_evaluate_multiple_params.rb', line 1674

optional :consumption_display_name, String

#consumption_grouping_valueString

The grouping_key value whose summed quantity represents consumption (e.g. 'download'). Charged at unit_amount.

Parameters:

  • value (String)

Returns:

  • (String)


1648
# File 'lib/orb/models/price_evaluate_multiple_params.rb', line 1648

required :consumption_grouping_value, String

#grouping_keyString

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.

Parameters:

  • value (String)

Returns:

  • (String)


1656
# File 'lib/orb/models/price_evaluate_multiple_params.rb', line 1656

required :grouping_key, String

#unit_amountString

Per-unit price applied to gross consumption and to the allowance credit.

Parameters:

  • value (String)

Returns:

  • (String)


1662
# File 'lib/orb/models/price_evaluate_multiple_params.rb', line 1662

required :unit_amount, String

Instance Method Details

#to_hash{

Returns:

  • ({)


1184
# File 'sig/orb/models/price_evaluate_multiple_params.rbs', line 1184

def to_hash: -> {