Skip to content
Roboto
Esc
↑↓navigate↵open⌘Jpreview
On this page

roboto.domain.actions.trigger_view

Module Contents

TriggerOnEvent

class roboto.domain.actions.trigger_view.TriggerOnEvent(/, **data)#View Source

Bases: pydantic.BaseModel

Properties specific to event-driven triggers.

Parameters

data Any

Attributes

TriggerOnEvent.additional_inputs

additional_inputs list[str] | None = None #

Optional additional file patterns to include.

TriggerOnEvent.causes

One or more events that cause the trigger to be evaluated.

TriggerOnEvent.condition

condition roboto.query.ConditionType | None = None #

Optional condition that must be met for trigger to fire.

TriggerOnEvent.for_each

Granularity of trigger execution.

TriggerOnEvent.required_inputs

required_inputs list[str] #

File patterns that must be present for trigger to fire.

TriggerOnSchedule

class roboto.domain.actions.trigger_view.TriggerOnSchedule(/, **data)#View Source

Bases: pydantic.BaseModel

Properties specific to scheduled triggers.

Parameters

data Any

Attributes

TriggerOnSchedule.invocation_input

Input specification for each scheduled invocation.

TriggerOnSchedule.next_occurrence

next_occurrence datetime.datetime | None = None #

Next scheduled invocation time.

TriggerOnSchedule.schedule

schedule str #

Recurring invocation schedule.

TriggerType

class roboto.domain.actions.trigger_view.TriggerType#View Source

Bases: roboto.compat.StrEnum

Types of triggers supported by the Roboto platform.

Attributes

TriggerType.EventDriven

EventDriven = 'event_driven' #

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

Scheduled = 'scheduled' #

A trigger that invokes its target action on a recurring schedule.

TriggerView

class roboto.domain.actions.trigger_view.TriggerView(/, **data)#View Source

Bases: pydantic.BaseModel

Unified data model for all Roboto trigger types.

Parameters

data Any

Attributes

TriggerView.action

Reference to the trigger’s target action.

TriggerView.compute_requirement_overrides

compute_requirement_overrides roboto.domain.actions.action_record.ComputeRequirements | None = None #

Optional compute requirement overrides.

TriggerView.container_parameter_overrides

container_parameter_overrides roboto.domain.actions.action_record.ContainerParameters | None = None #

Optional container parameter overrides.

TriggerView.created

created datetime.datetime #

Creation time for the scheduled trigger.

TriggerView.created_by

created_by str #

User who created the scheduled trigger.

TriggerView.enabled

enabled bool #

True if the trigger is enabled.

TriggerView.invocation_upload_destination

Optional default upload destination for action invocations.

TriggerView.modified

modified datetime.datetime #

Latest modification time for the scheduled trigger.

TriggerView.modified_by

modified_by str #

User who last modified this scheduled trigger.

TriggerView.name

name str #

Trigger name. Unique within an organization and trigger type.

TriggerView.on_event

on_event TriggerOnEvent | None = None #

Properties of triggers that fire on events (TriggerType.EventDriven).

TriggerView.on_schedule

on_schedule TriggerOnSchedule | None = None #

Properties of triggers that fire on a recurring schedule (TriggerType.Scheduled).

TriggerView.org_id

org_id str #

Organization ID which owns the scheduled trigger.

TriggerView.parameter_values

parameter_values dict[str, Any] | None = None #

Optional action parameter values.

TriggerView.service_user_id

service_user_id str #

Service user ID for authentication.

TriggerView.timeout

timeout int | None = None #

Optional invocation timeout, in minutes.

TriggerView.to_event_trigger_record()

to_event_trigger_record()#View Source

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()

to_scheduled_trigger_record()#View Source

Convert this trigger view into a ScheduledTriggerRecord if possible.

Returns

A ScheduledTriggerRecord instance if self.trigger_type is TriggerType.Scheduled, otherwise None.

Attributes

TriggerView.trigger_id

trigger_id str #

Unique trigger ID.

TriggerView.trigger_type

trigger_type TriggerType #

Trigger type.

Was this page helpful?