roboto.domain.actions.trigger_view
Module Contents
TriggerOnEvent
Bases: pydantic.BaseModel
Properties specific to event-driven triggers.
Parameters
data AnyAttributes
TriggerOnEvent.additional_inputs
Optional additional file patterns to include.
TriggerOnEvent.causes
One or more events that cause the trigger to be evaluated.
TriggerOnEvent.condition
Optional condition that must be met for trigger to fire.
TriggerOnEvent.for_each
Granularity of trigger execution.
TriggerOnEvent.required_inputs
File patterns that must be present for trigger to fire.
TriggerOnSchedule
Bases: pydantic.BaseModel
Properties specific to scheduled triggers.
Parameters
data AnyAttributes
TriggerOnSchedule.invocation_input
Input specification for each scheduled invocation.
TriggerOnSchedule.next_occurrence
Next scheduled invocation time.
TriggerType
Bases: roboto.compat.StrEnum
Types of triggers supported by the Roboto platform.
Attributes
TriggerType.EventDriven
A trigger that invokes its target action in response to an event.
See TriggerEvaluationCause for the currently supported causes for event-driven triggers to be evaluated.
TriggerType.Scheduled
A trigger that invokes its target action on a recurring schedule.
TriggerView
Bases: pydantic.BaseModel
Unified data model for all Roboto trigger types.
Parameters
data AnyAttributes
TriggerView.action
Reference to the trigger’s target action.
TriggerView.compute_requirement_overrides
compute_requirement_overrides roboto.Optional compute requirement overrides.
TriggerView.container_parameter_overrides
container_parameter_overrides roboto.Optional container parameter overrides.
TriggerView.invocation_upload_destination
invocation_upload_destination roboto.Optional default upload destination for action invocations.
TriggerView.on_event
Properties of triggers that fire on events (TriggerType.EventDriven).
TriggerView.on_schedule
Properties of triggers that fire on a recurring schedule (TriggerType.Scheduled).
TriggerView.parameter_values
Optional action parameter values.
TriggerView.to_event_trigger_record()
Convert this trigger view into a TriggerRecord if possible.
Returns
A TriggerRecord instance if self.trigger_type is TriggerType.EventDriven, otherwise None.
TriggerView.to_scheduled_trigger_record()
Convert this trigger view into a ScheduledTriggerRecord if possible.
Returns
A ScheduledTriggerRecord instance if self.trigger_type is TriggerType.Scheduled, otherwise None.
Attributes