Class: Knockapi::Models::MessageDeliveryLog

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/message_delivery_log.rb

Overview

Defined Under Namespace

Classes: Request, Response

Instance Attribute Summary collapse

Class Method 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(id:, _typename:, environment_id:, inserted_at:, request:, response:, service_name:) ⇒ Object

A message delivery log contains a ‘request` from Knock to a downstream provider and the `response` that was returned.

Parameters:

  • id (String)

    The unique identifier for the message delivery log.

  • _typename (String)

    The typename of the schema.

  • environment_id (String)

    The ID of the environment in which the message delivery occurred.

  • inserted_at (String)

    Timestamp when the message delivery log was created.

  • request (Knockapi::Models::MessageDeliveryLog::Request)

    A message delivery log request.

  • response (Knockapi::Models::MessageDeliveryLog::Response)

    A message delivery log response.

  • service_name (String)

    The name of the service that processed the delivery.



# File 'lib/knockapi/models/message_delivery_log.rb', line 49

Instance Attribute Details

#_typenameString

The typename of the schema.

Returns:

  • (String)


17
# File 'lib/knockapi/models/message_delivery_log.rb', line 17

required :_typename, String, api_name: :__typename

#environment_idString

The ID of the environment in which the message delivery occurred.

Returns:

  • (String)


23
# File 'lib/knockapi/models/message_delivery_log.rb', line 23

required :environment_id, String

#idString

The unique identifier for the message delivery log.

Returns:

  • (String)


11
# File 'lib/knockapi/models/message_delivery_log.rb', line 11

required :id, String

#inserted_atString

Timestamp when the message delivery log was created.

Returns:

  • (String)


29
# File 'lib/knockapi/models/message_delivery_log.rb', line 29

required :inserted_at, String

#requestKnockapi::Models::MessageDeliveryLog::Request

A message delivery log request.



35
# File 'lib/knockapi/models/message_delivery_log.rb', line 35

required :request, -> { Knockapi::MessageDeliveryLog::Request }

#responseKnockapi::Models::MessageDeliveryLog::Response

A message delivery log response.



41
# File 'lib/knockapi/models/message_delivery_log.rb', line 41

required :response, -> { Knockapi::MessageDeliveryLog::Response }

#service_nameString

The name of the service that processed the delivery.

Returns:

  • (String)


47
# File 'lib/knockapi/models/message_delivery_log.rb', line 47

required :service_name, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/knockapi/models/message_delivery_log.rb', line 149