Module: Stigg::Models::V1::EventEstimateCostParams::Dimension

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, 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

Class Method Details

.variantsArray(String, Float, Boolean)

Returns:

  • (Array(String, Float, Boolean))


# File 'lib/stigg/models/v1/event_estimate_cost_params.rb', line 70

Instance Method Details

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

Parameters:

  • customer_id (String)

    Customer id

  • event_name (String)

    The name of the usage event

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

    Dimensions associated with the usage event

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

    Resource id

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


61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/stigg/models/v1/event_estimate_cost_params.rb', line 61

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::EventEstimateCostParams::dimension]

Returns:

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


64
# File 'sig/stigg/models/v1/event_estimate_cost_params.rbs', line 64

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