Dashboards Trigger
Certified
Trigger execution on Lightdash dashboard update
Dashboards Trigger
Trigger execution on Lightdash dashboard update
Periodically polls Lightdash for dashboards that have been created or modified in a project, using the namespace KV store to advance an update timestamp watermark for exactly-once firing.
type: io.kestra.plugin.lightdash.dashboards.TriggerExamples
Trigger a flow whenever a dashboard is modified in Lightdash
id: on_dashboard_updated
namespace: company.analytics
triggers:
- id: watch_dashboards
type: io.kestra.plugin.lightdash.dashboards.Trigger
url: "https://app.lightdash.cloud"
apiToken: "{{ secret('LIGHTDASH_API_TOKEN') }}"
projectUuid: "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d"
interval: PT1M
tasks:
- id: notify
type: io.kestra.plugin.core.log.Log
message: "Dashboard updated: {{ trigger.dashboards[0].name }} (UUID: {{ trigger.dashboards[0].uuid }})"
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-lightdash --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
apiToken *string
Lightdash Personal Access Token (API Key)
The Personal Access Token generated from your Lightdash personal settings.
Passed via the Authorization: ApiKey <token> header.
projectUuid *string
Project UUID
The UUID of the Lightdash project to monitor for dashboard updates.
allowConcurrent boolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
interval string
PT1MdurationPolling interval
The interval between consecutive polls for dashboard modifications. Defaults to PT1M (1 minute). Must be positive.
requestTimeout string
PT30SHTTP request timeout
The timeout duration for HTTP requests made to the Lightdash API. Defaults to PT30S (30 seconds). Must be positive.
stopAfter array
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
url string
https://app.lightdash.cloudLightdash instance base URL
The base URL of your Lightdash instance, e.g. https://app.lightdash.cloud.
Can be provided with or without a trailing slash or /api/v1 path.
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
Outputs
count integer
The count of modified dashboards detected.
dashboards array
The list of all modified dashboards detected in this polling window.
io.kestra.plugin.lightdash.models.DashboardSummary
The description of the dashboard.
The name of the dashboard.
The name of the space containing this dashboard.
The UUID of the space containing this dashboard.
date-timeTimestamp when the dashboard was last updated.
The UUID of the dashboard.