Trigger

trigger defines how pipelines are automatically executed.

Attributes

NameTypeDescription
trigger_iduuid.UUIDtechnical id of the trigger.
intervalintinterval in ms between two execution.
delayintset a delay from 00:00:00.000ms interval alignment as ms.
pipeline_iduuid.UUIDset a pipeline id to trigger.
template_iduuid.UUIDset a template id to trigger.
propertiesdictset a dict of properties to pass when triggering the pipeline.
twin_idslistset a list of twin ids on which executed the pipelines (must be registered on the pipeline).
createdByIduuid.UUIDunique identifier of creating user.
createdDateinttimestamp of created date.
updatedByIduuid.UUIDunique identifier of updating user.
updatedDateinttimestamp of updated date.

Methods

api_id()

return current object id on Web API format.

endpoint()

return endpoint name used to contact backend.

from_json()

load the object from a dict originating of a JSON format.

NameTypeDefaultDescription
objobject to load information from.

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value

return:

to_json()

transform current object into a dict that could be JSONIFY.

NameTypeDefaultDescription
targetstrNone

return: dumpable dict.