SendGridMailExecutionSendGridMailExecution
SendGridMailExecutionCertified

yaml
type: "io.kestra.plugin.twilio.sendgrid.SendGridMailExecution"
yaml
id: failure_alert
namespace: company.team

tasks:
  - id: send_alert
    type: io.kestra.plugin.twilio.sendgrid.SendGridMailExecution
    to:
      - hello@kestra.io
    from: hello@kestra.io
    subject: "The workflow execution {{trigger.executionId}} failed for the flow {{trigger.flowId}} in the namespace {{trigger.namespace}}"
    sendgridApiKey: "{{ secret('SENDGRID_API_KEY') }}"
    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
Min length1
Min length1
SubTypestring
Min items1
Definitions
name*Requiredstring
uri*Requiredstring
contentTypestring
Defaultapplication/octet-stream
SubTypestring
Definitions
name*Requiredstring
uri*Requiredstring
contentTypestring
Defaultapplication/octet-stream
Default{{ execution.id }}
SubTypestring
Default0