Class: CommandTower::Messaging::Planner::OperationLogger

Inherits:
Object
  • Object
show all
Defined in:
app/services/command_tower/messaging/planner/operation_logger.rb

Class Method Summary collapse

Class Method Details

.readiness_excluded(notification_type_key:, recipient_id:, channel_key:, reason_codes:) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'app/services/command_tower/messaging/planner/operation_logger.rb', line 8

def readiness_excluded(
  notification_type_key:,
  recipient_id:,
  channel_key:,
  reason_codes:
)
  Contract::Observability::Publisher.info(
    event: "messaging.planner.readiness_excluded",
    correlation_id: Contract::Observability::Correlation.resolve,
    messaging_operation: "planner",
    notification_type_key: notification_type_key.to_s,
    recipient_id:,
    channel_key: channel_key.to_s,
    reason_codes: Array(reason_codes).map(&:to_s),
  )
end