Module: Stigg::Models::V1::EventReportParams::Event::Dimension

Extended by:
Internal::Type::Union
Defined in:
lib/stigg/models/v1/event_report_params.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, 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_report_params.rb', line 84

Instance Method Details

#initialize(customer_id:, event_name:, idempotency_key:, dimensions: nil, resource_id: nil, timestamp: nil) ⇒ Object

Raw usage event

Parameters:

  • customer_id (String)

    Customer id

  • event_name (String)

    The name of the usage event

  • idempotency_key (String)

    Idempotency key

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

    Dimensions associated with the usage event

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

    Resource id

  • timestamp (Time) (defaults to: nil)

    Timestamp



75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/stigg/models/v1/event_report_params.rb', line 75

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