Class: Courier::Models::NotificationMetricsResponse::Series

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/notification_metrics_response.rb,
sig/courier/models/notification_metrics_response.rbs

Defined Under Namespace

Classes: Data

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

#initializeObject



63
# File 'sig/courier/models/notification_metrics_response.rbs', line 63

def initialize: (

Instance Attribute Details

#dataArray<Courier::Models::NotificationMetricsResponse::Series::Data>

One entry per provider and channel that handled a message in this bucket. Empty when nothing was sent.

Parameters:

  • value (::Array[Courier::NotificationMetricsResponse::Series::Data])

Returns:



75
76
# File 'lib/courier/models/notification_metrics_response.rb', line 75

required :data,
-> { Courier::Internal::Type::ArrayOf[Courier::NotificationMetricsResponse::Series::Data] }

#periodTime

Start of the bucket, second-precision UTC.

Parameters:

  • value (Time)

Returns:

  • (Time)


82
# File 'lib/courier/models/notification_metrics_response.rb', line 82

required :period, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


68
# File 'sig/courier/models/notification_metrics_response.rbs', line 68

def to_hash: -> {