Class: WebhookEvent
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- WebhookEvent
- Defined in:
- app/models/webhook_event.rb
Overview
== Schema Information
Table name: webhook_events
Database name: primary
id :integer not null, primary key
attempt :string
bounce_type :string
category :string is an Array
email :string
event :string
ip :string
reason :string
response :string
sg_machine_open :boolean
status :string
string :string
timestamp :datetime
url :string
useragent :string
created_at :datetime not null
updated_at :datetime not null
asm_group_id :string
communication_recipient_id :integer
creator_id :integer
sg_event_id :string
sg_message_id :string
smtp_id :string
unique_id :string
updater_id :integer
Indexes
index_webhook_events_on_created_at (created_at) USING brin
Constant Summary collapse
- EVENTS =
Events.
{ "processed" => "Message has been received and is ready to be delivered", "deferred" => "Recipient's email server temporarily rejected message", "delivered" => "Message has been successfully delivered", "opened" => "Recipient has opened the message", "clicked" => "Recipient clicked on a link within the message", "bounced" => "Receiving server could not or would not accept message, see individual email for bounce reason", "dropped" => "Message rejected by email server before attempting delivery, see individual email for drop reason", "spammed" => "Recipient marked message as spam", "unsubscribed" => "Recipient clicked on message's unsubscribe link" }.freeze
Constants included from Models::Schedulable
Models::Schedulable::SIMPLE_FORM_OPTIONS
Belongs to collapse
-
#communication_recipient ⇒ CommunicationRecipient?
The communication recipient this record belongs to.
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::Schedulable
Methods included from Models::AfterCommittable
Methods included from Models::EventPublishable
Instance Method Details
#communication_recipient ⇒ CommunicationRecipient?
Returns the communication recipient this record belongs to.
51 |
# File 'app/models/webhook_event.rb', line 51 belongs_to :communication_recipient, optional: true |