Squadcast SquadcastExecution

Squadcast SquadcastExecution

Certified

Send Squadcast alert with execution context

Builds a templated Squadcast payload containing execution ID, namespace, flow name, timings, and status. Use only from Flow trigger alerts; for errors tasks prefer SquadcastIncomingWebhook.

yaml
type: io.kestra.plugin.squadcast.SquadcastExecution

Send a Squadcast alert via incoming webhook

yaml
id: failure_alert
namespace: company.team

tasks:
  - id: send_alert
    type: io.kestra.plugin.squadcast.SquadcastExecution
    url: "{{ secret('SQUADCAST_WEBHOOK') }}" # format: https://api.squadcast.com/v2/incidents/api/xyzs
    message: "Kestra Squadcast alert"
    priority: P1
    eventId: "6"
    status: trigger
    tags:
      severity: high
      tagName1: tagValue1
    executionId: "{{ trigger.executionId }}"

triggers:
  - id: failed_prod_workflows
    type: io.kestra.plugin.core.trigger.Flow
    conditions:
      - type: io.kestra.plugin.core.condition.ExecutionStatus
        in:
          - FAILED
          - WARNING
      - type: io.kestra.plugin.core.condition.ExecutionNamespace
        namespace: prod
        prefix: true
Properties

Set incident message

Required alert message shown in Squadcast after template rendering

Min length1

Squadcast Incoming Webhook URL

Full webhook endpoint from Squadcast (includes token); keep in a secret. See Squadcast Webhook docs.

Custom fields to be added on notification

Custom message to be added on notification

Incident event identifier

Unique event ID to correlate trigger/resolve calls; required by Squadcast when updating incidents

Default{{ execution.id }}

The execution id to use

Default is the current execution, change it to {{ trigger.executionId }} if you use this task with a Flow trigger to use the original execution.

Configure HTTP client options

Optional HTTP overrides for Squadcast calls; defaults keep a 10s read timeout, 5m idle timeout, UTF-8 charset, and 10 MiB response cap

Definitions
connectTimeoutstring

Set connect timeout before failing

Time allowed to establish the TCP connection; uses the global HTTP default when unset

connectionPoolIdleTimeoutstring
DefaultPT0S

Evict idle pooled connections

How long an idle pooled connection stays open; default 0s closes it immediately after use

defaultCharsetstring
DefaultUTF-8

Set default request charset

Charset used when encoding request bodies; defaults to UTF-8

headersobject

Add custom HTTP headers

Additional headers appended to the request; supports templating per execution

maxContentLengthintegerstring
Default10485760

Cap response content size

Maximum response size in bytes; defaults to 10 MiB

readIdleTimeoutstring
DefaultPT5M

Close idle read connections

Idle read timeout before closing the connection; defaults to 5 minutes

readTimeoutstring
DefaultPT10S

Limit response read duration

Maximum time to read the response before failing; defaults to 10s

Raw JSON payload

JSON body sent as-is after template rendering; must include Squadcast-required fields such as status and event_id

Reference (ref) of the pluginDefaults to apply to this task.

Incident priority code

One of P1–P5; invalid values fall back to Squadcast "Unset"

Incident status action

Squadcast action such as trigger or resolve; controls incident lifecycle

Tags applied to incident

Key-value tags added to the incident payload after template rendering

Render variables for template

Data map provided to the message template before JSON parsing