Module: Stigg::Models::V1::UsageEstimateCostParams::Dimension

Extended by:
Internal::Type::Union
Defined in:
lib/stigg/models/v1/usage_estimate_cost_params.rb,
sig/stigg/models/v1/usage_estimate_cost_params.rbs

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(customer_id:, feature_id:, value:, dimensions: nil, resource_id: nil, update_behavior: nil, x_account_id: nil, x_environment_id: nil, request_options: {}) ⇒ Object

Parameters:

  • customer_id (String)

    Customer id

  • feature_id (String)

    Feature id

  • value (Integer)

    The value to report for usage

  • dimensions (Hash{Symbol=>String, Float, Boolean}) (defaults to: nil)

    Additional dimensions for the usage report

  • resource_id (String, nil) (defaults to: nil)

    Resource id

  • update_behavior (Symbol, Stigg::Models::V1::UsageEstimateCostParams::UpdateBehavior) (defaults to: nil)

    The method by which the usage value should be updated

  • x_account_id (String) (defaults to: nil)
  • x_environment_id (String) (defaults to: nil)
  • request_options (Stigg::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/stigg/models/v1/usage_estimate_cost_params.rb', line 79

module Dimension
  extend Stigg::Internal::Type::Union

  variant String

  variant Float

  variant Stigg::Internal::Type::Boolean

  # @!method self.variants
  #   @return [Array(String, Float, Boolean)]
end

#self?.variants::Array[Stigg::Models::V1::UsageEstimateCostParams::dimension]

Returns:

  • (::Array[Stigg::Models::V1::UsageEstimateCostParams::dimension])


78
# File 'sig/stigg/models/v1/usage_estimate_cost_params.rbs', line 78

def self?.variants: -> ::Array[Stigg::Models::V1::UsageEstimateCostParams::dimension]