Method: OpenC3::TriggerGroupModel#notify
- Defined in:
- lib/openc3/models/trigger_group_model.rb
#notify(kind:, error: nil) ⇒ Object
Returns [] update the redis stream / trigger topic that something has changed.
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/openc3/models/trigger_group_model.rb', line 110 def notify(kind:, error: nil) data = as_json(:allow_nan => true) data['error'] = error unless error.nil? notification = { 'kind' => kind, 'type' => 'group', 'data' => JSON.generate(data), } AutonomicTopic.write_notification(notification, scope: @scope) end |