Method: OpenC3::TriggerModel#notify

Defined in:
lib/openc3/models/trigger_model.rb

#notify(kind:) ⇒ Object

Returns [] update the redis stream / trigger topic that something has changed.

Returns:

  • update the redis stream / trigger topic that something has changed



308
309
310
311
312
313
314
315
# File 'lib/openc3/models/trigger_model.rb', line 308

def notify(kind:)
  notification = {
    'kind' => kind,
    'type' => 'trigger',
    'data' => JSON.generate(as_json(:allow_nan => true)),
  }
  AutonomicTopic.write_notification(notification, scope: @scope)
end