trigger

Triggers are used to execute a pipeline when an event occurs. They are defined in the mod and are based on a schedule, webhook, or other event.

trigger "http" "my_webhook" {
pipeline = pipeline.my_pipeline
args = {
event = self.request_body
}
}

Trigger Types

TypeDescription
httpCreate a webhook and initiate a pipeline when a request is made to the webhook.
queryRuns a query on schedule or at regular intervals and executes pipelines when there are changes to the result set.
scheduleRuns a pipeline on schedule or at regular intervals.