Class: Stigg::Models::V1::EventEstimateCostParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/stigg/models/v1/event_estimate_cost_params.rb,
sig/stigg/models/v1/event_estimate_cost_params.rbs

Overview

See Also:

  • Stigg::Resources::V1::Events#estimate_cost

Defined Under Namespace

Modules: Dimension

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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



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

def initialize: (

Instance Attribute Details

#customer_idString

Customer id

Parameters:

  • value (String)

Returns:

  • (String)


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

required :customer_id, String, api_name: :customerId

#dimensionsHash{Symbol=>String, Float, Boolean}?

Dimensions associated with the usage event

Returns:

  • (Hash{Symbol=>String, Float, Boolean}, nil)


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

optional :dimensions,
-> { Stigg::Internal::Type::HashOf[union: Stigg::V1::EventEstimateCostParams::Dimension] }

#event_nameString

The name of the usage event

Parameters:

  • value (String)

Returns:

  • (String)


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

required :event_name, String, api_name: :eventName

#resource_idString?

Resource id

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :resource_id, String, api_name: :resourceId, nil?: true

#x_account_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :x_account_id, String

#x_environment_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :x_environment_id, String

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {