Class: MetronomeSDK::Models::V1::UsageListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/usage_list_response.rb

Overview

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

#initialize(billable_metric_id: , billable_metric_name: , customer_id: , end_timestamp: , start_timestamp: , value: , groups: nil) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::UsageListResponse for more details.

Parameters:

  • billable_metric_id (String) (defaults to: )
  • billable_metric_name (String) (defaults to: )
  • customer_id (String) (defaults to: )
  • end_timestamp (Time) (defaults to: )
  • start_timestamp (Time) (defaults to: )
  • value (Float, nil) (defaults to: )
  • groups (Hash{Symbol=>Float, nil}) (defaults to: nil)

    Values will be either a number or null. Null indicates that there were no matche



# File 'lib/metronome_sdk/models/v1/usage_list_response.rb', line 45

Instance Attribute Details

#billable_metric_idString

Returns:

  • (String)


11
# File 'lib/metronome_sdk/models/v1/usage_list_response.rb', line 11

required :billable_metric_id, String

#billable_metric_nameString

Returns:

  • (String)


16
# File 'lib/metronome_sdk/models/v1/usage_list_response.rb', line 16

required :billable_metric_name, String

#customer_idString

Returns:

  • (String)


21
# File 'lib/metronome_sdk/models/v1/usage_list_response.rb', line 21

required :customer_id, String

#end_timestampTime

Returns:

  • (Time)


26
# File 'lib/metronome_sdk/models/v1/usage_list_response.rb', line 26

required :end_timestamp, Time

#groupsHash{Symbol=>Float, nil}?

Values will be either a number or null. Null indicates that there were no matches for the group_by value.

Returns:

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


43
# File 'lib/metronome_sdk/models/v1/usage_list_response.rb', line 43

optional :groups, MetronomeSDK::Internal::Type::HashOf[Float, nil?: true]

#start_timestampTime

Returns:

  • (Time)


31
# File 'lib/metronome_sdk/models/v1/usage_list_response.rb', line 31

required :start_timestamp, Time

#valueFloat?

Returns:

  • (Float, nil)


36
# File 'lib/metronome_sdk/models/v1/usage_list_response.rb', line 36

required :value, Float, nil?: true