ZendutyExecution ZendutyExecution
ZendutyExecution Certified

yaml
type: "io.kestra.plugin.zenduty.ZendutyExecution"
yaml
id: zenduty_failure_alert
namespace: company.team

tasks:
  - id: send_alert
    type: io.kestra.plugin.zenduty.ZendutyExecution
    url: "https://www.zenduty.com/api/events/{{ secret('ZENDUTY_INTEGRATION_KEY') }}/"
    executionId: "{{ trigger.executionId }}"
    message: Kestra workflow execution {{ trigger.executionId }} of a flow {{ trigger.flowId }} in the namespace {{ trigger.namespace }} changed status to {{ trigger.state }}

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
Possible Values
CRITICALACKNOWLEDGEDRESOLVEDERRORWARNINGINFO
Default{{ execution.id }}
Definitions
connectTimeoutstring
Formatduration
connectionPoolIdleTimeoutstring
DefaultPT0S
Formatduration
defaultCharsetstring
DefaultUTF-8
headersobject
SubTypestring
maxContentLengthintegerstring
Default10485760
readIdleTimeoutstring
DefaultPT5M
Formatduration
readTimeoutstring
DefaultPT10S
Formatduration
SubTypestring