Class: Zavudev::Models::ContactChannel::Metrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/zavudev/models/contact_channel.rb

Overview

See Also:

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(avg_delivery_time_ms: nil, failure_count: nil, last_success_at: nil, success_count: nil, total_attempts: nil) ⇒ Object

Delivery metrics for this channel.

Parameters:

  • avg_delivery_time_ms (Float) (defaults to: nil)
  • failure_count (Integer) (defaults to: nil)
  • last_success_at (Time) (defaults to: nil)
  • success_count (Integer) (defaults to: nil)
  • total_attempts (Integer) (defaults to: nil)


# File 'lib/zavudev/models/contact_channel.rb', line 144

Instance Attribute Details

#avg_delivery_time_msFloat?

Returns:

  • (Float, nil)


122
# File 'lib/zavudev/models/contact_channel.rb', line 122

optional :avg_delivery_time_ms, Float, api_name: :avgDeliveryTimeMs

#failure_countInteger?

Returns:

  • (Integer, nil)


127
# File 'lib/zavudev/models/contact_channel.rb', line 127

optional :failure_count, Integer, api_name: :failureCount

#last_success_atTime?

Returns:

  • (Time, nil)


132
# File 'lib/zavudev/models/contact_channel.rb', line 132

optional :last_success_at, Time, api_name: :lastSuccessAt

#success_countInteger?

Returns:

  • (Integer, nil)


137
# File 'lib/zavudev/models/contact_channel.rb', line 137

optional :success_count, Integer, api_name: :successCount

#total_attemptsInteger?

Returns:

  • (Integer, nil)


142
# File 'lib/zavudev/models/contact_channel.rb', line 142

optional :total_attempts, Integer, api_name: :totalAttempts