Functions
publish(name, attributes, time_to_live=None)
Publish a Universal Event to the associated Universal Controller.
...
maximum time (in minutes) the event can live. If no value is specified, the default value from the Universal Event Template will be used.
Returns
None
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
>>> from universal_extension import event |
...
>>> event_attributes = {} |
...
>>> event_attributes["attribute_1"] = "value_1" |
...
>>> event_attributes["attribute_2"] = "value_2" |
...
>>> event_attributes["attribute_3"] = "value_3" |
...
>>> event.publish("my_event", event_attributes, 20) |