Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagepy
themeConfluence
titleExample
>>> 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)